This commit is contained in:
2026-01-14 13:39:44 +05:45
parent c7feb86413
commit 0131d21c42
16 changed files with 1493 additions and 809 deletions

View File

@@ -220,42 +220,44 @@
<!-- JS
============================================ -->
<script>
document.addEventListener("DOMContentLoaded", () => {
<script>
document.addEventListener("DOMContentLoaded", () => {
// Counter animation
const counters = document.querySelectorAll(".counter");
// Counter animation
const counters = document.querySelectorAll(".counter");
counters.forEach(counter => {
const target = +counter.getAttribute("data-score");
let count = 0;
counters.forEach(counter => {
const target = +counter.getAttribute("data-score");
let count = 0;
const updateCounter = () => {
if (count < target) {
count++;
counter.innerText = count;
setTimeout(updateCounter, 120);
} else {
counter.innerText = target;
}
};
const updateCounter = () => {
if (count < target) {
count++;
counter.innerText = count;
setTimeout(updateCounter, 120);
} else {
counter.innerText = target;
}
};
updateCounter();
});
updateCounter();
});
// Progress bar animation
const bars = document.querySelectorAll(".bar span");
// Progress bar animation
const bars = document.querySelectorAll(".bar span");
setTimeout(() => {
bars.forEach(bar => {
const width = bar.getAttribute("data-progress");
bar.style.width = width + "%";
});
}, 300);
});
</script>
setTimeout(() => {
bars.forEach(bar => {
const width = bar.getAttribute("data-progress");
bar.style.width = width + "%";
});
}, 300);
});
</script>
<!-- Fancybox JS -->
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.js"></script>
<script src="assets/js/vendor/jquery.min.js" defer></script>
<script src="assets/js/vendor/bootstrap.min.js" defer></script>