PATH:
home
/
thebhoeo
/
public_html
/
lazysleep
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
global
/* global woodmart_settings */ (function($) { woodmartThemeModule.promoPopup = function() { var promo_version = woodmart_settings.promo_version; if ( typeof Cookies === 'undefined' ) { return; } if (woodmartThemeModule.$body.hasClass('page-template-maintenance') || woodmart_settings.enable_popup !== 'yes' || (woodmart_settings.promo_popup_hide_mobile === 'yes' && woodmartThemeModule.windowWidth < 768) || (Cookies.get('woodmart_age_verify') !== 'confirmed' && woodmart_settings.age_verify === 'yes')) { return; } var shown = false, pages = Cookies.get('woodmart_shown_pages'); var showPopup = function() { $.magnificPopup.open({ items : { src: '.wd-promo-popup' }, type : 'inline', removalDelay : 600, //delay removal by X to allow out-animation tClose : woodmart_settings.close, tLoading : woodmart_settings.loading, fixedContentPos: true, callbacks : { beforeOpen: function() { this.wrap.addClass('wd-popup-slide-from-left'); }, close : function() { Cookies.set('woodmart_popup_' + promo_version, 'shown', { expires: parseInt(woodmart_settings.promo_version_cookie_expires), path : '/', secure : woodmart_settings.cookie_secure_param }); } } }); woodmartThemeModule.$document.trigger('wood-images-loaded'); }; $('.woodmart-open-newsletter').on('click', function(e) { e.preventDefault(); showPopup(); }); if (!pages) { pages = 0; } if (pages < woodmart_settings.popup_pages) { pages++; Cookies.set('woodmart_shown_pages', pages, { expires: 7, path : '/', secure : woodmart_settings.cookie_secure_param }); return false; } if (Cookies.get('woodmart_popup_' + promo_version) !== 'shown') { if (woodmart_settings.popup_event === 'scroll') { woodmartThemeModule.$window.on('scroll', function() { if (shown) { return false; } if (woodmartThemeModule.$document.scrollTop() >= woodmart_settings.popup_scroll) { showPopup(); shown = true; } }); } else { setTimeout(function() { showPopup(); }, woodmart_settings.popup_delay); } } }; $(document).ready(function() { woodmartThemeModule.promoPopup(); }); })(jQuery);
[-] parallax.js
[edit]
[-] scrollTop.min.js
[edit]
[-] hiddenSidebar.min.js
[edit]
[-] masonryLayout.js
[edit]
[-] stickyColumn.js
[edit]
[-] stickyColumn.min.js
[edit]
[-] helpers.min.js
[edit]
[-] stickySocialButtons.min.js
[edit]
[-] parallax.min.js
[edit]
[-] promoPopup.min.js
[edit]
[-] swiperInit.js
[edit]
[-] scrollTop.js
[edit]
[-] promoPopup.js
[edit]
[-] ageVerify.min.js
[edit]
[-] stickySocialButtons.js
[edit]
[-] ajaxSearch.js
[edit]
[-] mfpPopup.js
[edit]
[-] photoswipeImages.js
[edit]
[-] clickOnScrollButton.min.js
[edit]
[-] masonryLayout.min.js
[edit]
[-] css-animations.js
[edit]
[-] cookiesPopup.min.js
[edit]
[-] hiddenSidebar.js
[edit]
[-] widgetCollapse.min.js
[edit]
[-] cookiesPopup.js
[edit]
[-] animations.min.js
[edit]
[-] scrollBar.min.js
[edit]
[-] photoswipeImages.min.js
[edit]
[-] ajaxSearch.min.js
[edit]
[-] callPhotoSwipe.min.js
[edit]
[-] lazyLoading.js
[edit]
[-] backHistory.js
[edit]
[-] stickyContainer.js
[edit]
[+]
..
[-] css-animations.min.js
[edit]
[-] swiperInit.min.js
[edit]
[-] mfpPopup.min.js
[edit]
[-] lazyLoading.min.js
[edit]
[-] clickOnScrollButton.js
[edit]
[-] helpers.js
[edit]
[-] searchFullScreen.min.js
[edit]
[-] scrollBar.js
[edit]
[-] backHistory.min.js
[edit]
[-] animations.js
[edit]
[-] btnsToolTips.min.js
[edit]
[-] searchFullScreen.js
[edit]
[-] widgetCollapse.js
[edit]
[-] stickyContainer.min.js
[edit]
[-] widgetsHidable.js
[edit]
[-] callPhotoSwipe.js
[edit]
[-] ageVerify.js
[edit]
[-] animationsOffset.js
[edit]
[-] widgetsHidable.min.js
[edit]
[-] animationsOffset.min.js
[edit]
[-] btnsToolTips.js
[edit]