Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/joomla5/media/com_templates/js/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/joomla5/media/com_templates/js/admin-template-toggle-switch.min.js

/**
 * @copyright  (C) 2018 Open Source Matters, Inc.
<https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see
LICENSE.txt
 */(()=>{const d=()=>{const
e=document.getElementById("diff-main");e&&(e.classList.remove("active"),typeof
Storage<"u"&&localStorage.removeItem("diffSwitchState"))},i=()=>{const
e=document.getElementById("diff-main");e&&(e.classList.add("active"),typeof
Storage<"u"&&localStorage.setItem("diffSwitchState","checked"))},f=()=>{const
e=document.getElementById("override-pane"),o=document.getElementById("core-pane"),t=e.parentElement.parentElement;o&&e&&(o.classList.remove("active"),t.classList.contains("options-grid-form-half")&&(t.classList.remove("options-grid-form-half"),t.classList.add("options-grid-form-full")),typeof
Storage<"u"&&localStorage.removeItem("coreSwitchState"))},c=()=>{const
e=document.getElementById("override-pane"),o=document.getElementById("core-pane"),t=e.parentElement.parentElement;o&&e&&(o.classList.add("active"),t.classList.contains("options-grid-form-full")&&(t.classList.remove("options-grid-form-full"),t.classList.add("options-grid-form-half")),typeof
Storage<"u"&&localStorage.setItem("coreSwitchState","checked"))};document.addEventListener("DOMContentLoaded",()=>{const
e=document.getElementById("jform_show_diff1"),o=document.getElementById("jform_show_diff0"),t=document.getElementById("jform_show_core1"),n=document.getElementById("jform_show_core0");e&&o&&(e.addEventListener("click",i),o.addEventListener("click",d)),t&&n&&(t.addEventListener("click",c),n.addEventListener("click",f)),typeof
Storage<"u"&&localStorage.getItem("coreSwitchState")&&t&&(t.checked=!0,n.checked=!1,c()),typeof
Storage<"u"&&localStorage.getItem("diffSwitchState")&&e&&(e.checked=!0,o.checked=!1,i())})})();