__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
wps_js.hitsmap_meta_box = {
placeholder: function () {
return wps_js.rectangle_placeholder();
},
view: function (args = []) {
return `<div class="o-wrap"><div id="wp-statistics-visitors-map"></div></div>`;
},
meta_box_init: function (args = []) {
let pin = Array();
// Prepare Country Pin
if (args.hasOwnProperty('country')) {
Object.keys(args['country']).forEach(function (key) {
let t = `<div class='map-html-marker'><div class="map-country-header"><img src='${args['country'][key]['flag']}' alt="${args['country'][key]['name']}" title='${args['country'][key]['name']}' class='log-tools wps-flag'/> ${args['country'][key]['name']} (${args['total_country'][key]})</div>`;
// Get List visitors
Object.keys(args['visitor'][key]).forEach(function (visitor_id) {
t += `<p><img src='${args['visitor'][key][visitor_id]['browser']['logo']}' alt="${args['visitor'][key][visitor_id]['browser']['name']}" class='wps-flag log-tools' title='${args['visitor'][key][visitor_id]['browser']['name']}'/> ${args['visitor'][key][visitor_id]['ip']} ` + (["Unknown", "(Unknown)"].includes(args['visitor'][key][visitor_id]['city']) ? '' : '- ' + args['visitor'][key][visitor_id]['city']) + `</p>`;
});
t += `</div>`;
pin[key] = t;
});
}
// Load Jquery Map
jQuery('#wp-statistics-visitors-map').vectorMap({
map: 'world_en',
backgroundColor: '#fff',
borderColor: '#7e7e7e',
borderOpacity: 0.60,
color: '#e6e5e2',
selectedColor: '#9DA3F7',
hoverColor: '#404BF2',
colors: args['color'],
onLabelShow: function (element, label, code) {
if (pin[code] !== undefined) {
label.html(pin[code]);
} else {
label.html(label.html() + ' [0]<hr />');
}
},
});
const widgetWrapper = jQuery("#wp-statistics-hitsmap-widget");
const sideSortable = jQuery("#side-sortables");
const normalSortable = jQuery("#normal-sortables");
const observerConfig = {attributes: false, childList: true, characterData: false, subtree: true};
const observer = new MutationObserver(function (mutations) {
if (sideSortable.find(widgetWrapper).length || normalSortable.find(widgetWrapper).length) {
window.dispatchEvent(new Event('resize'));
}
});
observer.observe(document.getElementById('side-sortables'), observerConfig);
observer.observe(document.getElementById('normal-sortables'), observerConfig);
}
};| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| browsers.js | File | 7.79 KB | 0644 |
|
| countries.js | File | 1.93 KB | 0644 |
|
| devices.js | File | 1.05 KB | 0644 |
|
| exclusions.js | File | 2.55 KB | 0644 |
|
| hits.js | File | 3.14 KB | 0644 |
|
| hitsmap.js | File | 2.74 KB | 0644 |
|
| models.js | File | 1.05 KB | 0644 |
|
| pages-chart.js | File | 1.12 KB | 0644 |
|
| pages.js | File | 2.1 KB | 0644 |
|
| platforms.js | File | 3.14 KB | 0644 |
|
| post.js | File | 1.08 KB | 0644 |
|
| quickstats.js | File | 677 B | 0644 |
|
| recent.js | File | 1.83 KB | 0644 |
|
| referring.js | File | 1.97 KB | 0644 |
|
| search.js | File | 2.15 KB | 0644 |
|
| summary.js | File | 2.28 KB | 0644 |
|
| top-pages-chart.js | File | 1.42 KB | 0644 |
|
| top-visitors.js | File | 1.81 KB | 0644 |
|
| useronline.js | File | 1.57 KB | 0644 |
|
| words.js | File | 1.77 KB | 0644 |
|