initial
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-polyfill'), 'version' => 'e8b5983774283de6b2ed');
|
||||
+1
@@ -0,0 +1 @@
|
||||
(()=>{var i,e;i=jQuery,(e=i(document)).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)})})();
|
||||
+1
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => '0615b55151d6a4bbc83a');
|
||||
+1
@@ -0,0 +1 @@
|
||||
!function(){var e=document.getElementById("eu-cookie-law"),t=document.querySelector(".widget_eu_cookie_law_widget");if(null!==t&&null!==e){var i,o,n,s=document.cookie.replace(/(?:(?:^|.*;\s*)eucookielaw\s*=\s*([^;]*).*$)|^.*$/,"$1"),a=t&&t.hasAttribute("data-customize-widget-id");if(i=function(){return Math.abs(document.body.getBoundingClientRect().y)},e.classList.contains("top")&&t.classList.add("top"),e.classList.contains("ads-active")){var c=document.cookie.replace(/(?:(?:^|.*;\s*)personalized-ads-consent\s*=\s*([^;]*).*$)|^.*$/,"$1");""===s||""===c||a||e.parentNode.removeChild(e)}else""===s||a||e.parentNode.removeChild(e);document.body.appendChild(t),e.querySelector("form").addEventListener("submit",r),e.classList.contains("hide-on-scroll")?(o=i(),n=function(){Math.abs(i()-o)>50&&r()},window.addEventListener("scroll",n)):e.classList.contains("hide-on-time")&&setTimeout(r,1e3*e.getAttribute("data-hide-timeout"));var d=!1}function r(i){if(!d){d=!0,i&&i.preventDefault&&i.preventDefault(),e.classList.contains("hide-on-scroll")&&window.removeEventListener("scroll",n);var o=new Date;o.setTime(o.getTime()+24*e.getAttribute("data-consent-expiration")*60*60*1e3),document.cookie="eucookielaw="+o.getTime()+";path=/;expires="+o.toGMTString(),e.classList.contains("ads-active")&&e.classList.contains("hide-on-button")&&(document.cookie="personalized-ads-consent="+o.getTime()+";path=/;expires="+o.toGMTString()),e.classList.add("hide"),setTimeout(function(){e.parentNode.removeChild(e),t.parentNode.removeChild(t)},400)}}}();
|
||||
Reference in New Issue
Block a user