MCPcopy Create free account
hub / github.com/dtmilano/AndroidViewClient / toggler

Function toggler

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

Source from the content-addressed store, hash-verified

83 */
84 initDomainIndexTable: () => {
85 const toggler = (el) => {
86 const idNumber = el.id.substr(7);
87 const toggledRows = document.querySelectorAll(`tr.cg-${idNumber}`);
88 if (el.src.substr(-9) === "minus.png") {
89 el.src = `${el.src.substr(0, el.src.length - 9)}plus.png`;
90 toggledRows.forEach((el) => (el.style.display = "none"));
91 } else {
92 el.src = `${el.src.substr(0, el.src.length - 8)}minus.png`;
93 toggledRows.forEach((el) => (el.style.display = ""));
94 }
95 };
96
97 const togglerElements = document.querySelectorAll("img.toggler");
98 togglerElements.forEach((el) =>

Callers 1

doctools.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected