updated plugin GP Premium version 2.1.1

This commit is contained in:
2021-12-20 13:41:59 +00:00
committed by Gitium
parent 132b46b78f
commit d5dbb2bde7
86 changed files with 2903 additions and 455 deletions

View File

@ -46,7 +46,7 @@
topMargin: "auto",
keepInWrapper: false,
wrapperSelector: '',
zIndex: 100,
zIndex: 10000,
namespaceClass: "stuckElement",
fixedClass: "isStuck",
disableOn:function(){
@ -96,7 +96,8 @@
'-webkit-transition': '',
'-ms-transition': '',
'transition': '',
'visibility': ''
'visibility': '',
'z-index': '',
})
.removeClass( 'sticky-navigation-transition' )
.removeClass( 'navigation-transition' )
@ -147,6 +148,10 @@
void 0;
active = true;
if ( options.zIndex ) {
$element.css( 'z-index', options.zIndex );
}
if ( 'fade' == options.transition ) {
$element.hide();
}
@ -167,7 +172,7 @@
if ( 'left' == $element.css( 'float' ) || 'right' == $element.css( 'float' ) ) {
$placeholder.css( 'float', $element.css( 'float' ) );
$placeholder.attr( 'style', $placeholder.attr( 'style' ) + 'width:auto !important' );
$placeholder.attr( 'style', $placeholder.attr( 'style' ) + 'width:auto !important;' );
}
if ( 'slide' == options.transition && 'block' == $placeholder.css( 'display' ) ) {
@ -394,10 +399,6 @@
$parent = $body;
}
if( options.zIndex ) {
$element.css( 'z-index',options.zIndex );
}
$( window ).on( 'scroll.stickUp', stickUpScrollHandlerFn );
$( window ).on( 'resize.stickUp', stickUpResponsiveHandlerFn );
@ -576,7 +577,7 @@ jQuery( function( $ ) {
var mobileHeader = $( '#mobile-header' );
mobileHeader.GenerateSimpleSticky({
scrollHide: ( mobileHeader.data( 'auto-hide-sticky' ) ) ? true : false,
scrollHide: ( mobileHeader.data( 'auto-hide-sticky' ) || '' === mobileHeader.data( 'auto-hide-sticky' ) ) ? true : false,
disableOn: function() {
if ( ! mobileHeader.is( ':visible' ) ) {
return false;

File diff suppressed because one or more lines are too long