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:
commit
0c45aeba9b
@ -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
10
main.js
@ -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');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user