forked from leftypol/leftypol
CSS for player.php, make JS more modular
This commit is contained in:
parent
81dbba64e2
commit
2a770f27d1
7 changed files with 47 additions and 29 deletions
14
defaults.js
Normal file
14
defaults.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
// Scripts obtain settings by calling this function
|
||||
function setting(name) {
|
||||
return JSON.parse(localStorage[name]);
|
||||
}
|
||||
|
||||
// Default settings
|
||||
function setDefault(name, value) {
|
||||
if (!(name in localStorage)) {
|
||||
localStorage[name] = JSON.stringify(value);
|
||||
}
|
||||
}
|
||||
setDefault("videoexpand", true);
|
||||
setDefault("videohover", false);
|
||||
setDefault("videomuted", false);
|
Loading…
Add table
Add a link
Reference in a new issue