Add graph references

This commit is contained in:
Abdelrahman Said
2026-06-28 13:49:01 +01:00
parent 0a9807e448
commit a11edf0c53
2578 changed files with 868045 additions and 0 deletions
@@ -0,0 +1,23 @@
function getElementByClass(element, className) {
tc = element.childNodes;
for (var i = 0; i < tc.length; i++) {
if (tc[i].className == className) { return tc[i]; }
}
return null;
}
function toggle(target, event) {
exdiv = getElementByClass(target, "example");
excdiv = getElementByClass(exdiv, "example-contents");
titlediv = getElementByClass(exdiv, "title");
if (!titlediv || !titlediv.contains(event.target)) {
return;
}
if (excdiv.style.display != 'block') {
excdiv.style.display = 'block';
} else {
excdiv.style.display = 'none';
}
}