From 248592dbff30f21d16198f29f6a56a825a18ce03 Mon Sep 17 00:00:00 2001 From: Nicole O'Connor Date: Tue, 5 Aug 2025 18:09:48 -0700 Subject: [PATCH] quick tidying --- static/js/seagull.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/static/js/seagull.js b/static/js/seagull.js index 78f619f..23e00b3 100644 --- a/static/js/seagull.js +++ b/static/js/seagull.js @@ -73,6 +73,7 @@ function record_log_with_choices() { var btn_action = document.createElement("button"); btn_action.innerHTML = label; + btn_action.className = "log-action-button"; btn_action.setAttribute("onclick", callback + "; tick_meter_running = true;"); div_logactions.append(btn_action); } @@ -89,6 +90,7 @@ function update_ui() { page_elements["lbl_colony"].innerHTML = gamestate["colony"]; page_elements["lbl_shinies"].innerHTML = gamestate["shinies"]; page_elements["lbl_food"].innerHTML = gamestate["food"]; + page_elements["lbl_class"].innerHTML = gamestate["class"]; page_elements["lbl_xp"].innerHTML = gamestate["xp"]; page_elements["lbl_xp_next"].innerHTML = gamestate["xp_next"]; } @@ -108,7 +110,7 @@ function dev_toolbox(open) { else { var div_toolbox = page_elements["div_toolbox"]; page_elements["div_sidebar"].removeChild(div_toolbox); - div_toolbox.remove() + div_toolbox.remove(); delete page_elements["div_toolbox"]; } } @@ -170,10 +172,10 @@ async function game_tick() { var logstring = "You have encountered a human. It is carrying these resources:\n\n" logstring += "
    \n" if (total_food > 0) { - logstring += "
  1. " + total_food + " food: " + food_descs.join(", ") + "
  2. \n"; + logstring += `
  3. ${total_food} food: ${food_descs.join(", ")}
  4. \n`; } if (total_shinies > 0) { - logstring += "
  5. " + total_shinies + " shinies: " + shinies_descs.join(", ") + "
  6. \n"; + logstring += `
  7. ${total_shinies} shinies: ${shinies_descs.join(", ")}
  8. \n`; } logstring += "
\nWhat would you like to do?"; @@ -224,7 +226,7 @@ if (desktop_mode) { target = window; } else { - // in web mode, browsers are expected to have working local storage + // in web mode, browsers are expected to have working local storage by this point start_event = "DOMContentLoaded"; target = document; }