MCPcopy Index your code
hub / github.com/tinyplex/tinybase / openClose

Function openClose

site/js/app.ts:59–65  ·  view source on GitHub ↗
(li: HTMLElement)

Source from the content-addressed store, hash-verified

57 };
58
59 const openClose = (li: HTMLElement) =>
60 toggleClass(li, 'open', () => {
61 const a = queryElement(li, 'a') as HTMLAnchorElement;
62 if (a.href != location.origin) {
63 a.click();
64 }
65 });
66});

Callers 1

app.tsFile · 0.85

Calls 2

toggleClassFunction · 0.90
queryElementFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…