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

@@ -3089,6 +3089,13 @@ input:not([type]):focus:not([readonly])+label, input[type=text]:not(.browser-def
-ms-animation: snow 10s linear infinite;
animation: snow 10s linear infinite;
}
#snow.snow-channel {
z-index: 9999;
width: calc(100% - .75rem);
height: calc(100% - 32px);
}
@keyframes snow {
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
100% {background-position: 500px 500px, 400px 400px, 300px 300px;}

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){