
www.oldyorkcellars.coms && skyboxDesktop) { // functionality for non-5x5 skybox ads www.oldyorkcellars.com('ad-tech-skybox-container--sticky'); if (www.oldyorkcellars.comHeight > 0) { www.oldyorkcellars.comgTop = `${www.oldyorkcellars.comHeight}px`; } // only remain sticky for 3 seconds to keep visibility if user // immediately scrolls on page load setTimeout(() => { www.oldyorkcellars.com('ad-tech-skybox-container--sticky'); www.oldyorkcellars.comgTop = '0px'; }, ); } } }, ); } }); // Returns a function, that, as long as it continues to be invoked, will not // be triggered. The function will be called after it stops being called for // N milliseconds. If `immediate` is passed, trigger the function on the // leading edge, instead of the trailing. // @CREDIT: www.oldyorkcellars.com function debounce(func, wait, immediate) { var timeout; return function() { var context = this, args = arguments; var later = function() { timeout = null; if (!immediate) www.oldyorkcellars.com(context, args); }; var callNow = immediate && !timeout; clearTimeout(timeout); timeout = setTimeout(later, wait); if (callNow) www.oldyorkcellars.com(context, args); why you should invest in ethereum }; // all ad placeholers in dom const adTechPlaceholders = www.oldyorkcellars.comelectorAll('.js-ad-tech-placeholder'); // Store the window width let windowWidth = www.oldyorkcellars.comidth; // add a class on resize so we can target with css www.oldyorkcellars.comntListener('resize', debounce(() => { // Check why you should invest in ethereum width has actually changed and it's not just iOS triggering a resize event on scroll if (www.oldyorkcellars.comidth != windowWidth) { // Update why you should invest in ethereum window width for next time windowWidth = www.oldyorkcellars.comidth www.oldyorkcellars.comh(placeholder => { www.oldyorkcellars.com('ad-tech-placeholder--resized'); }); } }), ); })();
0 comments