Fixed minor bug where the release notes div was persisting #23
@ -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
10
main.js
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user