Green Roads CBD Products | CBD Oil, CBD Edibles, CBD Cream & More = endTopPosition || !document.querySelector(‘.cookies-notification’)) { clearInterval(animationInterval); newPos = 0; } bannerWrapper.style.bottom = newPos + “px”; }, 5); cookiesApply.removeEventListener(‘click’, slideDownWhenCookiesApplied); } function onResize() { var newHeight = isMobile() ? CONFIG.mobileHeight : CONFIG.height; var newBottomPos = cookies ? cookies.offsetHeight : 0; bannerWrapper.style.height = newHeight + ‘px’; banner.style.height = newHeight + ‘px’; bannerWrapper.style.bottom = newBottomPos + ‘px’; if (!translated) { bannerWrapper.style.transform = ‘translateY(‘ + (newHeight + newBottomPos) + ‘px)’; } } function close() { addCss(bannerWrapper, { transform: “translateY(200%)”, opacity: “0” }) } function isMobile() { return document.documentElement.offsetWidth

Source