diff options
Diffstat (limited to 'plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js')
-rw-r--r-- | plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js b/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js index e9a718be..e9884b50 100644 --- a/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js +++ b/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js @@ -1,2 +1 @@ -/* Do not modify this file directly. It is compiled from other files. */ -!function(e){var o,a,t=document.cookie.replace(/(?:(?:^|.*;\s*)eucookielaw\s*\=\s*([^;]*).*$)|^.*$/,"$1"),i=e("#eu-cookie-law");if(i.hasClass("top")&&e(".widget_eu_cookie_law_widget").addClass("top"),i.hasClass("ads-active")){var s=document.cookie.replace(/(?:(?:^|.*;\s*)personalized-ads-consent\s*\=\s*([^;]*).*$)|^.*$/,"$1");""!==t&&""!==s&&i.remove()}else""!==t&&i.remove();e(".widget_eu_cookie_law_widget").appendTo("body").fadeIn(),i.find("form").on("submit",d),i.hasClass("hide-on-scroll")?(o=e(window).scrollTop(),a=function(){Math.abs(e(window).scrollTop()-o)>50&&d()},e(window).on("scroll",a)):i.hasClass("hide-on-time")&&setTimeout(d,1e3*i.data("hide-timeout"));var n=!1;function d(o){if(!n){n=!0,o&&o.preventDefault&&o.preventDefault(),i.hasClass("hide-on-scroll")&&e(window).off("scroll",a);var t=new Date;t.setTime(t.getTime()+24*i.data("consent-expiration")*60*60*1e3),document.cookie="eucookielaw="+t.getTime()+";path=/;expires="+t.toGMTString(),i.hasClass("ads-active")&&i.hasClass("hide-on-button")&&(document.cookie="personalized-ads-consent="+t.getTime()+";path=/;expires="+t.toGMTString()),i.fadeOut(400,function(){i.remove();var e=document.querySelector(".widget.widget_eu_cookie_law_widget");e.parentNode.removeChild(e)})}}}(jQuery);
\ No newline at end of file +!function(){var e,t,i,o=document.cookie.replace(/(?:(?:^|.*;\s*)eucookielaw\s*\=\s*([^;]*).*$)|^.*$/,"$1"),n=document.getElementById("eu-cookie-law"),s=document.querySelector(".widget_eu_cookie_law_widget"),a=s&&s.hasAttribute("data-customize-widget-id");if(null!==s&&null!==n){if(e=function(){return Math.abs(document.body.getBoundingClientRect().y)},n.classList.contains("top")&&s.classList.add("top"),n.classList.contains("ads-active")){var c=document.cookie.replace(/(?:(?:^|.*;\s*)personalized-ads-consent\s*\=\s*([^;]*).*$)|^.*$/,"$1");""===o||""===c||a||n.parentNode.removeChild(n)}else""===o||a||n.parentNode.removeChild(n);document.body.appendChild(s),n.querySelector("form").addEventListener("submit",r),n.classList.contains("hide-on-scroll")?(t=e(),i=function(){Math.abs(e()-t)>50&&r()},window.addEventListener("scroll",i)):n.classList.contains("hide-on-time")&&setTimeout(r,1e3*n.getAttribute("data-hide-timeout"));var d=!1}function r(e){if(!d){d=!0,e&&e.preventDefault&&e.preventDefault(),n.classList.contains("hide-on-scroll")&&window.removeEventListener("scroll",i);var t=new Date;t.setTime(t.getTime()+24*n.getAttribute("data-consent-expiration")*60*60*1e3),document.cookie="eucookielaw="+t.getTime()+";path=/;expires="+t.toGMTString(),n.classList.contains("ads-active")&&n.classList.contains("hide-on-button")&&(document.cookie="personalized-ads-consent="+t.getTime()+";path=/;expires="+t.toGMTString()),n.classList.add("hide"),setTimeout((function(){n.parentNode.removeChild(n);var e=document.querySelector(".widget.widget_eu_cookie_law_widget");e.parentNode.removeChild(e)}),400)}}}();
\ No newline at end of file |