-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
137 lines (130 loc) · 6.45 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
document.addEventListener("DOMContentLoaded", function() {
anime({
targets: '.section',
opacity: [0, 1],
translateY: [30, 0],
delay: anime.stagger(300, {start: 500}),
easing: 'easeOutExpo'
});
anime({
targets: '.team-card',
opacity: [0, 1],
translateY: [20, 0],
delay: anime.stagger(300, {start: 800}),
easing: 'easeOutExpo'
});
const menuToggle = document.querySelector('.menu-toggle');
const nav = document.querySelector('nav ul');
menuToggle.addEventListener('click', () => {
nav.classList.toggle('active');
});
const translations = {
"tr": {
"about": "Proje Hakkında",
"features": "Özellikler",
"team": "Ekibimiz",
"language-button": "Dil",
"about-title": "Proje Hakkında",
"about-text": "Ekobis, ön muhasebe sorunlarına çözüm odaklı, açık kaynak kodlu ve kar amacı gütmeyen bir gönüllülük projesidir. Bu proje, KOBİ'lere ve bireysel kullanıcılara basit formüller kullanarak gelir, gider ve denge hesaplamalarını doğru bir şekilde yapmalarına yardımcı olmayı amaçlar.",
"features-title": "Özellikler",
"feature-1": "Gelir-Gider Yönetimi ve Takibi",
"feature-2": "Müşteri ve Tedarikçi Yönetimi ve Takibi",
"feature-3": "Aylık Analiz ve Raporlama",
"feature-4": "Ürün Takibi",
"team-title": "Ekibimiz",
"role-1": "Backend Developer",
"role-2": "Backend Developer",
"role-3": "Backend Developer",
"role-4": "Frontend Developer",
"role-5": "Backend Developer",
"role-6": "Backend Developer",
"role-7": "Backend Developer",
"role-8": "Frontend Developer",
"footer": "Ekobis © 2024"
},
"en": {
"about": "About the Project",
"features": "Features",
"team": "Our Team",
"language-button": "Language",
"about-title": "About the Project",
"about-text": "Ekobis is an open-source, non-profit volunteer project focused on solving accounting issues. This project aims to help SMEs and individual users accurately calculate income, expenses, and balance using simple formulas.",
"features-title": "Features",
"feature-1": "Income and Expense Management and Tracking",
"feature-2": "Customer and Supplier Management and Tracking",
"feature-3": "Monthly Analysis and Reporting",
"feature-4": "Product Tracking",
"team-title": "Our Team",
"role-1": "Backend Developer",
"role-2": "Backend Developer",
"role-3": "Backend Developer",
"role-4": "Frontend Developer",
"role-5": "Backend Developer",
"role-6": "Backend Developer",
"role-7": "Backend Developer",
"role-8": "Frontend Developer",
"footer": "Ekobis © 2024"
},
"de": {
"about": "Über das Projekt",
"features": "Eigenschaften",
"team": "Unser Team",
"language-button": "Sprache",
"about-title": "Über das Projekt",
"about-text": "Ekobis ist ein Open-Source-Non-Profit-Freiwilligenprojekt, das sich auf die Lösung von Buchhaltungsproblemen konzentriert. Dieses Projekt zielt darauf ab, KMUs und einzelnen Nutzern zu helfen, Einkommen, Ausgaben und Salden mit einfachen Formeln genau zu berechnen.",
"features-title": "Eigenschaften",
"feature-1": "Einnahmen- und Ausgabenverwaltung und -verfolgung",
"feature-2": "Kunden- und Lieferantenverwaltung und -verfolgung",
"feature-3": "Monatliche Analyse und Berichterstattung",
"feature-4": "Produktverfolgung",
"team-title": "Unser Team",
"role-1": "Backend-Entwickler",
"role-2": "Backend-Entwickler",
"role-3": "Backend-Entwickler",
"role-4": "Frontend-Entwickler",
"role-5": "Backend-Entwickler",
"role-6": "Backend-Entwickler",
"role-7": "Backend-Entwickler",
"role-8": "Frontend-Entwickler",
"footer": "Ekobis © 2024"
},
"ar": {
"about": "عن المشروع",
"features": "الميزات",
"team": "فريقنا",
"language-button": "اللغة",
"about-title": "عن المشروع",
"about-text": "إكوبس هو مشروع مفتوح المصدر وغير ربحي يركز على حل مشاكل المحاسبة. يهدف هذا المشروع إلى مساعدة الشركات الصغيرة والمتوسطة والمستخدمين الفرديين على حساب الدخل والمصروفات والتوازن بدقة باستخدام صيغ بسيطة.",
"features-title": "الميزات",
"feature-1": "إدارة وتتبع الدخل والمصروفات",
"feature-2": "إدارة وتتبع العملاء والموردين",
"feature-3": "التحليل والتقارير الشهرية",
"feature-4": "تتبع المنتجات",
"team-title": "فريقنا",
"role-1": "مطور خلفي ومدير المشروع",
"role-2": "مطور خلفي",
"role-3": "مطور خلفي",
"role-4": "مطور واجهة أمامية",
"role-5": "مطور خلفي",
"role-6": "مطور خلفي",
"role-7": "مطور خلفي",
"role-8": "مطور واجهة أمامية",
"footer": "إكوبس © 2024"
}
};
document.querySelectorAll('.lang').forEach(link => {
link.addEventListener('click', (e) => {
e.preventDefault();
const lang = e.target.getAttribute('data-lang');
document.querySelectorAll('[data-key]').forEach(el => {
el.textContent = translations[lang][el.getAttribute('data-key')];
});
});
});
const darkModeToggle = document.getElementById('toggle-dark-mode');
const body = document.body;
darkModeToggle.addEventListener('click', () => {
body.classList.toggle('dark-mode');
darkModeToggle.innerHTML = body.classList.contains('dark-mode') ? '<i class="fas fa-sun"></i>' : '<i class="fas fa-moon"></i>';
});
});