js: Allow status bar to be present in the HTML

I'm generally in favour of putting HTML in HTML rather the constructing
it in JavaScript, and this will allow for simplifying the code
eventually.  This only changes the JavaScript to make sure that's in
people's caches before I change the HTML itself.
This commit is contained in:
Ben Harris
2022-11-20 18:01:19 +00:00
parent f86623bbd9
commit 77c8b50834
3 changed files with 24 additions and 9 deletions

View File

@ -443,9 +443,10 @@ function initPuzzle() {
['number','number']);
timer_callback = Module.cwrap('timer_callback', 'void', ['number']);
// Save references to the two permalinks.
// Save references to the two permalinks and the status bar.
permalink_desc = document.getElementById("permalink-desc");
permalink_seed = document.getElementById("permalink-seed");
statusbar = document.getElementById("statusbar");
resizable_div = document.getElementById("resizable");
if (resizable_div !== null) {