autism die erste
This commit is contained in:
parent
1349872ec5
commit
bb7eda3a1a
53
s/shit.js
53
s/shit.js
@ -1,29 +1,26 @@
|
||||
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;
|
||||
}
|
||||
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 x = document.getElementById("player");
|
||||
if(x) {
|
||||
x.volume = 0.3;
|
||||
}
|
||||
}
|
||||
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);
|
||||
});
|
||||
}
|
||||
if(x = document.getElementById("player"))
|
||||
x.volume = 0.3;
|
Loading…
Reference in New Issue
Block a user