mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Minor changes to how mobile loads and starts the video
This commit is contained in:
@@ -70,7 +70,10 @@ var Youtube = {
|
||||
break;
|
||||
case 1:
|
||||
playing = true;
|
||||
|
||||
if(beginning && window.mobilecheck()){
|
||||
ytplayer.pauseVideo();
|
||||
beginning = false;
|
||||
}
|
||||
if(document.getElementById("play").className.split(" ").length == 1)
|
||||
$("#play").toggleClass("hide");
|
||||
if(document.getElementById("pause").className.split(" ").length == 2)
|
||||
@@ -118,6 +121,7 @@ var Youtube = {
|
||||
},
|
||||
|
||||
onPlayerReady: function(event) {
|
||||
beginning = true;
|
||||
player_ready = true;
|
||||
/*if(!window.mobilecheck())
|
||||
{*/
|
||||
|
||||
Reference in New Issue
Block a user