Snow in channel also on video

This commit is contained in:
Kasper Rynning-Tønnesen
2017-11-02 11:45:21 +01:00
parent 084550d84c
commit c3183e746c
2 changed files with 13 additions and 1 deletions

View File

@@ -187,7 +187,12 @@ var Player = {
case YT.PlayerState.PLAYING:
if(!window.MSStream) {
$("#player").css("opacity", "1");
if(!Helper.mobilecheck()) $("#channel-load").css("display", "none");
if(!Helper.mobilecheck()) {
$("#channel-load").css("display", "none");
if(Frontpage.winter && $("#snow").length == 0) {
$("#video-container").prepend('<div id="snow" class="snow-channel"></div>');
}
}
}
playing = true;
if(beginning && Helper.mobilecheck() && !chromecastAvailable){