File: tool-mindmap.js

package info (click to toggle)
condor 25.7.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 60,272 kB
  • sloc: cpp: 524,592; perl: 81,285; python: 56,681; ansic: 29,537; sh: 11,460; javascript: 4,024; ada: 2,319; java: 619; xml: 613; makefile: 583; awk: 281; yacc: 78; csh: 16
file content (17 lines) | stat: -rw-r--r-- 579 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function modifyMindMap() {
    setTimeout(() => {
        document.querySelectorAll('*[class*="link:"]').forEach(node => {
            node.classList.forEach(className => {
                if (className.startsWith('link:')) {
                    console.log(node)
                    const tool = className.split(':')[1];
                    node.addEventListener('click', () => {
                        window.open(`${tool}.html`, '_self');
                    });
                }
            });
        });
    }, 1750)
}

window.addEventListener('load', modifyMindMap());