HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: /home/jennylloyd.co.uk/public_html/wp-content/themes/weblog/acmethemes/admin-notice/admin-notice.js
/**
 * Getting Started
 */
jQuery( document ).ready( function ( $ ) {

	$( '.at-gsm-btn' ).click( function ( e ) {
		e.preventDefault();

        $( this ).addClass( 'updating-message' );
		$( this ).text( weblog_adi_install.btn_text );

		$.ajax({
			type: "POST",
			url: ajaxurl,
			data: {
				action     : 'at_getting_started',
				security : weblog_adi_install.nonce,
				slug : 'advanced-import',
				request : 1
			},
			success:function( response ) {
				setTimeout(function(){
		$.ajax({
			type: "POST",
			url: ajaxurl,
			data: {
                action     : 'at_getting_started',
							security : weblog_adi_install.nonce,
							slug : 'acme-demo-setup',
							request : 2
            },
			success:function( response ) {
                var extra_uri, redirect_uri, dismiss_nonce;
							redirect_uri         = weblog_adi_install.adminurl+'/themes.php?page=advanced-import&browse=all&at-gsm-hide-notice=welcome';
                if ( $( '.at-gsm-close' ).length ) {
					dismiss_nonce = $( '.at-gsm-close' ).attr( 'href' ).split( 'at_gsm_admin_notice_nonce=' )[1];
					extra_uri     = '&at_gsm_admin_notice_nonce=' + dismiss_nonce;
				}
							redirect_uri         = redirect_uri + extra_uri;
                window.location.href = redirect_uri;
			},
			error: function( xhr, ajaxOptions, thrownError ){
				console.log(thrownError);
			}
		});
				}, 2000);
			},
			error: function( xhr, ajaxOptions, thrownError ){
				console.log(thrownError);
			}
	} );
} );
} );