chore: save iqon static deploy snapshot

This commit is contained in:
Sergei Vasilev
2026-05-20 17:21:42 +03:00
parent 497f2450e9
commit c023fe5d8d
121 changed files with 3211 additions and 24373 deletions
+39 -30
View File
@@ -1,40 +1,49 @@
const reveals = document.querySelectorAll(".reveal");
const observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("on");
observer.unobserve(entry.target);
}
});
},
{ threshold: 0.18 }
);
const observer =
"IntersectionObserver" in window
? new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
entry.target.classList.add("on");
observer.unobserve(entry.target);
}
});
},
{ threshold: 0.18 }
)
: null;
reveals.forEach((item, idx) => {
item.style.transitionDelay = `${Math.min(idx * 45, 280)}ms`;
observer.observe(item);
if (observer) {
observer.observe(item);
} else {
item.classList.add("on");
}
});
const navLinks = document.querySelectorAll(".main-nav a");
const sectionObserver = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
navLinks.forEach((link) => {
link.classList.toggle("active", link.getAttribute("href") === `#${entry.target.id}`);
});
}
});
},
{ threshold: 0.55 }
);
if ("IntersectionObserver" in window) {
const sectionObserver = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (entry.isIntersecting) {
navLinks.forEach((link) => {
link.classList.toggle("active", link.getAttribute("href") === `#${entry.target.id}`);
});
}
});
},
{ threshold: 0.55 }
);
["approach", "services", "cases", "contacts"].forEach((id) => {
const section = document.getElementById(id);
if (section) {
sectionObserver.observe(section);
}
});
["approach", "services", "cases", "contacts"].forEach((id) => {
const section = document.getElementById(id);
if (section) {
sectionObserver.observe(section);
}
});
}