CSS for player.php, make JS more modular
This commit is contained in:
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);
|
Reference in New Issue
Block a user