width of player is now saved and applied

This commit is contained in:
Kasper Rynning-Tønnesen
2015-12-10 17:23:27 +01:00
parent b05bef2d01
commit 7ba5edb897
4 changed files with 18 additions and 2 deletions

View File

@@ -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 + "=");