Dragging and loading

- Fixed searching in offline
- Fixed load on mobile in offline
This commit is contained in:
Kasper Rynning-Tønnesen
2017-11-10 11:36:06 +01:00
parent 1debe715d4
commit 47e4cecdef
2 changed files with 13 additions and 10 deletions

View File

@@ -447,6 +447,13 @@ var Player = {
$("#playpause").css("visibility", "hidden");
$("#playpause").css("pointer-events", "none");
$("#player").css("opacity", "1");
if(offline) {
setTimeout(function(){
$("#channel-load").css("display", "none");
$("#playpause").css("visibility", "visible");
$("#playpause").css("pointer-events", "all");
}, 1500);
}
} else {
//$("#channel-load").css("display", "none");
}
@@ -594,12 +601,6 @@ var Player = {
//currDurr = currDurr - Player.np.start;
minutes = Math.floor(currDurr / 60);
seconds = currDurr - (minutes * 60);
/*if(isNan(minutes)) {
minutes = 0;
}
if(isNan(seconds)) {
seconds = 0;
}*/
document.getElementById("duration").innerHTML = Helper.pad(minutes)+":"+Helper.pad(seconds)+" <span id='dash'>/</span> "+Helper.pad(dMinutes)+":"+Helper.pad(dSeconds);
per = (100 / duration) * currDurr;
if(per >= 100) {