mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
width of player is now saved and applied
This commit is contained in:
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -11,6 +11,7 @@ var Crypt = {
|
|||||||
conf_pass = Crypt.decrypt(Crypt.create_cookie(chan.toLowerCase()), chan.toLowerCase());
|
conf_pass = Crypt.decrypt(Crypt.create_cookie(chan.toLowerCase()), chan.toLowerCase());
|
||||||
}
|
}
|
||||||
Hostcontroller.change_enabled(conf_arr.remote);
|
Hostcontroller.change_enabled(conf_arr.remote);
|
||||||
|
Youtube.set_width(conf_arr["width"]);
|
||||||
},
|
},
|
||||||
|
|
||||||
decrypt: function(cookie, name){
|
decrypt: function(cookie, name){
|
||||||
@@ -144,6 +145,15 @@ var Crypt = {
|
|||||||
return encrypted.toString();
|
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) {
|
getCookie: function(name) {
|
||||||
var value = "; " + document.cookie;
|
var value = "; " + document.cookie;
|
||||||
var parts = value.split("; " + name + "=");
|
var parts = value.split("; " + name + "=");
|
||||||
|
|||||||
@@ -79,10 +79,12 @@ $(document).ready(function()
|
|||||||
},
|
},
|
||||||
stop: function(event, ui) {
|
stop: function(event, ui) {
|
||||||
$('iframe').css('pointer-events','auto');
|
$('iframe').css('pointer-events','auto');
|
||||||
|
Crypt.set_width($(this).width());
|
||||||
},
|
},
|
||||||
handles: "e",
|
handles: "e",
|
||||||
minWidth: 350
|
minWidth: 350
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if(localStorage[chan.toLowerCase()])
|
if(localStorage[chan.toLowerCase()])
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -162,6 +162,10 @@ var Youtube = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
set_width: function(val){
|
||||||
|
$(".video-container").width(val);
|
||||||
|
},
|
||||||
|
|
||||||
notifyUser: function(id, title) {
|
notifyUser: function(id, title) {
|
||||||
title = title.replace(/\\\'/g, "'").replace(/"/g,"'").replace(/&/g,"&");
|
title = title.replace(/\\\'/g, "'").replace(/"/g,"'").replace(/&/g,"&");
|
||||||
if (Notification.permission === "granted" && document.hidden && id != "30H2Z8Lr-4c" && !window.mobilecheck()) {
|
if (Notification.permission === "granted" && document.hidden && id != "30H2Z8Lr-4c" && !window.mobilecheck()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user