PATH:
home
/
thebhoeo
/
.trash
/
woodmart
/
js
/
scripts
/
global
/* global woodmart_settings */ (function($) { woodmartThemeModule.$document.on('wdElementorColumnReady pjax:complete wdShopPageInit', function () { woodmartThemeModule.stickyColumn(); }); woodmartThemeModule.$window.on('elementor/frontend/init', function() { if (!elementorFrontend.isEditMode()) { return; } elementorFrontend.hooks.addAction('frontend/element_ready/container', function($wrapper) { var cid = $wrapper.data('model-cid'); if (typeof elementorFrontend.config.elements.data[cid] !== 'undefined') { if (elementorFrontend.config.elements.data[cid].attributes.container_sticky) { $wrapper.addClass('wd-sticky-container-lg'); } else { $wrapper.removeClass('wd-sticky-container-lg'); } if (elementorFrontend.config.elements.data[cid].attributes.container_sticky_tablet) { $wrapper.addClass('wd-sticky-container-md-sm'); } else { $wrapper.removeClass('wd-sticky-container-md-sm'); } if (elementorFrontend.config.elements.data[cid].attributes.container_sticky_mobile) { $wrapper.addClass('wd-sticky-container-sm'); } else { $wrapper.removeClass('wd-sticky-container-sm'); } } }); }); woodmartThemeModule.stickyColumn = function() { $('.woodmart-sticky-column').each(function() { var $column = $(this), offset = 150; var classes = $column.attr('class').split(' '); for (var index = 0; index < classes.length; index++) { if (classes[index].indexOf('wd_sticky_offset_') >= 0) { var data = classes[index].split('_'); offset = parseInt(data[3]); } } $column.find(' > .vc_column-inner > .wpb_wrapper').trigger('sticky_kit:detach'); $column.find(' > .vc_column-inner > .wpb_wrapper').stick_in_parent({ offset_top: offset }); }); $('.wd-elementor-sticky-column').each(function() { var $column = $(this); var offset = 150; var classes = $column.attr('class').split(' '); for (var index = 0; index < classes.length; index++) { if (classes[index].indexOf('wd_sticky_offset_') >= 0) { var data = classes[index].split('_'); offset = parseInt(data[3]); } } var $widgetWrap = $column.find(' > .elementor-widget-wrap'); if ($widgetWrap.length <= 0) { $widgetWrap = $column.find('> .elementor-widget-wrap'); } $widgetWrap.stick_in_parent({ offset_top: offset }); }); $(':is(.wp-block-wd-column, .wp-block-wd-off-sidebar, .wp-block-wd-off-content)[class*="wd-sticky-on-"]').each(function() { var $column = $(this); var offset = 150; var classes = $column.attr('class').split(' '); for (var index = 0; index < classes.length; index++) { if (classes[index].indexOf('wd_sticky_offset_') >= 0) { var data = classes[index].split('_'); offset = parseInt(data[3]); } } function initSticky() { var windowWidth = woodmartThemeModule.$window.width(); $column.trigger('sticky_kit:detach'); if ( ( ! $column.hasClass('wd-sticky-on-lg') && windowWidth > 1024 ) || ( ! $column.hasClass('wd-sticky-on-md-sm') && windowWidth <= 1024 && windowWidth > 768 ) || ( ! $column.hasClass('wd-sticky-on-sm') && windowWidth <= 768 ) ) { return; } $column.stick_in_parent({ offset_top: offset }); } initSticky(); woodmartThemeModule.$window.on('resize', woodmartThemeModule.debounce(function() { initSticky(); }, 300)); }); $('[class*="wd-sticky-container-"]').each(function() { var $column = $(this); function initSticky() { var windowWidth = woodmartThemeModule.$window.width(); $column.trigger('sticky_kit:detach'); if ( ( ! $column.hasClass('wd-sticky-container-lg') && windowWidth > 1024 ) || ( ! $column.hasClass('wd-sticky-container-md-sm') && windowWidth <= 1024 && windowWidth > 768 ) || ( ! $column.hasClass('wd-sticky-container-sm') && windowWidth <= 768 ) ) { return; } var carouselStyle = window.getComputedStyle($column[0]); var offset = parseInt( carouselStyle.getPropertyValue('--wd-sticky-offset'), 10); $column.stick_in_parent({ offset_top: offset }); } initSticky(); woodmartThemeModule.$window.on('resize', woodmartThemeModule.debounce(function() { initSticky(); }, 300)); }); }; $(document).ready(function() { woodmartThemeModule.stickyColumn(); }); })(jQuery);
[-] beforeSearchContent.js
[edit]
[-] parallax.js
[edit]
[-] scrollTop.min.js
[edit]
[-] floatingBlocks.min.js
[edit]
[-] searchHistory.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]
[-] swiperInit.js
[edit]
[-] clearSearch.js
[edit]
[-] scrollTop.js
[edit]
[-] clearSearch.min.js
[edit]
[-] ageVerify.min.js
[edit]
[-] beforeSearchContent.min.js
[edit]
[-] stickySocialButtons.js
[edit]
[-] ajaxSearch.js
[edit]
[-] mfpPopup.js
[edit]
[-] lcpTracker.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]
[-] floatingBlocks.js
[edit]
[-] ajaxSearch.min.js
[edit]
[-] callPhotoSwipe.min.js
[edit]
[-] lazyLoading.js
[edit]
[-] backHistory.js
[edit]
[-] searchHistory.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]
[-] lcpTracker.min.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]