-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
31 lines (29 loc) · 911 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//Main.js
setTimeout(function () {
$( ".js-html5-slider" ).addClass( "html5free" );
$( ".html5free" ).click(function() {
if (localStorage["backend"] == "\"flash\"") {
localStorage["backend"] = "\"player-core\"";
location.reload();
} else if (localStorage["backend"] == "\"player-core\"") {
localStorage["backend"] = "\"flash\"";
location.reload();
} else {
localStorage["backend"] = "\"player-core\"";
location.reload();
}
});
if (localStorage["backend"] == "\"flash\"") {
c = "flash";
} else if (localStorage["backend"] == "\"player-core\"") {
c = "player-core";
} else {
localStorage["backend"] = "\"flash\"";
c = "flash";
}
$( ".html5free" ).removeClass( "js-html5-slider" );
console.log( "%c↓ [html5free] ↓", "color: darkblue;" );
console.log( "ready" );
console.log( "current: "+c );
console.log( "%c↑ [html5free] ↑", "color: darkblue;" );
}, 5678);