@xiee/utils
Version:
Miscellaneous tools and utilities to manipulate HTML pages
2 lines • 516 B
JavaScript
(()=>{const e=[];let l,a;document.querySelectorAll("pre>code[class^=language-],pre[class^=language-]").forEach((l=>{"CODE"===l.tagName&&"PRE"===l.parentNode.tagName&&(l=l.parentNode),e.indexOf(l)<0&&e.push(l)})),e.forEach((n=>{n.onclick=t=>{let o=n.nextElementSibling;for(;o&&e.indexOf(o)<0;)l=a,void 0===l&&(l=""===o.style.display),o.style.display=l?"none":"",o=o.nextElementSibling;(t.altKey||t.ctrlKey)&&(a=l,e.forEach((e=>e!==n&&e.click())),a=void 0),l=void 0}}))})();
//# sourceMappingURL=fold-output.min.js.map