Merge branch 'master' of github.com:nixolas1/zoff

This commit is contained in:
Nicolas A. Tonne
2014-10-20 12:59:19 +02:00
2 changed files with 25 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ function updateList()
}
}
}
myScroll.refresh();
if(window.mobilecheck())
{
document.getElementById("player").style.display="none";
@@ -112,3 +113,24 @@ function show(){
$("#chan").html(chan);
}
}
function ks()
{
list = $.ajax({ type: "GET",
url: "php/change.php",
async: false
}).responseText;
list = $.parseJSON(list);
myScroll.destroy();
myScroll = null;
$("#playlist").css({height: $("#player").height()});
$("#playlist").css({overflow: "hidden"});
myScroll = new IScroll('#playlist', {
mouseWheel: true,
scrollbars: false,
scrollY: true,
interactiveScrollbars: false
});
scroller = true;
}

View File

@@ -72,10 +72,12 @@ $(document).ready(function()
if(window.mobilecheck()){
syncInterval = setInterval(getTime, 50000);
listInterval = setInterval(updateList, 50000);
//listKillInterval = setInterval(ks, 50000);
document.getElementById("search").blur();
}else{
syncInterval = setInterval(getTime, 5000);
listInterval = setInterval(updateList, 10000);
//listKillInterval = setInterval(ks, 50000);
}
});