summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/_inc/build/jetpack-connection-banner.min.js')
-rw-r--r--plugins/jetpack/_inc/build/jetpack-connection-banner.min.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/jetpack/_inc/build/jetpack-connection-banner.min.js b/plugins/jetpack/_inc/build/jetpack-connection-banner.min.js
new file mode 100644
index 00000000..cf8a2320
--- /dev/null
+++ b/plugins/jetpack/_inc/build/jetpack-connection-banner.min.js
@@ -0,0 +1,3 @@
+/* Do not modify this file directly. It is compiled from other files. */
+/* global jQuery, jp_banner */
+!function(e){var n=e(".jp-wpcom-connect__vertical-nav-container"),c=e(".jp-wpcom-connect__content-container"),i=e(".jp-banner__button-container .next-feature"),t=e(".jp-connect-full__container"),o=e(".jp-connect-full__dismiss, .jp-connect-full__dismiss-paragraph"),s=e("#welcome-panel"),a=e("#message"),l=e(".connection-banner-dismiss");function r(e){n.find(".vertical-menu__feature-item-is-selected").removeClass("vertical-menu__feature-item-is-selected"),c.find(".jp__slide-is-active").removeClass("jp__slide-is-active"),n.children().eq(e).addClass("vertical-menu__feature-item-is-selected"),c.children().eq(e).addClass("jp__slide-is-active")}e(window).on("load",function(){s.insertBefore(a)}),l.on("click",function(){e(a).hide();var n={action:"jetpack_connection_banner",nonce:jp_banner.connectionBannerNonce,dismissBanner:!0};e.post(jp_banner.ajax_url,n,function(n){!0!==n.success&&e(a).show()})}),n.on("click",".vertical-menu__feature-item:not( .vertical-menu__feature-item-is-selected )",function(){r(e(this).index())}),i.on("click",function(n){n.preventDefault(),r(e(this).closest(".jp-wpcom-connect__slide").index()+1)}),o.on("click",function(){e(t).hide()}),e(document).keyup(function(n){27===n.keyCode&&e(o).click()})}(jQuery); \ No newline at end of file