From 9e0a09566687ce83e79a2cd0c5a446b405e3c663 Mon Sep 17 00:00:00 2001 From: czaks Date: Sun, 6 Apr 2014 21:15:37 +0200 Subject: move the containerchan files to a dedicated directory so that we can preserve history --- playersettings.js | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 playersettings.js (limited to 'playersettings.js') diff --git a/playersettings.js b/playersettings.js deleted file mode 100644 index 861d27c2..00000000 --- a/playersettings.js +++ /dev/null @@ -1,28 +0,0 @@ -/* This file is dedicated to the public domain; you may do as you wish with it. */ -if (window.addEventListener) window.addEventListener("load", function(e) { - document.getElementById("playerheader").appendChild(settingsMenu); - - var video = document.getElementsByTagName("video")[0]; - - var loopLinks = [document.getElementById("loop0"), document.getElementById("loop1")]; - function setupLoopLink(i) { - loopLinks[i].addEventListener("click", function(e) { - if (!e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey) { - video.loop = (i != 0); - if (i != 0 && video.currentTime >= video.duration) { - video.currentTime = 0; - } - loopLinks[i].style.fontWeight = "bold"; - loopLinks[1-i].style.fontWeight = "inherit"; - e.preventDefault(); - } - }, false); - } - for (var i = 0; i < 2; i++) { - setupLoopLink(i); - } - - video.muted = (setting("videovolume") == 0); - video.volume = setting("videovolume"); - video.play(); -}, false); -- cgit v1.3