Curated source subset assembled by klammertext-dev's doc/make_dist.sh: the Klammermachine (mac), the Standard Klammer Set (sks), the commands (com), editor plugins and install guides (doc), a test subset (tst), and lib/bin placeholders. Builds with 'make -C com'. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
13 lines
384 B
JavaScript
13 lines
384 B
JavaScript
|
|
function set_link_listeners() {
|
|
Array.from(document.getElementsByClassName("pagelink")).forEach(
|
|
function (elt) {
|
|
elt.addEventListener("click", function(event) {
|
|
let basename = elt.getAttribute("data-page");
|
|
let id = elt.getAttribute("data-id");
|
|
go_to_section(elt, basename, id);
|
|
});
|
|
});
|
|
}
|
|
|