HEX
Server: Apache
System: Linux webm006.cluster111.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: perditaeyz (838589)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/p/e/r/perditaeyz/www/wp-content/plugins/cookie-notice/js/admin-notice.js
( function( $ ) {

	// ready event
	$( function() {
		// Save dismiss state
		$( '.cn-notice.is-dismissible' ).on( 'click', '.notice-dismiss, .cn-notice-dismiss', function( e ) {
			if ( $( e.currentTarget ).hasClass( 'cn-approve' ) )
				var notice_action = 'approve';
			else if ( $( e.currentTarget ).hasClass( 'cn-delay' ) )
				var notice_action = 'delay';
			else
				var notice_action = 'dismiss';

			$.ajax( {
				url: cnArgsNotice.ajaxUrl,
				type: 'POST',
				dataType: 'json',
				data: {
					action: 'cn_dismiss_notice',
					notice_action: notice_action,
					nonce: cnArgsNotice.nonce
				}
			} );

			$( e.delegateTarget ).slideUp( 'fast' );
		} );
	} );

} )( jQuery );