Minor changes to how mobile loads and starts the video

This commit is contained in:
Kasper Rynning-Tønnesen
2015-11-27 22:00:14 +01:00
parent adb312bc58
commit 8cd0e9dba5
5 changed files with 9 additions and 5 deletions

View File

@@ -100,6 +100,7 @@
<?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>
</body>
</html>

View File

@@ -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="//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="/static/dist/lib/materialize.min.js"></script>
<script type="text/javascript" src="//cdn.socket.io/socket.io-1.3.5.js"></script>

View File

@@ -1018,7 +1018,7 @@ nav ul li:hover, nav ul li.active {
}
#controls{
opacity: 1;
/*opacity: 1;*/
background-color: rgb(70, 70, 70);
}

File diff suppressed because one or more lines are too long

View File

@@ -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())
{*/