mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
toggleclass on the paddingbottom for mobile
This commit is contained in:
@@ -55,13 +55,17 @@ var Playercontrols = {
|
||||
if(Youtube.ytplayer.getPlayerState() == 1)
|
||||
{
|
||||
Youtube.ytplayer.pauseVideo();
|
||||
if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream)
|
||||
if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
||||
document.getElementById("player").style.display = "none";
|
||||
$(".page-footer").toggleClass("padding-bottom-extra");
|
||||
}
|
||||
}else if(Youtube.ytplayer.getPlayerState() == 2 || Youtube.ytplayer.getPlayerState() == 0)
|
||||
{
|
||||
Youtube.ytplayer.playVideo();
|
||||
if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream)
|
||||
if(window.mobilecheck() && !/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream){
|
||||
document.getElementById("player").style.display = "block";
|
||||
$(".page-footer").toggleClass("padding-bottom-extra");
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user