HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux vm8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: afleverb (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/drakkar_site_dev/wp-content/plugins/check-email/assets/js/admin/view-logs.js
( function( $ ) {

	$( document ).ready(function() {
		$( '#search_id-search-date-input' ).datepicker({
			changeMonth: true,
			changeYear: true,
			dateFormat: 'yy-mm-dd'
		});

		$( document ).on('click', '#thickbox-footer-close', function( event ) {
			event.preventDefault();
			tb_remove();
		});

		// Sent status tool tip.
		$( ".el-help" ).tooltip( {
			content: function() { return $( this ).prop( "title" ); },
			position: {
				my: "center top",
				at: "center bottom+10",
				collision: "flipfit"
			},
			hide: {
				duration: 100
			},
			show: {
				duration: 100
			}
		});
	});

	var tabsInsertedEvent = 'tabs_elem_inserted';

	insertionQ( '#tabs' ).every(function ( element ) {
		$( element ).trigger( tabsInsertedEvent )
	});

	$( document ).on( tabsInsertedEvent, function() {
		var activeTabIndex = parseInt( $( "#tabs ul" ).data( "active-tab" ) );

		activeTabIndex = isNaN( activeTabIndex ) ? 1 : activeTabIndex;
		$( "#tabs" ).tabs( { active: activeTabIndex } );
	} );

})( jQuery );

function showPrint() {
	document.getElementById('check_mail_print_button').style.display = '';
}
function hidePrint() {
	document.getElementById('check_mail_print_button').style.display = 'none';
}
function printLog() 
{
	document.getElementById('TB_ajaxWindowTitle').innerHTML  = "<h3>Email Content</h3>";
	document.getElementById('TB_closeWindowButton').style.display = "none";
	document.querySelectorAll('.check_mail_non-printable').forEach(function(el) {
		el.style.display = 'none';
	});

	var divToPrint=document.getElementById('TB_window');

	email_log_table = document.getElementById('email_log_table')

	email_log_table.querySelectorAll('tr').forEach(function(tr) {
		tr.style.background  = '#eee';
	});
	

	email_log_table.style.border = "1px solid #000"
	email_log_table.style.borderWidth = "1px";
	email_log_table.style.borderColor = "#000";
	email_log_table.style.borderStyle = "solid";

	tabs = document.getElementById('tabs')

	tabs.style.border = "1px solid #000"
	tabs.style.marginTop = "30px";
	tabs.style.height = "200px";
	tabs.style.padding = "20px 10px 20px 20px";;
	tabs.style.borderWidth = "1px";
	tabs.style.borderColor = "#000";
	tabs.style.borderStyle = "solid";

	var pdf = new jsPDF('p', 'pt');
	pdf.canvas.height = 72 * 11;
	pdf.canvas.width = 72 * 8.5;
  
	pdf.fromHTML('<html><body onload="window.print()">'+divToPrint.innerHTML+'</body></html>');
	jQuery('.tb-close-icon').click();
}