403Webshell
Server IP : 69.164.203.165  /  Your IP : 216.73.216.219
Web Server : nginx/1.18.0
System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64
User : www-data ( 33)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/matlock/wp-content/plugins/hotspots/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/matlock/wp-content/plugins/hotspots/js/admin.js
jQuery(document).ready(function() {	
	// Date pickers
	jQuery('.date-field').datepicker({
        dateFormat : 'yy-mm-dd'
    });
	
	jQuery('#dashboard-widgets .show-filters').css('display', 'inline-block');
	
	jQuery('#dashboard-widgets .show-filters').live('click', function(e) {
		e.preventDefault();
		jQuery('#dashboard-widgets .hide-filters').css('display', 'inline-block');
		jQuery('#dashboard-widgets .ha-filters').css('display', 'inline');
		jQuery('#dashboard-widgets .show-filters').css('display', 'none');
	});
	
	jQuery('.hide-filters').live('click', function(e) {
		e.preventDefault();
		jQuery('#dashboard-widgets .hide-filters').css('display', 'none');
		jQuery('#dashboard-widgets .ha-filters').css('display', 'none');
		jQuery('#dashboard-widgets .show-filters').css('display', 'inline-block');
	});
});

// Metabox toggle
jQuery(document).ready(function($){$(".if-js-closed").removeClass("if-js-closed").addClass("closed");
	postboxes.add_postbox_toggles( 'apmbt');
});

// Secondary button flags
jQuery(document).on('click', '#clear-database', function(e) {
	jQuery("#clear-database-flag").val("true");
});
jQuery(document).on('click', '#test-connection', function(e) {
	jQuery("#test-connection-flag").val("true");
});

// view heat map buttons
jQuery(document).on('click', '.view-heat-map-button', function(e) {
	e.preventDefault();
	var btnId = this.id; 
	
	// now we can lookup the url from a hidden input field given we have the rowId
	var url = jQuery("#" + btnId + "-url").val();
	
	var queryParams = "drawHeatmap=true";
	if (url.indexOf("?") >= 0) {
		url += "&";
	} else {
		url += "?";
	}
	url += queryParams;
	
	var pageWidth = jQuery("#" + btnId + "-page_width");
	var os = jQuery("#" + btnId + "-os");
	var browser = jQuery("#" + btnId + "-browser");
	var device = jQuery("#" + btnId + "-device");
	var userEventId = jQuery("#" + btnId + "-user_event_id");	
	
	if (userEventId && userEventId.val())
		url += "&userEventId=" + userEventId.val();	
	if (pageWidth && pageWidth.val())
		url += "&pageWidth=" + pageWidth.val();
	if (os && os.val())
		url += "&os=" + os.val();
	if (browser && browser.val())
		url += "&browser=" + browser.val();
	if (device && device.val())
		url += "&device=" + device.val();
	
	window.open(url, "_blank", 'scrollbars=yes, resizable=yes, location=yes, toolbar=yes');
});

Youez - 2016 - github.com/yon3zu
LinuXploit