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:
@@ -1230,6 +1230,11 @@ nav ul li:hover, nav ul li.active {
|
||||
|
||||
.page-footer{
|
||||
margin-top:40px !important;
|
||||
padding-bottom:40px;
|
||||
|
||||
}
|
||||
|
||||
.padding-bottom-extra{
|
||||
padding-bottom:200px;
|
||||
}
|
||||
|
||||
|
||||
2
static/dist/embed.min.js
vendored
2
static/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
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
@@ -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