MCPcopy Create free account
hub / github.com/electronstudio/raylib-python-cffi / toggler

Function toggler

docs/_static/doctools.js:78–88  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

76 */
77 initDomainIndexTable: () => {
78 const toggler = (el) => {
79 const idNumber = el.id.substr(7);
80 const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`);
81 if (el.src.substr(-9) === "minus.png") {
82 el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`;
83 toggledRows.forEach((el) => (el.style.display = "none"));
84 } else {
85 el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`;
86 toggledRows.forEach((el) => (el.style.display = ""));
87 }
88 };
89
90 const togglerElements = document.querySelectorAll("img.toggler");
91 togglerElements.forEach((el) =>

Callers 1

doctools.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected