mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Merge pull request #199 from zoff-music/feature/snow-channel
Snow in channel also on video
This commit is contained in:
@@ -3089,6 +3089,13 @@ input:not([type]):focus:not([readonly])+label, input[type=text]:not(.browser-def
|
|||||||
-ms-animation: snow 10s linear infinite;
|
-ms-animation: snow 10s linear infinite;
|
||||||
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 {
|
@keyframes snow {
|
||||||
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
|
0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
|
||||||
100% {background-position: 500px 500px, 400px 400px, 300px 300px;}
|
100% {background-position: 500px 500px, 400px 400px, 300px 300px;}
|
||||||
|
|||||||
@@ -191,7 +191,12 @@ var Player = {
|
|||||||
case YT.PlayerState.PLAYING:
|
case YT.PlayerState.PLAYING:
|
||||||
if(!window.MSStream) {
|
if(!window.MSStream) {
|
||||||
$("#player").css("opacity", "1");
|
$("#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;
|
playing = true;
|
||||||
if(beginning && Helper.mobilecheck() && !chromecastAvailable){
|
if(beginning && Helper.mobilecheck() && !chromecastAvailable){
|
||||||
|
|||||||
Reference in New Issue
Block a user