芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/chikindzonotyucatan.gob.mx/media/plg_system_debug/js/debug-es5.js
(function () { 'use strict'; /** * @copyright (C) 2018 Open Source Matters, Inc.
* @license GNU General Public License version 2 or later; see LICENSE.txt */ (function (document) { var debugSectionTogglerSelector = '.dbg-header'; var toggleTargetAttribute = 'data-debug-toggle'; /** * Toggle an element by id * @param id */ var toggle = function toggle(id) { document.getElementById(id).classList.toggle('hidden'); }; /** * Register events */ var registerEvents = function registerEvents() { var sectionTogglers = [].slice.call(document.querySelectorAll(debugSectionTogglerSelector)); sectionTogglers.forEach(function (toggler) { toggler.addEventListener('click', function (event) { event.preventDefault(); toggle(toggler.getAttribute(toggleTargetAttribute)); }); }); }; document.addEventListener('DOMContentLoaded', function () { registerEvents(); }); })(document); }());