Fixed minor bug where the release notes div was persisting

This commit is contained in:
Mike Lynch 2025-11-16 15:41:23 +11:00
parent 64eed3491a
commit 4ca4bd3acb
2 changed files with 7 additions and 9 deletions

View File

@ -18,12 +18,10 @@
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 50%; width: 20%;
z-index: 2; z-index: 2;
font-family: sans-serif;
padding: 1em; padding: 1em;
visibility: none; font-family: sans-serif;
background: #ffffff;
} }
div#info { div#info {
position: fixed; position: fixed;

10
main.js
View File

@ -123,16 +123,16 @@ function showDocs(visible) {
function releaseNotes() { function releaseNotes() {
showDocs(false); showDocs(false);
const docdiv = document.getElementById("release_notes"); const reldiv = document.getElementById("release_notes");
docdiv.style.display = ''; reldiv.style.display = '';
docdiv.innerHTML = RELEASE_NOTES + '<p><a id="no_notes" href="#">[hide]</a>'; reldiv.innerHTML = RELEASE_NOTES + '<p><a id="no_notes" href="#">[hide]</a>';
const goaway = document.getElementById("no_notes"); const goaway = document.getElementById("no_notes");
goaway.addEventListener('click', noNotes); goaway.addEventListener('click', noNotes);
} }
function noNotes() { function noNotes() {
const docdiv = document.getElementById("release_notes"); const reldiv = document.getElementById("release_notes");
docdiv.style.display = 'none'; reldiv.style.display = 'none';
} }
const relnotes = document.getElementById('show_notes'); const relnotes = document.getElementById('show_notes');