Changed timing of when snow appears

This commit is contained in:
Kasper Rynning-Tønnesen
2017-01-19 16:45:29 +01:00
parent 6274ba6d5b
commit 107092277e
5 changed files with 36 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -4,7 +4,7 @@ var Crypt = {
init: function(){
document.cookie = chan.toLowerCase() + '=; path=/' + chan.toLowerCase() + ';secure;expires=' + new Date(0).toUTCString();
document.cookie = chan.toLowerCase() + '=;path=/' + chan.toLowerCase() + ';secure;expires=' + new Date(0).toUTCString();
try{
conf_arr = Crypt.decrypt(Crypt.getCookie("_opt"), "_opt");

View File

@@ -40,6 +40,8 @@ var access_token_data_youtube = {};
var youtube_authenticated = false;
var chromecastAvailable = false;
var color = "808080";
var find_start = false;
var find_started = false;
var chromecastReady = false;
var castSession;
@@ -1055,6 +1057,33 @@ $(document).on("click", "#bottom-button", function(){
List.scrollBottom();
});
/*
$(document).keydown(function(event) {
//console.log(find_start);
//console.log(event.keyCode);
if(event.keyCode == 91 || event.keyCode == 17){
find_start = true;
} else if(find_start && event.keyCode == 70){
find_start = false;
find_started = !find_started;
//event.preventDefault();
if(find_started){
console.log("time to search");
} else {
console.log("abort search");
}
} else {
find_start = false;
}
});
$(document).keyup(function(event){
if((event.keyCode == 91 || event.keyCode == 17) && !find_started){
find_start = false;
}
});
*/
function share_link_modifier_channel(){
$("#facebook-code-link").attr("href", "https://www.facebook.com/sharer/sharer.php?u=https://zoff.no/" + chan.toLowerCase());
$("#facebook-code-link").attr("onclick", "window.open('https://www.facebook.com/sharer/sharer.php?u=https://zoff.no/" + chan.toLowerCase() + "', 'Share Playlist','width=600,height=300'); return false;");

View File

@@ -23,7 +23,7 @@ var Nochan = {
blob_list: [],
winter: (new Date()).getMonth() >= 10 || (new Date()).getMonth() <= 1 ? true : false,
winter: (new Date()).getMonth() >= 10 ? true : false,
times_rotated: 0,