mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Merge branch 'master' of github.com:nixolas1/zoff
This commit is contained in:
22
js/list.js
22
js/list.js
@@ -57,6 +57,7 @@ function updateList()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
myScroll.refresh();
|
||||||
if(window.mobilecheck())
|
if(window.mobilecheck())
|
||||||
{
|
{
|
||||||
document.getElementById("player").style.display="none";
|
document.getElementById("player").style.display="none";
|
||||||
@@ -112,3 +113,24 @@ function show(){
|
|||||||
$("#chan").html(chan);
|
$("#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;
|
||||||
|
}
|
||||||
|
|||||||
@@ -72,10 +72,12 @@ $(document).ready(function()
|
|||||||
if(window.mobilecheck()){
|
if(window.mobilecheck()){
|
||||||
syncInterval = setInterval(getTime, 50000);
|
syncInterval = setInterval(getTime, 50000);
|
||||||
listInterval = setInterval(updateList, 50000);
|
listInterval = setInterval(updateList, 50000);
|
||||||
|
//listKillInterval = setInterval(ks, 50000);
|
||||||
document.getElementById("search").blur();
|
document.getElementById("search").blur();
|
||||||
}else{
|
}else{
|
||||||
syncInterval = setInterval(getTime, 5000);
|
syncInterval = setInterval(getTime, 5000);
|
||||||
listInterval = setInterval(updateList, 10000);
|
listInterval = setInterval(updateList, 10000);
|
||||||
|
//listKillInterval = setInterval(ks, 50000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user