mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
width of player is now saved and applied
This commit is contained in:
@@ -11,6 +11,7 @@ var Crypt = {
|
||||
conf_pass = Crypt.decrypt(Crypt.create_cookie(chan.toLowerCase()), chan.toLowerCase());
|
||||
}
|
||||
Hostcontroller.change_enabled(conf_arr.remote);
|
||||
Youtube.set_width(conf_arr["width"]);
|
||||
},
|
||||
|
||||
decrypt: function(cookie, name){
|
||||
@@ -144,6 +145,15 @@ var Crypt = {
|
||||
return encrypted.toString();
|
||||
},
|
||||
|
||||
get_width: function(){
|
||||
return conf_arr["width"];
|
||||
},
|
||||
|
||||
set_width: function(val){
|
||||
conf_arr["width"] = val;
|
||||
Crypt.encrypt(conf_arr, "_opt");
|
||||
},
|
||||
|
||||
getCookie: function(name) {
|
||||
var value = "; " + document.cookie;
|
||||
var parts = value.split("; " + name + "=");
|
||||
|
||||
Reference in New Issue
Block a user