PATH:
home
/
thebhoeo
/
public_html
/
wp-content
/
themes
/
woodmart
/
js
/
scripts
/
global
woodmartThemeModule.wdElementorAddAction("frontend/element_ready/container",function(){woodmartThemeModule.stickyContainer()}),woodmartThemeModule.stickyContainer=function(){let e=woodmartThemeModule.windowWidth;function t(){return document.querySelector("html").hasAttributes("dir")&&"rtl"===document.querySelector("html").getAttribute("dir")}function n(e,t){let n=Object.keys(t);0!==n.length&&n.forEach(function(n){e.style[n]=t[n]})}function o(e,n){let o=window.getComputedStyle(e),i={position:"fixed",width:o.width,marginTop:o.marginTop,marginBottom:o.marginBottom,top:`${n}px`,bottom:"",zIndex:99};return t()?i.insetInlineEnd=`${e.getBoundingClientRect().left}px`:i.insetInlineStart=`${e.getBoundingClientRect().left}px`,i}function i(e){let n={position:"absolute",top:"",bottom:"0px"};return t()?n.insetInlineEnd=`${e.offsetLeft}px`:n.insetInlineStart=`${e.offsetLeft}px`,n}function r(e,t){e.parentNode.removeChild(t),e.style=""}document.querySelectorAll(".wd-sticky-container-yes, .wd-sticky-container-tablet-yes, .wd-sticky-container-mobile-yes").forEach(function(e){let t=e.dataset.id,n=document.querySelector(`.elementor-element-${t}.wd-sticky-spacer`);n&&n.remove(),document.querySelector(`.elementor-element-${t}`).style=""}),window.addEventListener("scroll",function(){let t=document.querySelectorAll(".wd-sticky-container-yes:not(.wd-sticky-spacer), .wd-sticky-container-tablet-yes:not(.wd-sticky-spacer), .wd-sticky-container-mobile-yes:not(.wd-sticky-spacer)"),s={is_desktop:e>1024,is_tablet:e>768&&e<1024,is_mobile:e<=768};t.forEach(function(e){!function(e,t){let s=e.dataset.id;if(void 0===s)return;let d=document.querySelector(`.elementor-element-${s}.wd-sticky-spacer`);if(t.is_mobile&&!e.classList.contains("wd-sticky-container-mobile-yes")||t.is_tablet&&!e.classList.contains("wd-sticky-container-tablet-yes")||t.is_desktop&&!e.classList.contains("wd-sticky-container-yes"))return void(null!==d&&r(e,d));let l=Array.from(e.classList).find(function(e){return-1!==e.indexOf("wd-sticky-offset")}),c=void 0!==l?parseInt(l.substring(l.lastIndexOf("-")+1)):150,a=woodmartThemeModule.$window.scrollTop(),u=e.offsetHeight,f=e.getBoundingClientRect().top+window.scrollY-c,p=e.parentNode.parentNode.classList.contains("entry-content"),w=e.parentNode.getBoundingClientRect().top+window.scrollY-c+e.parentNode.offsetHeight;if(!p&&null===d&&a>f){let t="fixed";a>w&&(t="absolute"),d=function(e,t,r="fixed"){let s=o(e,t);"absolute"===r&&(s=i(e));let d=e.cloneNode(!0);d.classList.add("wd-sticky-spacer"),n(d,{visibility:"hidden"});var l=d.querySelector("#wd-wtl-policy-check");return l&&(l.id=l.id+"-clone"),e.parentNode.insertBefore(d,e),n(e,s),d}(e,c,t)}if(null===d)return;let y=d.parentNode.getBoundingClientRect().top+window.scrollY-c+d.parentNode.offsetHeight;a<d.getBoundingClientRect().top+window.scrollY-c?r(e,d):"fixed"!==e.style.position&&a<y-u?(void 0===function(e){let t=[];if(!e.parentNode)return t;let n=e.parentNode.firstChild;for(;n;)1===n.nodeType&&n!==e&&t.push(n),n=n.nextSibling;return t}(e).find(function(e){return"absolute"===e.style.position})&&n(e.parentNode,{position:""}),n(e,o(d,c))):"absolute"!==e.style.position&&f+u>y&&(n(e.parentNode,{position:"relative"}),n(e,i(d)))}(e,s)})}),window.addEventListener("resize",function(){"undefined"!=typeof elementor&&(e=isNaN(parseInt(elementor.$preview.css("--e-editor-preview-width")))?1025:parseInt(elementor.$preview.css("--e-editor-preview-width")))})},window.addEventListener("load",function(){woodmartThemeModule.stickyContainer()});
[-] 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]
[-] elementor-integration.js
[edit]
[-] preloader.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]
[-] elementor-integration.min.js
[edit]
[-] preloader.min.js
[edit]
[-] callPhotoSwipe.js
[edit]
[-] ageVerify.js
[edit]
[-] animationsOffset.js
[edit]
[-] widgetsHidable.min.js
[edit]
[-] animationsOffset.min.js
[edit]
[-] btnsToolTips.js
[edit]