diff options
| author | ccd0 <admin@containerchan.org> | 2013-11-10 19:09:12 -0800 |
|---|---|---|
| committer | ccd0 <admin@containerchan.org> | 2013-11-10 19:09:12 -0800 |
| commit | 9c335764c4ba4aa056cb708390c74ad8b195f193 (patch) | |
| tree | 646c73fc0badca05865ce149322bbd47b086e595 /playersettings.js | |
| parent | bcdedcb28a7d353a78491c203e1ee7ce7e14aace (diff) | |
loop controls on main page
Diffstat (limited to 'playersettings.js')
| -rw-r--r-- | playersettings.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/playersettings.js b/playersettings.js index 8c508fd7..66a023a0 100644 --- a/playersettings.js +++ b/playersettings.js @@ -7,10 +7,9 @@ if (window.addEventListener) window.addEventListener("load", function(e) { function setupLoopLink(i) { loopLinks[i].addEventListener("click", function(e) { video.loop = (i != 0); - if (i == 1 && video.currentTime >= video.duration) { + if (i != 0 && video.currentTime >= video.duration) { video.currentTime = 0; } - video.play(); loopLinks[i].style.fontWeight = "bold"; loopLinks[1-i].style.fontWeight = "inherit"; e.preventDefault(); |
