diff options
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(); |