make the language translator work
Browse files- about.html +21 -2
- currency.html +22 -2
- events.html +21 -2
- index.html +16 -9
- pricing.html +23 -2
- results.html +22 -2
- script.js +65 -35
- style.css +17 -43
about.html
CHANGED
|
@@ -28,9 +28,22 @@
|
|
| 28 |
<body class="bg-black text-white font-['Montserrat']">
|
| 29 |
<!-- Vanta.js Background -->
|
| 30 |
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
<!-- Navigation -->
|
| 33 |
-
|
| 34 |
<div class="container mx-auto px-6 py-4">
|
| 35 |
<div class="flex justify-between items-center">
|
| 36 |
<div class="flex items-center space-x-2">
|
|
@@ -270,7 +283,13 @@ View Open Positions
|
|
| 270 |
</div>
|
| 271 |
|
| 272 |
<div>
|
| 273 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 274 |
|
| 275 |
<div>
|
| 276 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
|
|
|
| 28 |
<body class="bg-black text-white font-['Montserrat']">
|
| 29 |
<!-- Vanta.js Background -->
|
| 30 |
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div>
|
| 31 |
+
<!-- Google Translate -->
|
| 32 |
+
<div id="google_translate_element"></div>
|
| 33 |
+
<script>
|
| 34 |
+
function googleTranslateElementInit() {
|
| 35 |
+
new google.translate.TranslateElement({
|
| 36 |
+
pageLanguage: 'en',
|
| 37 |
+
includedLanguages: 'en,es,fr,de,it,ru,zh-CN,ja,ko,pt,ar,hi',
|
| 38 |
+
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
|
| 39 |
+
autoDisplay: false
|
| 40 |
+
}, 'google_translate_element');
|
| 41 |
+
}
|
| 42 |
+
</script>
|
| 43 |
+
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
| 44 |
|
| 45 |
<!-- Navigation -->
|
| 46 |
+
<nav class="relative z-10 bg-black bg-opacity-80 border-b border-gold-500">
|
| 47 |
<div class="container mx-auto px-6 py-4">
|
| 48 |
<div class="flex justify-between items-center">
|
| 49 |
<div class="flex items-center space-x-2">
|
|
|
|
| 283 |
</div>
|
| 284 |
|
| 285 |
<div>
|
| 286 |
+
<h3 class="text-lg font-bold text-white mb-4">Products</h3>
|
| 287 |
+
<ul class="space-y-2">
|
| 288 |
+
<li><a href="index.html#features" class="text-gray-400 hover:text-yellow-500 transition">VR Training</a></li>
|
| 289 |
+
<li><a href="index.html#features" class="text-gray-400 hover:text-yellow-500 transition">AR Coaching</a></li>
|
| 290 |
+
<li><a href="index.html#features" class="text-gray-400 hover:text-yellow-500 transition">Biofeedback</a></li>
|
| 291 |
+
</ul>
|
| 292 |
+
</div>
|
| 293 |
|
| 294 |
<div>
|
| 295 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
currency.html
CHANGED
|
@@ -37,9 +37,22 @@
|
|
| 37 |
<!-- Enhanced Vanta.js Background -->
|
| 38 |
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0 opacity-90"></div>
|
| 39 |
<div class="fixed top-0 left-0 w-full h-full z-0 bg-gradient-to-b from-black via-transparent to-black opacity-30"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
<!-- Navigation -->
|
| 42 |
-
|
| 43 |
<div class="container mx-auto px-6 py-4">
|
| 44 |
<div class="flex justify-between items-center">
|
| 45 |
<div class="flex items-center space-x-2">
|
|
@@ -509,7 +522,14 @@
|
|
| 509 |
</div>
|
| 510 |
|
| 511 |
<div>
|
| 512 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 513 |
|
| 514 |
<div>
|
| 515 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
|
|
|
| 37 |
<!-- Enhanced Vanta.js Background -->
|
| 38 |
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0 opacity-90"></div>
|
| 39 |
<div class="fixed top-0 left-0 w-full h-full z-0 bg-gradient-to-b from-black via-transparent to-black opacity-30"></div>
|
| 40 |
+
<!-- Google Translate -->
|
| 41 |
+
<div id="google_translate_element"></div>
|
| 42 |
+
<script>
|
| 43 |
+
function googleTranslateElementInit() {
|
| 44 |
+
new google.translate.TranslateElement({
|
| 45 |
+
pageLanguage: 'en',
|
| 46 |
+
includedLanguages: 'en,es,fr,de,it,ru,zh-CN,ja,ko,pt,ar,hi',
|
| 47 |
+
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
|
| 48 |
+
autoDisplay: false
|
| 49 |
+
}, 'google_translate_element');
|
| 50 |
+
}
|
| 51 |
+
</script>
|
| 52 |
+
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
| 53 |
|
| 54 |
<!-- Navigation -->
|
| 55 |
+
<nav class="relative z-10 bg-black bg-opacity-80 border-b border-gold-500">
|
| 56 |
<div class="container mx-auto px-6 py-4">
|
| 57 |
<div class="flex justify-between items-center">
|
| 58 |
<div class="flex items-center space-x-2">
|
|
|
|
| 522 |
</div>
|
| 523 |
|
| 524 |
<div>
|
| 525 |
+
<h3 class="text-lg font-bold text-white mb-4">Products</h3>
|
| 526 |
+
<ul class="space-y-2">
|
| 527 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">VR Training</a></li>
|
| 528 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">AR Coaching</a></li>
|
| 529 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Biofeedback</a></li>
|
| 530 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Scenario Library</a></li>
|
| 531 |
+
</ul>
|
| 532 |
+
</div>
|
| 533 |
|
| 534 |
<div>
|
| 535 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
events.html
CHANGED
|
@@ -25,9 +25,22 @@
|
|
| 25 |
<body class="bg-black text-white font-['Montserrat']">
|
| 26 |
<!-- Vanta.js Background -->
|
| 27 |
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
<!-- Navigation -->
|
| 30 |
-
|
| 31 |
<div class="container mx-auto px-6 py-4">
|
| 32 |
<div class="flex justify-between items-center">
|
| 33 |
<div class="flex items-center space-x-2">
|
|
@@ -207,7 +220,13 @@ Register Now
|
|
| 207 |
</div>
|
| 208 |
|
| 209 |
<div>
|
| 210 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
|
| 212 |
<div>
|
| 213 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
|
|
|
| 25 |
<body class="bg-black text-white font-['Montserrat']">
|
| 26 |
<!-- Vanta.js Background -->
|
| 27 |
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div>
|
| 28 |
+
<!-- Google Translate -->
|
| 29 |
+
<div id="google_translate_element"></div>
|
| 30 |
+
<script>
|
| 31 |
+
function googleTranslateElementInit() {
|
| 32 |
+
new google.translate.TranslateElement({
|
| 33 |
+
pageLanguage: 'en',
|
| 34 |
+
includedLanguages: 'en,es,fr,de,it,ru,zh-CN,ja,ko,pt,ar,hi',
|
| 35 |
+
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
|
| 36 |
+
autoDisplay: false
|
| 37 |
+
}, 'google_translate_element');
|
| 38 |
+
}
|
| 39 |
+
</script>
|
| 40 |
+
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
| 41 |
|
| 42 |
<!-- Navigation -->
|
| 43 |
+
<nav class="relative z-10 bg-black bg-opacity-80 border-b border-gold-500">
|
| 44 |
<div class="container mx-auto px-6 py-4">
|
| 45 |
<div class="flex justify-between items-center">
|
| 46 |
<div class="flex items-center space-x-2">
|
|
|
|
| 220 |
</div>
|
| 221 |
|
| 222 |
<div>
|
| 223 |
+
<h3 class="text-lg font-bold text-white mb-4">Events</h3>
|
| 224 |
+
<ul class="space-y-2">
|
| 225 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Workshops</a></li>
|
| 226 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Webinars</a></li>
|
| 227 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Training Sessions</a></li>
|
| 228 |
+
</ul>
|
| 229 |
+
</div>
|
| 230 |
|
| 231 |
<div>
|
| 232 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
index.html
CHANGED
|
@@ -40,20 +40,20 @@
|
|
| 40 |
<!-- Enhanced Vanta.js Background -->
|
| 41 |
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0 opacity-90"></div>
|
| 42 |
<div class="fixed top-0 left-0 w-full h-full z-0 bg-gradient-to-b from-black via-transparent to-black opacity-30"></div>
|
| 43 |
-
|
| 44 |
-
<div id="google_translate_element"
|
| 45 |
-
<script
|
| 46 |
function googleTranslateElementInit() {
|
| 47 |
new google.translate.TranslateElement({
|
| 48 |
-
pageLanguage: 'en',
|
| 49 |
-
includedLanguages: 'en,es,fr,de,it,ru,
|
| 50 |
-
|
| 51 |
-
|
| 52 |
}, 'google_translate_element');
|
| 53 |
}
|
| 54 |
</script>
|
| 55 |
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
| 56 |
-
|
| 57 |
<nav class="relative z-10 bg-black bg-opacity-80 border-b border-gold-500">
|
| 58 |
<!-- Thanksgiving Banner -->
|
| 59 |
<div class="w-full bg-gradient-to-r from-yellow-600 via-orange-600 to-red-700 text-center py-2 px-4">
|
|
@@ -382,7 +382,14 @@ Get Started Now
|
|
| 382 |
</div>
|
| 383 |
|
| 384 |
<div>
|
| 385 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 386 |
|
| 387 |
<div>
|
| 388 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
|
|
|
| 40 |
<!-- Enhanced Vanta.js Background -->
|
| 41 |
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0 opacity-90"></div>
|
| 42 |
<div class="fixed top-0 left-0 w-full h-full z-0 bg-gradient-to-b from-black via-transparent to-black opacity-30"></div>
|
| 43 |
+
<!-- Google Translate -->
|
| 44 |
+
<div id="google_translate_element"></div>
|
| 45 |
+
<script>
|
| 46 |
function googleTranslateElementInit() {
|
| 47 |
new google.translate.TranslateElement({
|
| 48 |
+
pageLanguage: 'en',
|
| 49 |
+
includedLanguages: 'en,es,fr,de,it,ru,zh-CN,ja,ko,pt,ar,hi',
|
| 50 |
+
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
|
| 51 |
+
autoDisplay: false
|
| 52 |
}, 'google_translate_element');
|
| 53 |
}
|
| 54 |
</script>
|
| 55 |
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
| 56 |
+
<!-- Navigation -->
|
| 57 |
<nav class="relative z-10 bg-black bg-opacity-80 border-b border-gold-500">
|
| 58 |
<!-- Thanksgiving Banner -->
|
| 59 |
<div class="w-full bg-gradient-to-r from-yellow-600 via-orange-600 to-red-700 text-center py-2 px-4">
|
|
|
|
| 382 |
</div>
|
| 383 |
|
| 384 |
<div>
|
| 385 |
+
<h3 class="text-lg font-bold text-white mb-4">Products</h3>
|
| 386 |
+
<ul class="space-y-2">
|
| 387 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">VR Training</a></li>
|
| 388 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">AR Coaching</a></li>
|
| 389 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Biofeedback</a></li>
|
| 390 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Scenario Library</a></li>
|
| 391 |
+
</ul>
|
| 392 |
+
</div>
|
| 393 |
|
| 394 |
<div>
|
| 395 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
pricing.html
CHANGED
|
@@ -29,8 +29,22 @@
|
|
| 29 |
</style>
|
| 30 |
</head>
|
| 31 |
<body class="bg-black text-white font-['Montserrat']">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
<!-- Navigation -->
|
| 33 |
-
|
| 34 |
<div class="container mx-auto px-6 py-4">
|
| 35 |
<div class="flex justify-between items-center">
|
| 36 |
<div class="flex items-center space-x-2">
|
|
@@ -186,7 +200,14 @@
|
|
| 186 |
</div>
|
| 187 |
|
| 188 |
<div>
|
| 189 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 190 |
|
| 191 |
<div>
|
| 192 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
|
|
|
| 29 |
</style>
|
| 30 |
</head>
|
| 31 |
<body class="bg-black text-white font-['Montserrat']">
|
| 32 |
+
<!-- Google Translate -->
|
| 33 |
+
<div id="google_translate_element"></div>
|
| 34 |
+
<script>
|
| 35 |
+
function googleTranslateElementInit() {
|
| 36 |
+
new google.translate.TranslateElement({
|
| 37 |
+
pageLanguage: 'en',
|
| 38 |
+
includedLanguages: 'en,es,fr,de,it,ru,zh-CN,ja,ko,pt,ar,hi',
|
| 39 |
+
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
|
| 40 |
+
autoDisplay: false
|
| 41 |
+
}, 'google_translate_element');
|
| 42 |
+
}
|
| 43 |
+
</script>
|
| 44 |
+
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
| 45 |
+
|
| 46 |
<!-- Navigation -->
|
| 47 |
+
<nav class="relative z-10 bg-black bg-opacity-80 border-b border-gold-500">
|
| 48 |
<div class="container mx-auto px-6 py-4">
|
| 49 |
<div class="flex justify-between items-center">
|
| 50 |
<div class="flex items-center space-x-2">
|
|
|
|
| 200 |
</div>
|
| 201 |
|
| 202 |
<div>
|
| 203 |
+
<h3 class="text-lg font-bold text-white mb-4">Products</h3>
|
| 204 |
+
<ul class="space-y-2">
|
| 205 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">VR Training</a></li>
|
| 206 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">AR Coaching</a></li>
|
| 207 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Biofeedback</a></li>
|
| 208 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Scenario Library</a></li>
|
| 209 |
+
</ul>
|
| 210 |
+
</div>
|
| 211 |
|
| 212 |
<div>
|
| 213 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
results.html
CHANGED
|
@@ -36,9 +36,22 @@
|
|
| 36 |
<!-- Enhanced Vanta.js Background -->
|
| 37 |
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0 opacity-90"></div>
|
| 38 |
<div class="fixed top-0 left-0 w-full h-full z-0 bg-gradient-to-b from-black via-transparent to-black opacity-30"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
<!-- Navigation -->
|
| 41 |
-
|
| 42 |
<div class="container mx-auto px-6 py-4">
|
| 43 |
<div class="flex justify-between items-center">
|
| 44 |
<div class="flex items-center space-x-2">
|
|
@@ -293,7 +306,14 @@ Get Started Today
|
|
| 293 |
</div>
|
| 294 |
|
| 295 |
<div>
|
| 296 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 297 |
|
| 298 |
<div>
|
| 299 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
|
|
|
| 36 |
<!-- Enhanced Vanta.js Background -->
|
| 37 |
<div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0 opacity-90"></div>
|
| 38 |
<div class="fixed top-0 left-0 w-full h-full z-0 bg-gradient-to-b from-black via-transparent to-black opacity-30"></div>
|
| 39 |
+
<!-- Google Translate -->
|
| 40 |
+
<div id="google_translate_element"></div>
|
| 41 |
+
<script>
|
| 42 |
+
function googleTranslateElementInit() {
|
| 43 |
+
new google.translate.TranslateElement({
|
| 44 |
+
pageLanguage: 'en',
|
| 45 |
+
includedLanguages: 'en,es,fr,de,it,ru,zh-CN,ja,ko,pt,ar,hi',
|
| 46 |
+
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
|
| 47 |
+
autoDisplay: false
|
| 48 |
+
}, 'google_translate_element');
|
| 49 |
+
}
|
| 50 |
+
</script>
|
| 51 |
+
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
|
| 52 |
|
| 53 |
<!-- Navigation -->
|
| 54 |
+
<nav class="relative z-10 bg-black bg-opacity-80 border-b border-gold-500">
|
| 55 |
<div class="container mx-auto px-6 py-4">
|
| 56 |
<div class="flex justify-between items-center">
|
| 57 |
<div class="flex items-center space-x-2">
|
|
|
|
| 306 |
</div>
|
| 307 |
|
| 308 |
<div>
|
| 309 |
+
<h3 class="text-lg font-bold text-white mb-4">Products</h3>
|
| 310 |
+
<ul class="space-y-2">
|
| 311 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">VR Training</a></li>
|
| 312 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">AR Coaching</a></li>
|
| 313 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Biofeedback</a></li>
|
| 314 |
+
<li><a href="#" class="text-gray-400 hover:text-yellow-500 transition">Scenario Library</a></li>
|
| 315 |
+
</ul>
|
| 316 |
+
</div>
|
| 317 |
|
| 318 |
<div>
|
| 319 |
<h3 class="text-lg font-bold text-white mb-4">Company</h3>
|
script.js
CHANGED
|
@@ -1,43 +1,73 @@
|
|
| 1 |
|
| 2 |
// Shared JavaScript across all pages
|
| 3 |
document.addEventListener('DOMContentLoaded', () => {
|
| 4 |
-
//
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
font-family: 'Montserrat', sans-serif !important;
|
| 14 |
-
background-color: #111827 !important;
|
| 15 |
-
border: 1px solid #e3b341 !important;
|
| 16 |
-
}
|
| 17 |
-
.goog-te-menu2-item div, .goog-te-menu2-item-selected div {
|
| 18 |
-
color: white !important;
|
| 19 |
-
padding: 8px 16px !important;
|
| 20 |
-
}
|
| 21 |
-
.goog-te-menu2-item-selected {
|
| 22 |
-
background-color: rgba(227, 179, 65, 0.2) !important;
|
| 23 |
-
}
|
| 24 |
-
.goog-te-menu2-item:hover {
|
| 25 |
-
background-color: rgba(227, 179, 65, 0.1) !important;
|
| 26 |
-
}
|
| 27 |
-
`;
|
| 28 |
-
iframeDoc.head.appendChild(style);
|
| 29 |
-
};
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
| 37 |
-
}
|
| 38 |
|
| 39 |
-
//
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
for (let i = 0; i < starsCount; i++) {
|
| 42 |
const star = document.createElement('div');
|
| 43 |
star.className = 'star';
|
|
@@ -48,7 +78,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 48 |
star.style.animationDelay = `${Math.random() * 3}s`;
|
| 49 |
document.body.appendChild(star);
|
| 50 |
}
|
| 51 |
-
// Smooth scrolling for anchor links
|
| 52 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 53 |
anchor.addEventListener('click', function (e) {
|
| 54 |
e.preventDefault();
|
|
|
|
| 1 |
|
| 2 |
// Shared JavaScript across all pages
|
| 3 |
document.addEventListener('DOMContentLoaded', () => {
|
| 4 |
+
// Initialize Google Translate
|
| 5 |
+
function googleTranslateElementInit() {
|
| 6 |
+
if (typeof google !== 'undefined' && google.translate) {
|
| 7 |
+
new google.translate.TranslateElement({
|
| 8 |
+
pageLanguage: 'en',
|
| 9 |
+
includedLanguages: 'en,es,fr,de,it,pt,ru,zh-CN,ja,ko,ar,hi',
|
| 10 |
+
layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
|
| 11 |
+
autoDisplay: false
|
| 12 |
+
}, 'google_translate_element');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
+
// Style the Google Translate dropdown
|
| 15 |
+
const styleTranslate = () => {
|
| 16 |
+
const iframe = document.querySelector('.goog-te-menu-frame');
|
| 17 |
+
if (iframe) {
|
| 18 |
+
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
|
| 19 |
+
const style = iframeDoc.createElement('style');
|
| 20 |
+
style.textContent = `
|
| 21 |
+
.goog-te-menu2 {
|
| 22 |
+
background: #1a1a1a !important;
|
| 23 |
+
border: 1px solid #e3b341 !important;
|
| 24 |
+
}
|
| 25 |
+
.goog-te-menu2-item div,
|
| 26 |
+
.goog-te-menu2-item-selected div {
|
| 27 |
+
color: white !important;
|
| 28 |
+
padding: 8px 16px !important;
|
| 29 |
+
font-family: 'Montserrat', sans-serif !important;
|
| 30 |
+
}
|
| 31 |
+
.goog-te-menu2-item:hover {
|
| 32 |
+
background: rgba(227, 179, 65, 0.1) !important;
|
| 33 |
+
}
|
| 34 |
+
.goog-te-menu2-item-selected {
|
| 35 |
+
background: rgba(227, 179, 65, 0.2) !important;
|
| 36 |
+
}
|
| 37 |
+
`;
|
| 38 |
+
iframeDoc.head.appendChild(style);
|
| 39 |
+
}
|
| 40 |
+
};
|
| 41 |
+
|
| 42 |
+
// Check for dropdown periodically
|
| 43 |
+
const translateInterval = setInterval(() => {
|
| 44 |
+
if (document.querySelector('.goog-te-menu-frame')) {
|
| 45 |
+
styleTranslate();
|
| 46 |
+
clearInterval(translateInterval);
|
| 47 |
+
}
|
| 48 |
+
}, 100);
|
| 49 |
}
|
| 50 |
+
}
|
| 51 |
|
| 52 |
+
// Load Google Translate script if not already loaded
|
| 53 |
+
if (!window.google || !google.translate) {
|
| 54 |
+
const script = document.createElement('script');
|
| 55 |
+
script.src = 'https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit';
|
| 56 |
+
script.async = true;
|
| 57 |
+
document.body.appendChild(script);
|
| 58 |
+
} else {
|
| 59 |
+
googleTranslateElementInit();
|
| 60 |
+
}
|
| 61 |
+
// Handle language changes
|
| 62 |
+
function handleLanguageChange() {
|
| 63 |
+
const currentLang = localStorage.getItem('googtrans');
|
| 64 |
+
if (currentLang) {
|
| 65 |
+
document.documentElement.lang = currentLang.split('/')[2] || 'en';
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
setInterval(handleLanguageChange, 1000);
|
| 69 |
+
// Rest of your existing code...
|
| 70 |
+
const starsCount = 200;
|
| 71 |
for (let i = 0; i < starsCount; i++) {
|
| 72 |
const star = document.createElement('div');
|
| 73 |
star.className = 'star';
|
|
|
|
| 78 |
star.style.animationDelay = `${Math.random() * 3}s`;
|
| 79 |
document.body.appendChild(star);
|
| 80 |
}
|
| 81 |
+
// Smooth scrolling for anchor links
|
| 82 |
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 83 |
anchor.addEventListener('click', function (e) {
|
| 84 |
e.preventDefault();
|
style.css
CHANGED
|
@@ -98,16 +98,19 @@ body::after {
|
|
| 98 |
animation: pulseThanksgiving 3s infinite;
|
| 99 |
box-shadow: 0 2px 10px rgba(146, 64, 14, 0.5);
|
| 100 |
}
|
| 101 |
-
|
| 102 |
/* Google Translate Widget Styles */
|
| 103 |
#google_translate_element {
|
| 104 |
z-index: 9999;
|
|
|
|
|
|
|
|
|
|
| 105 |
}
|
| 106 |
|
| 107 |
.goog-te-gadget {
|
| 108 |
font-family: 'Montserrat', sans-serif !important;
|
| 109 |
-
color:
|
| 110 |
}
|
|
|
|
| 111 |
.goog-te-gadget-simple {
|
| 112 |
background-color: rgba(0,0,0,0.7) !important;
|
| 113 |
border: 1px solid #e3b341 !important;
|
|
@@ -115,41 +118,34 @@ body::after {
|
|
| 115 |
padding: 4px 8px !important;
|
| 116 |
backdrop-filter: blur(10px);
|
| 117 |
height: 40px !important;
|
| 118 |
-
min-width: auto !important;
|
| 119 |
-
width: auto !important;
|
| 120 |
-
display: flex !important;
|
| 121 |
-
align-items: center !important;
|
| 122 |
-
justify-content: center !important;
|
| 123 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
.goog-te-menu-value {
|
| 125 |
display: flex !important;
|
| 126 |
-
align-items: center;
|
| 127 |
}
|
| 128 |
|
| 129 |
.goog-te-menu-value span {
|
| 130 |
color: white !important;
|
| 131 |
font-size: 14px !important;
|
| 132 |
-
text-decoration: none !important;
|
| 133 |
}
|
| 134 |
|
| 135 |
.goog-te-menu-value img {
|
| 136 |
display: none !important;
|
| 137 |
}
|
| 138 |
|
| 139 |
-
.goog-te-menu-value:before {
|
| 140 |
-
content: '\f0ac';
|
| 141 |
-
font-family: 'feather' !important;
|
| 142 |
-
color: #e3b341;
|
| 143 |
-
margin-right: 8px;
|
| 144 |
-
font-size: 16px;
|
| 145 |
-
}
|
| 146 |
-
|
| 147 |
.goog-te-menu-value:after {
|
| 148 |
-
content: '\
|
| 149 |
-
font-family: 'feather' !important;
|
| 150 |
-
color: #e3b341;
|
| 151 |
margin-left: 8px;
|
| 152 |
-
|
| 153 |
}
|
| 154 |
|
| 155 |
/* Dropdown menu styles */
|
|
@@ -159,28 +155,6 @@ body::after {
|
|
| 159 |
overflow: hidden !important;
|
| 160 |
margin-top: 8px !important;
|
| 161 |
}
|
| 162 |
-
|
| 163 |
-
.goog-te-menu2 {
|
| 164 |
-
background-color: #1a1a1a !important;
|
| 165 |
-
border: 1px solid #333 !important;
|
| 166 |
-
color: white !important;
|
| 167 |
-
font-family: 'Montserrat', sans-serif !important;
|
| 168 |
-
}
|
| 169 |
-
|
| 170 |
-
.goog-te-menu2-item div,
|
| 171 |
-
.goog-te-menu2-item-selected div {
|
| 172 |
-
color: white !important;
|
| 173 |
-
padding: 10px 16px !important;
|
| 174 |
-
font-size: 14px !important;
|
| 175 |
-
}
|
| 176 |
-
|
| 177 |
-
.goog-te-menu2-item:hover {
|
| 178 |
-
background-color: rgba(227, 179, 65, 0.1) !important;
|
| 179 |
-
}
|
| 180 |
-
|
| 181 |
-
.goog-te-menu2-item-selected {
|
| 182 |
-
background-color: rgba(227, 179, 65, 0.2) !important;
|
| 183 |
-
}
|
| 184 |
.feature-icon {
|
| 185 |
width: 60px;
|
| 186 |
height: 60px;
|
|
|
|
| 98 |
animation: pulseThanksgiving 3s infinite;
|
| 99 |
box-shadow: 0 2px 10px rgba(146, 64, 14, 0.5);
|
| 100 |
}
|
|
|
|
| 101 |
/* Google Translate Widget Styles */
|
| 102 |
#google_translate_element {
|
| 103 |
z-index: 9999;
|
| 104 |
+
position: fixed;
|
| 105 |
+
top: 10px;
|
| 106 |
+
right: 10px;
|
| 107 |
}
|
| 108 |
|
| 109 |
.goog-te-gadget {
|
| 110 |
font-family: 'Montserrat', sans-serif !important;
|
| 111 |
+
color: white !important;
|
| 112 |
}
|
| 113 |
+
|
| 114 |
.goog-te-gadget-simple {
|
| 115 |
background-color: rgba(0,0,0,0.7) !important;
|
| 116 |
border: 1px solid #e3b341 !important;
|
|
|
|
| 118 |
padding: 4px 8px !important;
|
| 119 |
backdrop-filter: blur(10px);
|
| 120 |
height: 40px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
}
|
| 122 |
+
|
| 123 |
+
.goog-te-combo {
|
| 124 |
+
background-color: transparent !important;
|
| 125 |
+
color: white !important;
|
| 126 |
+
border: none !important;
|
| 127 |
+
padding: 4px !important;
|
| 128 |
+
font-family: 'Montserrat', sans-serif !important;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
.goog-te-menu-value {
|
| 132 |
display: flex !important;
|
| 133 |
+
align-items: center !important;
|
| 134 |
}
|
| 135 |
|
| 136 |
.goog-te-menu-value span {
|
| 137 |
color: white !important;
|
| 138 |
font-size: 14px !important;
|
|
|
|
| 139 |
}
|
| 140 |
|
| 141 |
.goog-te-menu-value img {
|
| 142 |
display: none !important;
|
| 143 |
}
|
| 144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
.goog-te-menu-value:after {
|
| 146 |
+
content: '\25BE';
|
|
|
|
|
|
|
| 147 |
margin-left: 8px;
|
| 148 |
+
color: #e3b341;
|
| 149 |
}
|
| 150 |
|
| 151 |
/* Dropdown menu styles */
|
|
|
|
| 155 |
overflow: hidden !important;
|
| 156 |
margin-top: 8px !important;
|
| 157 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
.feature-icon {
|
| 159 |
width: 60px;
|
| 160 |
height: 60px;
|