Improved way of showing playbuttom somewhat

This commit is contained in:
Kasper Rynning-Tønnesen
2017-08-28 19:24:29 +02:00
parent 47e018bb99
commit 84cbdfaba0
3 changed files with 7 additions and 5 deletions

View File

@@ -206,6 +206,11 @@ var Player = {
break;
case 2:
if(!chromecastAvailable){
if(beginning && mobile_beginning) {
$("#playpause").css("visibility", "visible");
$("#playpause").css("pointer-events", "all");
$("#channel-load").css("display", "none");
}
paused = true;
if(window.location.pathname != "/") Playercontrols.play_pause_show();
mobile_beginning = true;
@@ -359,9 +364,6 @@ var Player = {
$("#playpause").css("visibility", "hidden");
$("#playpause").css("pointer-events", "none");
$("#player").css("opacity", "1");
$("#playpause").css("visibility", "visible");
$("#playpause").css("pointer-events", "all");
$("#channel-load").css("display", "none");
} else {
//$("#channel-load").css("display", "none");
}