https://blog.naskya.net/

[[ 🗃 ^wzWnj blog ]] :: [📥 Inbox] [📤 Outbox] [💥 Errbox] [🐤 Followers] [🤝 Collaborators] [🏗 Projects] [🛠 Commits]

Clone

HTTPS: git clone https://code.naskya.net/repos/wzWnj

SSH: git clone USERNAME@code.naskya.net:wzWnj

Branches

Tags

main :: static / script /

article.js

const overlay_elem = document.getElementById("overlay");
let open_footnote = -1;

function show_note(idx) {
    open_footnote = idx;
    document.getElementById("note_" + String(open_footnote).padStart(3, '0')).classList.add("active");
    overlay_elem.classList.add("active");
}

function hide_note() {
    if (overlay_elem.classList.contains("active")) {
        document.getElementById("note_" + String(open_footnote).padStart(3, '0')).classList.remove("active");
        overlay_elem.classList.remove("active");
        open_footnote = -1;
    }
}

[See repo JSON]