Merge pull request #199 from zoff-music/feature/snow-channel

Snow in channel also on video
This commit is contained in:
Kasper Rynning-Tønnesen
2017-11-02 11:45:43 +01:00
committed by GitHub
2 changed files with 13 additions and 1 deletions

View File

@@ -191,7 +191,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){