diff --git a/s/index.tpl.html b/s/index.tpl.html index 9b111af..cdd64c5 100644 --- a/s/index.tpl.html +++ b/s/index.tpl.html @@ -12,25 +12,7 @@ {% endfor %} - - + + diff --git a/s/item.tpl.html b/s/item.tpl.html index d5114ef..0d666a4 100644 --- a/s/item.tpl.html +++ b/s/item.tpl.html @@ -47,37 +47,7 @@ theme: - - + + diff --git a/s/shit.js b/s/shit.js new file mode 100644 index 0000000..5c798af --- /dev/null +++ b/s/shit.js @@ -0,0 +1,30 @@ + function arrowKeys(e) { + switch(e.keyCode) { + case 39: + var prev = document.getElementById('prev'); + if(prev) prev.click(); + break; + case 37: + var next = document.getElementById('next'); + if(next) next.click(); + break; + } + } + if(document.readyState == 'complete' || document.readyState == +'loaded') + document.addEventListener('keydown', arrowKeys); + else { + if(/Chrome/i.test(navigator.userAgent)) + window.addEventListener('load', function () { + document.addEventListener('keydown', arrowKeys); + }); + else + document.addEventListener('DOMContentLoaded', function () { + document.addEventListener('keydown', arrowKeys); + }); + } + var video = document.getElementById('player'); + video.volume = 0.3; + + var x = document.getElementById("player"); + x.volume = 0.3;