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

@@ -162,6 +162,10 @@ var Youtube = {
}
},
set_width: function(val){
$(".video-container").width(val);
},
notifyUser: function(id, title) {
title = title.replace(/\\\'/g, "'").replace(/"/g,"'").replace(/&/g,"&");
if (Notification.permission === "granted" && document.hidden && id != "30H2Z8Lr-4c" && !window.mobilecheck()) {