summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/_inc/build/widgets')
-rw-r--r--plugins/jetpack/_inc/build/widgets/customizer-utils.min.js2
-rw-r--r--plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law-admin.min.js2
-rw-r--r--plugins/jetpack/_inc/build/widgets/eu-cookie-law/eu-cookie-law.min.js2
3 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/_inc/build/widgets/customizer-utils.min.js b/plugins/jetpack/_inc/build/widgets/customizer-utils.min.js
index 872c3ee7..f001d60f 100644
--- a/plugins/jetpack/_inc/build/widgets/customizer-utils.min.js
+++ b/plugins/jetpack/_inc/build/widgets/customizer-utils.min.js
@@ -1,3 +1,3 @@
/* Do not modify this file directly. It is compiled from other files. */
/* global wp, gapi, FB, twttr */
-wp.customizerHasPartialWidgetRefresh=function(){return"object"==typeof wp&&"function"==typeof wp.customize&&"object"==typeof wp.customize.selectiveRefresh&&"object"==typeof wp.customize.widgetsPreview&&"function"==typeof wp.customize.widgetsPreview.WidgetPartial},wp.isJetpackWidgetPlaced=function(e,t){return e.partial.widgetId&&0===e.partial.widgetId.indexOf(t)},function(e){e(document).ready(function(){wp&&wp.customize&&wp.customizerHasPartialWidgetRefresh()&&(wp.customize.selectiveRefresh.bind("partial-content-rendered",function(t){t.container&&(wp.isJetpackWidgetPlaced(t,"googleplus-badge")&&"object"==typeof gapi&&gapi.person&&"function"==typeof gapi.person.go?gapi.person.go(t.container[0]):wp.isJetpackWidgetPlaced(t,"facebook-likebox")&&"object"==typeof FB&&"object"==typeof FB.XFBML&&"function"==typeof FB.XFBML.parse?FB.XFBML.parse(t.container[0],function(){var i=e(t.container[0]).find(".fb_iframe_widget"),o=i.data("width"),n=i.data("height");i.find("span").css({width:o,height:n}),setTimeout(function(){i.find("iframe").css({width:o,height:n,position:"relative"})},1)}):wp.isJetpackWidgetPlaced(t,"twitter_timeline")&&"object"==typeof twttr&&"object"==typeof twttr.widgets&&"function"==typeof twttr.widgets.load?twttr.widgets.load(t.container[0]):wp.isJetpackWidgetPlaced(t,"eu_cookie_law_widget")&&t.container.fadeIn())}),wp.customize.selectiveRefresh.bind("partial-content-moved",function(e){e.container&&wp.isJetpackWidgetPlaced(e,"twitter_timeline")&&e.container.find("iframe.twitter-timeline:not([src]):first").length&&e.partial.refresh()}))})}(jQuery); \ No newline at end of file
+wp.customizerHasPartialWidgetRefresh=function(){return"object"==typeof wp&&"function"==typeof wp.customize&&"object"==typeof wp.customize.selectiveRefresh&&"object"==typeof wp.customize.widgetsPreview&&"function"==typeof wp.customize.widgetsPreview.WidgetPartial},wp.isJetpackWidgetPlaced=function(e,t){return e.partial.widgetId&&0===e.partial.widgetId.indexOf(t)},function(e){e(document).ready(function(){wp&&wp.customize&&wp.customizerHasPartialWidgetRefresh()&&(wp.customize.selectiveRefresh.bind("partial-content-rendered",function(t){t.container&&(wp.isJetpackWidgetPlaced(t,"googleplus-badge")&&"object"==typeof gapi&&gapi.person&&"function"==typeof gapi.person.go?gapi.person.go(t.container[0]):wp.isJetpackWidgetPlaced(t,"facebook-likebox")&&"object"==typeof FB&&"object"==typeof FB.XFBML&&"function"==typeof FB.XFBML.parse?FB.XFBML.parse(t.container[0],function(){var i=e(t.container[0]).find(".fb_iframe_widget"),o=i.data("width"),a=i.data("height");i.find("span").css({width:o,height:a}),setTimeout(function(){i.find("iframe").css({width:o,height:a,position:"relative"})},1)}):wp.isJetpackWidgetPlaced(t,"twitter_timeline")&&"object"==typeof twttr&&"object"==typeof twttr.widgets&&"function"==typeof twttr.widgets.load?twttr.widgets.load(t.container[0]):wp.isJetpackWidgetPlaced(t,"eu_cookie_law_widget")&&(e("#eu-cookie-law").hasClass("top")?e(".widget_eu_cookie_law_widget").addClass("top"):e(".widget_eu_cookie_law_widget").removeClass("top"),t.container.fadeIn()))}),wp.customize.selectiveRefresh.bind("partial-content-moved",function(e){e.container&&wp.isJetpackWidgetPlaced(e,"twitter_timeline")&&e.container.find("iframe.twitter-timeline:not([src]):first").length&&e.partial.refresh()}))})}(jQuery); \ 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
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