You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
cosmopet.ae/wp-content/themes/woodmart22/js/scripts/global/stickyFooter.min.js

1 lines
724 B

!function(a){woodmartThemeModule.stickyFooter=function(){if(woodmartThemeModule.$body.hasClass("sticky-footer-on")&&!(woodmartThemeModule.$window.width()<=1024)){var b=a(".footer-container"),c=a(".main-page-wrapper"),d=a(".wd-prefooter"),e=woodmartThemeModule.$window;d.length>0&&(c=d);var f=function(){c.css({marginBottom:b.outerHeight()})};e.on("resize",f),b.imagesLoaded(function(){f()});var g=function(){if(a("html").hasClass("browser-Safari")){var c=e.scrollTop();woodmartThemeModule.$document.outerHeight()-b.outerHeight()<c+b.outerHeight()+e.outerHeight()?b.addClass("visible-footer"):b.removeClass("visible-footer")}};g(),e.on("scroll",g)}},a(document).ready(function(){woodmartThemeModule.stickyFooter()})}(jQuery);