diff options
Diffstat (limited to 'plugins/jetpack/_inc/build/widgets/eu-cookie-law')
4 files changed, 4 insertions, 5 deletions
diff --git a/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.asset.php b/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.asset.php new file mode 100644 index 00000000..a0a65c0d --- /dev/null +++ b/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.asset.php @@ -0,0 +1 @@ +<?php return array('dependencies' => array(), 'version' => 'ef332b3b0b491e3e9b0f895c042ff257');
\ No newline at end of file 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 index 8cabb2ec..633c0ccc 100644 --- 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 @@ -1,3 +1 @@ -/* Do not modify this file directly. It is compiled from other files. */ -/* eslint no-var: 0 */ -!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 +!function(){var i,e;i=jQuery,(e=i(document)).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");d&&-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)}))}();
\ No newline at end of file diff --git a/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.asset.php b/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.asset.php new file mode 100644 index 00000000..6fe522e2 --- /dev/null +++ b/plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.asset.php @@ -0,0 +1 @@ +<?php return array('dependencies' => array(), 'version' => 'c3dd83bf05544fa797b2e4a3e4cfb657');
\ 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 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 |