diff options
author | David Robillard <d@drobilla.net> | 2022-07-05 14:00:41 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-05 14:00:41 -0400 |
commit | 838c0c6ecfa68a01abeb4d0e67842656aec9ac60 (patch) | |
tree | 145bc0742a9e1f52ea41267a93bd0d612facf5a6 /themes/lv2/static/js | |
parent | 62712ca6bc33f6f5e61667fc9368ea0551111d51 (diff) | |
download | lv2site-838c0c6ecfa68a01abeb4d0e67842656aec9ac60.tar.xz |
Remove dead code
Diffstat (limited to 'themes/lv2/static/js')
-rw-r--r-- | themes/lv2/static/js/slideshow.js | 25 |
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(); |