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:
@@ -1018,7 +1018,7 @@ nav ul li:hover, nav ul li.active {
|
||||
}
|
||||
|
||||
#controls{
|
||||
opacity: 1;
|
||||
/*opacity: 1;*/
|
||||
background-color: rgb(70, 70, 70);
|
||||
}
|
||||
|
||||
|
||||
4
static/dist/main.min.js
vendored
4
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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