From 838c0c6ecfa68a01abeb4d0e67842656aec9ac60 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 5 Jul 2022 14:00:41 -0400 Subject: Remove dead code --- themes/lv2/static/js/slideshow.js | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 themes/lv2/static/js/slideshow.js (limited to 'themes/lv2/static/js') diff --git a/themes/lv2/static/js/slideshow.js b/themes/lv2/static/js/slideshow.js deleted file mode 100644 index e50991c..0000000 --- a/themes/lv2/static/js/slideshow.js +++ /dev/null @@ -1,25 +0,0 @@ -function startSlideShow() { - var slideshow = document.getElementById("slideshow"), - imgs = slideshow.getElementsByTagName("img"), - n = imgs.length, - m = Math.floor((Math.random() * n)); - - // Start transition of initial image - imgs[m].className = "fadein"; - m = (m + 1) % n; - - function tick() { - // Fade out the previous image, and fade in the next - var prev = (m + n - 1) % n, - next = (m + 1) % n; - - imgs[prev].className = ""; - imgs[m].className = "fadeout"; - imgs[next].className = "fadein"; - - m = (m + 1) % n; - } - window.setInterval(tick, 4000); -} - -startSlideShow(); -- cgit v1.2.1