mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed controlls
This commit is contained in:
2
static/dist/main.min.js
vendored
2
static/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -7,6 +7,7 @@ var Playercontrols = {
|
|||||||
if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
||||||
$("#controls").appendTo("#playbar");
|
$("#controls").appendTo("#playbar");
|
||||||
}
|
}
|
||||||
|
Playercontrols.initControls();
|
||||||
},
|
},
|
||||||
|
|
||||||
initControls: function()
|
initControls: function()
|
||||||
@@ -48,6 +49,7 @@ var Playercontrols = {
|
|||||||
|
|
||||||
play_pause: function()
|
play_pause: function()
|
||||||
{
|
{
|
||||||
|
console.log("play pause");
|
||||||
if(Youtube.ytplayer.getPlayerState() == 1)
|
if(Youtube.ytplayer.getPlayerState() == 1)
|
||||||
{
|
{
|
||||||
Youtube.ytplayer.pauseVideo();
|
Youtube.ytplayer.pauseVideo();
|
||||||
|
|||||||
Reference in New Issue
Block a user