File Editor
Directories:
.. (Back)
blocks
build
fonts
genericons
lib
social-logos
Files:
accessible-focus.js
class.jetpack-provision.php
connect-button.js
crowdsignal-shortcode.js
crowdsignal-survey.js
facebook-embed.js
footer.php
gallery-settings.js
genericons.php
header.php
idc-notice.js
jetpack-admin.js
jetpack-connection-banner.js
jetpack-deactivate-dialog.js
jetpack-jitm.js
jetpack-modules.js
jetpack-modules.models.js
jetpack-modules.views.js
jetpack-server-sandbox.php
jetpack-strings.php
jetpack-wizard-banner.js
jquery.jetpack-resize.js
jquery.spin.js
polldaddy-shortcode.js
postmessage.js
social-logos.php
spin.js
twitter-timeline.js
Create New File
Create
Edit File: jetpack-wizard-banner.js
/* global jQuery, jp_banner */ ( function( $ ) { var wizardBanner = $( '#jp-wizard-banner' ); var wizardBannerDismiss = $( '.wizard-banner-dismiss' ); var personalButton = $( '#jp-wizard-banner-personal-button' ); var businessButton = $( '#jp-wizard-banner-business-button' ); var skipLink = $( '.jp-wizard-banner-wizard-skip-link' ); // Dismiss the wizard banner via AJAX wizardBannerDismiss.on( 'click', function() { $( wizardBanner ).hide(); var data = { dismissBanner: true, action: 'jetpack_wizard_banner', nonce: jp_banner.wizardBannerNonce, }; $.post( jp_banner.ajax_url, data, function( response ) { if ( true !== response.success ) { $( wizardBanner ).show(); } } ); } ); personalButton.on( 'click', function() { $.post( jp_banner.ajax_url, { personal: true, action: 'jetpack_wizard_banner', nonce: jp_banner.wizardBannerNonce, } ); } ); businessButton.on( 'click', function() { $.post( jp_banner.ajax_url, { business: true, action: 'jetpack_wizard_banner', nonce: jp_banner.wizardBannerNonce, } ); } ); skipLink.on( 'click', function() { $.post( jp_banner.ajax_url, { skip: true, action: 'jetpack_wizard_banner', nonce: jp_banner.wizardBannerNonce, } ); } ); } )( jQuery );
Save Changes
Rename File
Rename