diff --git a/static/css/style.css b/static/css/style.css index 24903c19..dda3d457 100755 --- a/static/css/style.css +++ b/static/css/style.css @@ -331,6 +331,7 @@ ul #chat-log{ } .main{ + height: 100%; width: 100%; max-width:99%; margin: 0px; @@ -760,7 +761,7 @@ ul #chat-log{ margin-top: initial; width: 65%; width: calc(90% - 256px - 130px); - left: initial; + left: 25%; } .title-container li { width: 71%; diff --git a/static/js/youtube.js b/static/js/youtube.js index 6e96e3a9..a17ae122 100755 --- a/static/js/youtube.js +++ b/static/js/youtube.js @@ -295,6 +295,16 @@ function notifyUser(id, title) { } } +Element.prototype.remove = function() { + this.parentElement.removeChild(this); +} +NodeList.prototype.remove = HTMLCollection.prototype.remove = function() { + for(var i = 0, len = this.length; i < len; i++) { + if(this[i] && this[i].parentElement) { + this[i].parentElement.removeChild(this[i]); + } + } +} function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min)) + min;