summaryrefslogtreecommitdiffstats
path: root/themes/lv2/static/js/slideshow.js
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-07-05 14:00:41 -0400
committerDavid Robillard <d@drobilla.net>2022-07-05 14:00:41 -0400
commit838c0c6ecfa68a01abeb4d0e67842656aec9ac60 (patch)
tree145bc0742a9e1f52ea41267a93bd0d612facf5a6 /themes/lv2/static/js/slideshow.js
parent62712ca6bc33f6f5e61667fc9368ea0551111d51 (diff)
downloadlv2site-838c0c6ecfa68a01abeb4d0e67842656aec9ac60.tar.xz
Remove dead code
Diffstat (limited to 'themes/lv2/static/js/slideshow.js')
-rw-r--r--themes/lv2/static/js/slideshow.js25
1 files changed, 0 insertions, 25 deletions
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();