| Server IP : 173.209.174.21 / Your IP : 216.73.216.79 Web Server : Apache/2.4.58 (Ubuntu) System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : nodor ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/wearewc/wp-content/plugins/jetpack/_inc/ |
Upload File : |
/* global jp_banner */
( function ( $ ) {
var fullScreenContainer = $( '.jp-connect-full__container' ),
fullScreenDismiss = $( '.jp-connect-full__dismiss, .jp-connect-full__dismiss-paragraph' ),
wpWelcomeNotice = $( '#welcome-panel' ),
connectionBanner = $( '.jp-connection-banner' ),
connectionBannerDismiss = $( '.jp-connection-banner__dismiss' );
// Move the banner below the WP Welcome notice on the dashboard
$( window ).on( 'load', function () {
wpWelcomeNotice.insertBefore( connectionBanner );
} );
// Dismiss the connection banner via AJAX
connectionBannerDismiss.on( 'click', function () {
$( connectionBanner ).hide();
var data = {
action: 'jetpack_connection_banner',
nonce: jp_banner.connectionBannerNonce,
dismissBanner: true,
};
$.post( jp_banner.ajax_url, data, function ( response ) {
if ( true !== response.success ) {
$( connectionBanner ).show();
}
} );
} );
/**
* Full-screen connection prompt
*/
fullScreenDismiss.on( 'click', function () {
$( fullScreenContainer ).hide();
} );
$( document ).keyup( function ( e ) {
if ( e.code === 'Escape' ) {
$( fullScreenDismiss ).click();
}
} );
} )( jQuery );