mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Snow
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
3.3 Search
|
||||
*/
|
||||
|
||||
.snow{-webkit-filter:brightness(100%);-moz-filter:brightness(100%);-o-filter:brightness(100%);filter:brightness(100%);width:5px; height:5px; background-color:white;z-index:1000000;pointer-events:none;position:absolute;border:1px solid white;border-radius:100px;}
|
||||
|
||||
/* GLOBAL STYLES */
|
||||
|
||||
#playbar{
|
||||
|
||||
2
static/dist/frontpage.min.js
vendored
2
static/dist/frontpage.min.js
vendored
File diff suppressed because one or more lines are too long
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -169,9 +169,34 @@ var Nochan = {
|
||||
Nochan.add_backdrop(list, i+1);
|
||||
},6000);
|
||||
|
||||
},
|
||||
|
||||
start_snowfall: function(){
|
||||
setTimeout(function(){
|
||||
var x = Math.floor((Math.random() * window.innerWidth) + 1);
|
||||
var snow = document.createElement("div");
|
||||
var parent = document.getElementsByClassName("mega")[0];
|
||||
|
||||
snow.className = "snow";
|
||||
//snow.attr("left", x);
|
||||
snow.style.left = x+"px";
|
||||
snow.style.top = "0px";
|
||||
parent.appendChild(snow);
|
||||
Nochan.fall_snow(snow);
|
||||
Nochan.start_snowfall();
|
||||
}, 1200);
|
||||
},
|
||||
|
||||
fall_snow: function(corn){
|
||||
corn.style.top = (parseInt(corn.style.top.replace("px", ""))+2)+"px";
|
||||
if(parseInt(corn.style.top.replace("px", "")) < document.getElementById("mega-background").offsetHeight-5){
|
||||
setTimeout(function(){
|
||||
Nochan.fall_snow(corn);
|
||||
},50);
|
||||
}else{
|
||||
corn.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -216,6 +241,9 @@ $(document).ready(function (){
|
||||
window.location.href = 'https://www.youtube.com/v/0IGsNdVoEh0?autoplay=1&showinfo=0&autohide=1';
|
||||
});
|
||||
|
||||
|
||||
Nochan.start_snowfall();
|
||||
|
||||
/*if(navigator.userAgent.toLowerCase().indexOf("android") > -1){
|
||||
//console.log("android");
|
||||
if(Nochan.getCookie("show_prompt") == ""){
|
||||
|
||||
Reference in New Issue
Block a user