| Server IP : 121.121.20.254 / Your IP : 216.73.216.146 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/copy-the-code/assets/js/ |
Upload File : |
(function($) {
CopyTheCodeNotice = {
/**
* Init
*/
init: function()
{
this._bind();
},
_bind: function()
{
$( document ).on( 'click', '.copy-the-code-allow-tracking', CopyTheCodeNotice.allow );
$( document ).on( 'click', '.copy-the-code-not-allow-tracking, .copy-the-code-notice .notice-dismiss', CopyTheCodeNotice.not_allow );
},
/**
* Copy to Clipboard
*/
allow: function( event ) {
event.preventDefault();
$.ajax(
{
url: copy_the_code_notice.ajax_url,
type: 'POST',
data: {
action: 'copy_the_code_allow_tracking',
security: copy_the_code_notice.nonce,
},
success: function( response ) {
if ( response.success ) {
$( '.copy-the-code-notice' ).remove();
}
}
}
);
},
/**
* Copy to Clipboard
*/
not_allow: function( event ) {
event.preventDefault();
$.ajax(
{
url: copy_the_code_notice.ajax_url,
type: 'POST',
data: {
action: 'copy_the_code_dont_allow_tracking',
security: copy_the_code_notice.nonce,
},
success: function( response ) {
if ( response.success ) {
$( '.copy-the-code-notice' ).remove();
}
}
}
);
}
};
/**
* Initialization
*/
$(
function() {
CopyTheCodeNotice.init();
}
);
})( jQuery );