HEX
Server: Apache
System: Linux webm003.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: assotraipi (849654)
PHP: 5.4.45
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/assotraipi/www/wp-content/plugins/delightful-downloads/assets/js/copy-to-clipboard.js
/**
 * Copy to clipboard
 */
jQuery( document ).ready( function( $ ) {
	$inputs = $( '.copy-to-clipboard' );

	$inputs.on( 'click', function( e ) {
		var $input  = $( this );
		var $notice = $input.siblings( 'p' );

		try {
			$input.select();
			document.execCommand('copy');

			$notice.fadeIn();

			setTimeout(function() {
				$notice.fadeOut();
			}, 3000);
		} catch ( error ) {
			console.log( 'Unable to copy' );
		}

	} );
} );