From 90b28f592aba21e34bd96af497dc2913cc5b3c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Thu, 28 Jul 2022 13:38:49 +0300 Subject: [PATCH] Remove slideshow func --- resources/scripts/index.js | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/resources/scripts/index.js b/resources/scripts/index.js index 5270036..cfb5c31 100644 --- a/resources/scripts/index.js +++ b/resources/scripts/index.js @@ -1,23 +1,3 @@ -const doSlideshow = true; -const slideTime = 7500; // milliseconds -const animTime = 1000; // milliseconds - -async function slideshow() { - let showcase = document.getElementsByClassName("showcase")[0]; - while(doSlideshow) { - showcase.style.backgroundImage = "url(resources/img/index/g.jpg)"; - showcase.classList.add("showcase-animation"); - await sleep(animTime); - showcase.classList.remove("showcase-animation"); - await sleep(slideTime); - showcase.style.backgroundImage = "url(resources/img/index/y.jpg)"; - showcase.classList.add("showcase-animation"); - await sleep(animTime); - showcase.classList.remove("showcase-animation"); - await sleep(slideTime); - } -} - const observer = new IntersectionObserver(entries => { entries.forEach(entry => { if (entry.isIntersecting) { @@ -32,6 +12,4 @@ const observer = new IntersectionObserver(entries => { let targets = document.querySelectorAll('.table-item'); targets.forEach(target => { observer.observe(target); -}) - -slideshow(); \ No newline at end of file +}) \ No newline at end of file