From 77c8b50834a8978fbbebe2f6701448aff5d9f08e Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Sun, 20 Nov 2022 18:01:19 +0000 Subject: 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. --- emccpre.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emccpre.js') diff --git a/emccpre.js b/emccpre.js index 78e949e..61ce21e 100644 --- a/emccpre.js +++ b/emccpre.js @@ -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) { -- cgit v1.1