| Server IP : 54.36.91.62 / Your IP : 216.73.217.117 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/nimes/media/com_templates/js/ |
Upload File : |
(function () {
'use strict';
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
(function () {
var showDiffChangedOff = function showDiffChangedOff() {
var diffMain = document.getElementById('diff-main');
if (diffMain) {
diffMain.classList.remove('active');
if (typeof Storage !== 'undefined') {
localStorage.removeItem('diffSwitchState');
}
}
};
var showDiffChangedOn = function showDiffChangedOn() {
var diffMain = document.getElementById('diff-main');
if (diffMain) {
diffMain.classList.add('active');
if (typeof Storage !== 'undefined') {
localStorage.setItem('diffSwitchState', 'checked');
}
}
};
var showCoreChangedOff = function showCoreChangedOff() {
var override = document.getElementById('override-pane');
var corePane = document.getElementById('core-pane');
var fieldset = override.parentElement.parentElement;
if (corePane && override) {
corePane.classList.remove('active');
if (fieldset.classList.contains('options-grid-form-half')) {
fieldset.classList.remove('options-grid-form-half');
fieldset.classList.add('options-grid-form-full');
}
if (typeof Storage !== 'undefined') {
localStorage.removeItem('coreSwitchState');
}
}
};
var showCoreChangedOn = function showCoreChangedOn() {
var override = document.getElementById('override-pane');
var corePane = document.getElementById('core-pane');
var fieldset = override.parentElement.parentElement;
if (corePane && override) {
corePane.classList.add('active');
if (fieldset.classList.contains('options-grid-form-full')) {
fieldset.classList.remove('options-grid-form-full');
fieldset.classList.add('options-grid-form-half');
}
if (Joomla.editors.instances.jform_core) {
Joomla.editors.instances.jform_core.refresh();
}
if (typeof Storage !== 'undefined') {
localStorage.setItem('coreSwitchState', 'checked');
}
}
};
document.addEventListener('DOMContentLoaded', function () {
var JformShowDiffOn = document.getElementById('jform_show_diff1');
var JformShowDiffOff = document.getElementById('jform_show_diff0');
var JformShowCoreOn = document.getElementById('jform_show_core1');
var JformShowCoreOff = document.getElementById('jform_show_core0');
if (JformShowDiffOn && JformShowDiffOff) {
JformShowDiffOn.addEventListener('click', showDiffChangedOn);
JformShowDiffOff.addEventListener('click', showDiffChangedOff);
}
if (JformShowCoreOn && JformShowCoreOff) {
JformShowCoreOn.addEventListener('click', showCoreChangedOn);
JformShowCoreOff.addEventListener('click', showCoreChangedOff);
}
if (typeof Storage !== 'undefined' && localStorage.getItem('coreSwitchState') && JformShowCoreOn) {
JformShowCoreOn.checked = true;
JformShowCoreOff.checked = false;
showCoreChangedOn();
}
if (typeof Storage !== 'undefined' && localStorage.getItem('diffSwitchState') && JformShowDiffOn) {
JformShowDiffOn.checked = true;
JformShowDiffOff.checked = false;
showDiffChangedOn();
}
});
})();
})();