diff options
author | David Robillard <d@drobilla.net> | 2014-11-26 19:27:18 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-26 20:05:22 -0500 |
commit | 9e3440a95d9d54dc747fa2f9be0fa8a97ed44832 (patch) | |
tree | c01e892dfab6b1ba02de377cb83149f48f7ccd95 /themes/lv2/static/js/slideshow.js | |
parent | 34e276866106969c97cabacb7a9693424233e7ab (diff) | |
download | lv2site-9e3440a95d9d54dc747fa2f9be0fa8a97ed44832.tar.xz |
Make main list horizontal and put slideshow below.
Diffstat (limited to 'themes/lv2/static/js/slideshow.js')
-rw-r--r-- | themes/lv2/static/js/slideshow.js | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/themes/lv2/static/js/slideshow.js b/themes/lv2/static/js/slideshow.js index d9fb9c5..e50991c 100644 --- a/themes/lv2/static/js/slideshow.js +++ b/themes/lv2/static/js/slideshow.js @@ -1,23 +1,8 @@ -function getPreviousNode(n) { - var p = n.previousSibling; - while (p && p.nodeType !== 1) { - p = p.previousSibling; - } - return p; -} - function startSlideShow() { var slideshow = document.getElementById("slideshow"), imgs = slideshow.getElementsByTagName("img"), n = imgs.length, - m = Math.floor((Math.random() * n)), - pred = getPreviousNode(slideshow); - - // Shrink width of predecessor so gallery fits beside it - if (pred) { - pred.style.width = "50%"; - pred.style.display = "inline-block"; - } + m = Math.floor((Math.random() * n)); // Start transition of initial image imgs[m].className = "fadein"; |