Merge pull request 'Fixed minor bug where the release notes div was persisting' (#23) from bugfix-visible-release-notes-div into main

Reviewed-on: #23
This commit is contained in:
bombinans 2025-11-16 04:42:24 +00:00
commit 0c45aeba9b
2 changed files with 7 additions and 9 deletions

View File

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

10
main.js
View File

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