toggle image visibility

master
km0 3 years ago
parent d9067e3553
commit 64223c6be1

@ -31,6 +31,7 @@
<nav> <nav>
<button id="show-transcription">Export</button> <button id="show-transcription">Export</button>
<button id="show-info">?</button> <button id="show-info">?</button>
<button id="show-image">IMG</button>
</nav> </nav>
<aside class="info" id="info-panel"> <aside class="info" id="info-panel">
<button class="close">X</button> <button class="close">X</button>

@ -16,3 +16,10 @@ window.addEventListener("load", function () {
} }
}); });
}); });
const imageButton = document.getElementById("show-image");
imageButton.addEventListener("click", (e) => {
let img = document.querySelector("img");
img.classList.toggle("visible");
});

@ -256,3 +256,7 @@ nav {
nav > * { nav > * {
pointer-events: all; pointer-events: all;
} }
img.hidden {
display: none;
}

Loading…
Cancel
Save