diff options
Diffstat (limited to 'plugins/jetpack/_inc/build/widgets/eu-cookie-law')
-rw-r--r-- | plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.js | 2 | ||||
-rw-r--r-- | plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.js b/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.js new file mode 100644 index 00000000..654d256c --- /dev/null +++ b/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.js @@ -0,0 +1,2 @@ +/* Do not modify this file directly. It is compiled from other files. */ +!function(i){var e=i(document);e.on("ready",function(){var o=function(e,o){var c=i(o||this).closest(".eu-cookie-law-widget-policy-url");c.find('input[type="radio"][value="default"]').is(":checked")?(c.find(".notice.default-policy").css("display","block"),c.find(".notice.custom-policy").hide()):(c.find(".notice.default-policy").hide(),c.find(".notice.custom-policy").css("display","block"))};e.on("click",'.eu-cookie-law-widget-policy-url input[type="radio"]',o),e.on("widget-updated widget-added",function(e,c){var d=i(c).attr("id");-1!==d.indexOf("eu_cookie_law_widget")&&o(0,i("#"+d+" .eu-cookie-law-widget-policy-url"))}),i(".eu-cookie-law-widget-policy-url").each(o)})}(jQuery);
\ No newline at end of file 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 8634fda7..19590a3a 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,2 @@ /* Do not modify this file directly. It is compiled from other files. */ -!function(e){function o(o){if(!s){s=!0,o&&o.preventDefault&&o.preventDefault(),a.hasClass("hide-on-scroll")&&e(window).off("scroll",t);var i=new Date;i.setTime(i.getTime()+2592e6),document.cookie="eucookielaw="+i.getTime()+";path=/;expires="+i.toGMTString(),a.fadeOut(400,function(){a.remove()})}}var i,t,n=document.cookie.replace(/(?:(?:^|.*;\s*)eucookielaw\s*\=\s*([^;]*).*$)|^.*$/,"$1"),a=e("#eu-cookie-law");""!==n&&a.remove(),e(".widget_eu_cookie_law_widget").appendTo("body").fadeIn(),a.find("form").on("submit",o),a.hasClass("hide-on-scroll")?(i=e(window).scrollTop(),t=function(){Math.abs(e(window).scrollTop()-i)>50&&o()},e(window).on("scroll",t)):a.hasClass("hide-on-time")&&setTimeout(o,1e3*a.data("hide-timeout"));var s=!1}(jQuery);
\ No newline at end of file +!function(e){function o(o){if(!d){d=!0,o&&o.preventDefault&&o.preventDefault(),t.hasClass("hide-on-scroll")&&e(window).off("scroll",a);var s=new Date;s.setTime(s.getTime()+24*t.data("consent-expiration")*60*60*1e3),document.cookie="eucookielaw="+s.getTime()+";path=/;expires="+s.toGMTString(),t.hasClass("ads-active")&&t.hasClass("hide-on-button")&&(document.cookie="personalized-ads-consent="+s.getTime()+";path=/;expires="+s.toGMTString()),t.fadeOut(400,function(){t.remove()})}}var s,a,i=document.cookie.replace(/(?:(?:^|.*;\s*)eucookielaw\s*\=\s*([^;]*).*$)|^.*$/,"$1"),t=e("#eu-cookie-law");if(t.hasClass("top")&&e(".widget_eu_cookie_law_widget").addClass("top"),t.hasClass("ads-active")){var n=document.cookie.replace(/(?:(?:^|.*;\s*)personalized-ads-consent\s*\=\s*([^;]*).*$)|^.*$/,"$1");""!==i&&""!==n&&t.remove()}else""!==i&&t.remove();e(".widget_eu_cookie_law_widget").appendTo("body").fadeIn(),t.find("form").on("submit",o),t.hasClass("hide-on-scroll")?(s=e(window).scrollTop(),a=function(){Math.abs(e(window).scrollTop()-s)>50&&o()},e(window).on("scroll",a)):t.hasClass("hide-on-time")&&setTimeout(o,1e3*t.data("hide-timeout"));var d=!1}(jQuery);
\ No newline at end of file |