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:
@@ -100,6 +100,7 @@
|
|||||||
|
|
||||||
<?php include("footer.php"); ?>
|
<?php include("footer.php"); ?>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/dist/remote.min.js"></script>
|
<script type="text/javascript" src="/static/dist/remote.min.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -60,7 +60,6 @@
|
|||||||
|
|
||||||
|
|
||||||
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script>
|
|
||||||
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/dist/lib/materialize.min.js"></script>
|
<script type="text/javascript" src="/static/dist/lib/materialize.min.js"></script>
|
||||||
<script type="text/javascript" src="//cdn.socket.io/socket.io-1.3.5.js"></script>
|
<script type="text/javascript" src="//cdn.socket.io/socket.io-1.3.5.js"></script>
|
||||||
|
|||||||
@@ -1018,7 +1018,7 @@ nav ul li:hover, nav ul li.active {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#controls{
|
#controls{
|
||||||
opacity: 1;
|
/*opacity: 1;*/
|
||||||
background-color: rgb(70, 70, 70);
|
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;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
playing = true;
|
playing = true;
|
||||||
|
if(beginning && window.mobilecheck()){
|
||||||
|
ytplayer.pauseVideo();
|
||||||
|
beginning = false;
|
||||||
|
}
|
||||||
if(document.getElementById("play").className.split(" ").length == 1)
|
if(document.getElementById("play").className.split(" ").length == 1)
|
||||||
$("#play").toggleClass("hide");
|
$("#play").toggleClass("hide");
|
||||||
if(document.getElementById("pause").className.split(" ").length == 2)
|
if(document.getElementById("pause").className.split(" ").length == 2)
|
||||||
@@ -118,6 +121,7 @@ var Youtube = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onPlayerReady: function(event) {
|
onPlayerReady: function(event) {
|
||||||
|
beginning = true;
|
||||||
player_ready = true;
|
player_ready = true;
|
||||||
/*if(!window.mobilecheck())
|
/*if(!window.mobilecheck())
|
||||||
{*/
|
{*/
|
||||||
|
|||||||
Reference in New Issue
Block a user