23 lines
494 B
JavaScript
23 lines
494 B
JavaScript
document.getElementById("reg-btn")?.addEventListener("click", () => {
|
|
alert(
|
|
"Frontend draft only. Full script and backend will be connected later.",
|
|
);
|
|
});
|
|
|
|
const reveals = document.querySelectorAll(".reveal");
|
|
const io = new IntersectionObserver(
|
|
(entries) => {
|
|
entries.forEach((entry) => {
|
|
if (entry.isIntersecting) {
|
|
entry.target.classList.add("visible");
|
|
io.unobserve(entry.target);
|
|
}
|
|
});
|
|
},
|
|
{ threshold: 0.12 },
|
|
);
|
|
|
|
reveals.forEach((el) => {
|
|
io.observe(el);
|
|
});
|