1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-06 01:50:26 +00:00

Hypha shortcuts

[1-9]: First 9 links in the hypha contents
This commit is contained in:
handlerug 2021-06-13 13:57:40 +07:00
parent 3a2678df4d
commit 0e3222c552
No known key found for this signature in database
GPG Key ID: 38009F0605051491

View File

@ -130,5 +130,10 @@
for (let i = 1; i <= headerLinks.length && i < 10; i++) {
bindElement(`g ${i}`, headerLinks[i-1], `Header link #${i}`);
}
let hyphaLinks = $$('article .wikilink');
for (let i = 1; i <= hyphaLinks.length && i < 10; i++) {
bindElement(i.toString(), hyphaLinks[i-1], `Hypha link #${i}`);
}
});
})();