Manual changes saved
Browse files- index.html +24 -47
index.html
CHANGED
|
@@ -368,29 +368,31 @@ class="inline-flex items-center text-[#002060] hover:text-[#8DC63F] px-3 py-2 te
|
|
| 368 |
<form id="send_email_to_customer" action="./tool_management.php" method="post" novalidate>
|
| 369 |
<input type="hidden" id="g-recaptcha-response" name="g-recaptcha-response">
|
| 370 |
<input type="hidden" name="action" value="validate_captcha">
|
|
|
|
| 371 |
<div id="cta-modal"
|
| 372 |
-
class="fixed inset-0 z-[999] hidden
|
| 373 |
role="dialog" aria-modal="true" aria-labelledby="cta-modal-title">
|
| 374 |
<!-- Backdrop -->
|
| 375 |
<div class="absolute inset-0 bg-black/60"></div>
|
| 376 |
|
| 377 |
<!-- Panel -->
|
| 378 |
-
<div class="relative w-full
|
| 379 |
-
<div class="bg-white rounded-2xl shadow-2xl border border-[rgba(0,32,96,.08)] overflow-hidden">
|
| 380 |
-
<!-- Close button -->
|
| 381 |
-
<button type="button" id="cta-close"
|
| 382 |
-
class="absolute -top-3 -right-3 bg-white rounded-full p-2 shadow-lg hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-[var(--vlc-sky)] transition-all"
|
| 383 |
-
aria-label="Close">
|
| 384 |
-
<i data-feather="x" class="w-5 h-5 text-[var(--vlc-navy)]"></i>
|
| 385 |
-
</button>
|
| 386 |
-
|
| 387 |
<div class="bg-[var(--vlc-navy)] text-white px-5 py-4">
|
| 388 |
-
<
|
| 389 |
-
|
| 390 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 391 |
</div>
|
| 392 |
-
|
| 393 |
-
<
|
|
|
|
| 394 |
Please use a valid business email (not a personal domain).
|
| 395 |
</p>
|
| 396 |
|
|
@@ -473,6 +475,7 @@ class="inline-flex items-center text-[#002060] hover:text-[#8DC63F] px-3 py-2 te
|
|
| 473 |
border: 1px solid #d1d5db;
|
| 474 |
}
|
| 475 |
</style>
|
|
|
|
| 476 |
<script>
|
| 477 |
// --- YouTube Video Modal ---
|
| 478 |
(function() {
|
|
@@ -480,17 +483,17 @@ class="inline-flex items-center text-[#002060] hover:text-[#8DC63F] px-3 py-2 te
|
|
| 480 |
youtubeModal.id = 'youtube-modal';
|
| 481 |
youtubeModal.className = 'fixed inset-0 z-[1000] hidden items-center justify-center bg-black/80 p-4';
|
| 482 |
youtubeModal.innerHTML = `
|
| 483 |
-
<div class="relative w-full max-w-4xl
|
| 484 |
-
<button id="youtube-close" class="absolute -top-
|
| 485 |
<i data-feather="x" class="w-8 h-8"></i>
|
| 486 |
-
<span class="sr-only">Close video</span>
|
| 487 |
</button>
|
| 488 |
-
<div class="w-
|
| 489 |
<iframe id="youtube-iframe" class="w-full h-full" src="" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
| 490 |
</div>
|
| 491 |
</div>
|
| 492 |
`;
|
| 493 |
-
document.body.appendChild(youtubeModal);
|
|
|
|
| 494 |
const openBtn = document.getElementById('youtube-open-modal');
|
| 495 |
const closeBtn = document.getElementById('youtube-close');
|
| 496 |
|
|
@@ -498,51 +501,25 @@ document.body.appendChild(youtubeModal);
|
|
| 498 |
youtubeModal.classList.remove('hidden');
|
| 499 |
document.getElementById('youtube-iframe').src = 'https://www.youtube.com/embed/zAiME9H0EVQ?autoplay=1';
|
| 500 |
document.body.style.overflow = 'hidden';
|
| 501 |
-
document.documentElement.style.overflow = 'hidden';
|
| 502 |
}
|
| 503 |
|
| 504 |
function closeModal() {
|
| 505 |
youtubeModal.classList.add('hidden');
|
| 506 |
document.getElementById('youtube-iframe').src = '';
|
| 507 |
document.body.style.overflow = '';
|
| 508 |
-
document.documentElement.style.overflow = '';
|
| 509 |
}
|
| 510 |
|
| 511 |
openBtn.addEventListener('click', openModal);
|
| 512 |
closeBtn.addEventListener('click', closeModal);
|
| 513 |
-
|
| 514 |
-
// Close when clicking outside the video
|
| 515 |
youtubeModal.addEventListener('click', (e) => {
|
| 516 |
if (e.target === youtubeModal) closeModal();
|
| 517 |
});
|
| 518 |
-
|
| 519 |
-
// Close with ESC key
|
| 520 |
document.addEventListener('keydown', (e) => {
|
| 521 |
if (e.key === 'Escape' && !youtubeModal.classList.contains('hidden')) {
|
| 522 |
closeModal();
|
| 523 |
}
|
| 524 |
});
|
| 525 |
-
|
| 526 |
-
// Add close button styles
|
| 527 |
-
const style = document.createElement('style');
|
| 528 |
-
style.textContent = `
|
| 529 |
-
#youtube-close {
|
| 530 |
-
transition: transform 0.2s ease, color 0.2s ease;
|
| 531 |
-
}
|
| 532 |
-
#youtube-close:hover {
|
| 533 |
-
transform: scale(1.1);
|
| 534 |
-
color: var(--vlc-leaf);
|
| 535 |
-
}
|
| 536 |
-
#youtube-close:focus {
|
| 537 |
-
outline: 2px solid var(--vlc-leaf);
|
| 538 |
-
outline-offset: 2px;
|
| 539 |
-
}
|
| 540 |
-
#youtube-modal {
|
| 541 |
-
transition: opacity 0.3s ease;
|
| 542 |
-
}
|
| 543 |
-
`;
|
| 544 |
-
document.head.appendChild(style);
|
| 545 |
-
})();
|
| 546 |
|
| 547 |
// --- CTA Modal controls ---
|
| 548 |
(function () {
|
|
|
|
| 368 |
<form id="send_email_to_customer" action="./tool_management.php" method="post" novalidate>
|
| 369 |
<input type="hidden" id="g-recaptcha-response" name="g-recaptcha-response">
|
| 370 |
<input type="hidden" name="action" value="validate_captcha">
|
| 371 |
+
|
| 372 |
<div id="cta-modal"
|
| 373 |
+
class="fixed inset-0 z-[999] hidden"
|
| 374 |
role="dialog" aria-modal="true" aria-labelledby="cta-modal-title">
|
| 375 |
<!-- Backdrop -->
|
| 376 |
<div class="absolute inset-0 bg-black/60"></div>
|
| 377 |
|
| 378 |
<!-- Panel -->
|
| 379 |
+
<div class="relative h-full w-full flex items-center justify-center p-4">
|
| 380 |
+
<div class="w-full max-w-md bg-white rounded-2xl shadow-2xl border border-[rgba(0,32,96,.08)] overflow-hidden">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 381 |
<div class="bg-[var(--vlc-navy)] text-white px-5 py-4">
|
| 382 |
+
<div class="flex items-center justify-between">
|
| 383 |
+
<h4 id="cta-modal-title" class="text-lg font-semibold">
|
| 384 |
+
Enter your business email to download
|
| 385 |
+
</h4>
|
| 386 |
+
<button type="button" id="cta-close"
|
| 387 |
+
class="p-1 rounded-md hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-white/50"
|
| 388 |
+
aria-label="Close">
|
| 389 |
+
<i data-feather="x" class="w-5 h-5" aria-hidden="true"></i>
|
| 390 |
+
</button>
|
| 391 |
+
</div>
|
| 392 |
</div>
|
| 393 |
+
|
| 394 |
+
<div class="p-6 space-y-4">
|
| 395 |
+
<p id="cta-error" class="hidden text-sm text-red-600">
|
| 396 |
Please use a valid business email (not a personal domain).
|
| 397 |
</p>
|
| 398 |
|
|
|
|
| 475 |
border: 1px solid #d1d5db;
|
| 476 |
}
|
| 477 |
</style>
|
| 478 |
+
|
| 479 |
<script>
|
| 480 |
// --- YouTube Video Modal ---
|
| 481 |
(function() {
|
|
|
|
| 483 |
youtubeModal.id = 'youtube-modal';
|
| 484 |
youtubeModal.className = 'fixed inset-0 z-[1000] hidden items-center justify-center bg-black/80 p-4';
|
| 485 |
youtubeModal.innerHTML = `
|
| 486 |
+
<div class="relative w-full max-w-4xl">
|
| 487 |
+
<button id="youtube-close" class="absolute -top-10 right-0 text-white hover:text-[var(--vlc-leaf)]">
|
| 488 |
<i data-feather="x" class="w-8 h-8"></i>
|
|
|
|
| 489 |
</button>
|
| 490 |
+
<div class="aspect-w-16 aspect-h-9 bg-black">
|
| 491 |
<iframe id="youtube-iframe" class="w-full h-full" src="" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
| 492 |
</div>
|
| 493 |
</div>
|
| 494 |
`;
|
| 495 |
+
document.body.appendChild(youtubeModal);
|
| 496 |
+
|
| 497 |
const openBtn = document.getElementById('youtube-open-modal');
|
| 498 |
const closeBtn = document.getElementById('youtube-close');
|
| 499 |
|
|
|
|
| 501 |
youtubeModal.classList.remove('hidden');
|
| 502 |
document.getElementById('youtube-iframe').src = 'https://www.youtube.com/embed/zAiME9H0EVQ?autoplay=1';
|
| 503 |
document.body.style.overflow = 'hidden';
|
|
|
|
| 504 |
}
|
| 505 |
|
| 506 |
function closeModal() {
|
| 507 |
youtubeModal.classList.add('hidden');
|
| 508 |
document.getElementById('youtube-iframe').src = '';
|
| 509 |
document.body.style.overflow = '';
|
|
|
|
| 510 |
}
|
| 511 |
|
| 512 |
openBtn.addEventListener('click', openModal);
|
| 513 |
closeBtn.addEventListener('click', closeModal);
|
|
|
|
|
|
|
| 514 |
youtubeModal.addEventListener('click', (e) => {
|
| 515 |
if (e.target === youtubeModal) closeModal();
|
| 516 |
});
|
|
|
|
|
|
|
| 517 |
document.addEventListener('keydown', (e) => {
|
| 518 |
if (e.key === 'Escape' && !youtubeModal.classList.contains('hidden')) {
|
| 519 |
closeModal();
|
| 520 |
}
|
| 521 |
});
|
| 522 |
+
})();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 523 |
|
| 524 |
// --- CTA Modal controls ---
|
| 525 |
(function () {
|