(function cookieNotice(){ Static.EU_COOKIE_BUTTON_LABEL = "Accept Cookies"; Y.on("available", function(){ var cookie = this.getDOMNode(); document.body.insertBefore(cookie, document.body.children[0]); cookie.addEventListener("click", function(e){ if (e.target.matches(".accept")) window.dispatchEvent(new Event("resize")); }); }, ".cookie-notice"); })();