summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui.js b/ui.js
index b279262..47c3cb7 100644
--- a/ui.js
+++ b/ui.js
@@ -772,16 +772,16 @@ function on_update() {
}
if (game.battle) {
- document.querySelector(".battle_header").textContent = game.battle.title;
- document.querySelector(".battle_message").textContent = game.battle.flash;
- document.querySelector(".battle").classList.add("show");
+ document.getElementById("battle_header").textContent = game.battle.title;
+ document.getElementById("battle_message").textContent = game.battle.flash;
+ document.getElementById("battle").classList.add("show");
update_battle();
} else {
- document.querySelector(".battle").classList.remove("show");
+ document.getElementById("battle").classList.remove("show");
}
}
-drag_element_with_mouse(".battle", ".battle_header");
+drag_element_with_mouse("#battle", "#battle_header");
drag_element_with_mouse(".herald", ".herald_header");
scroll_with_middle_mouse("#grid_center", 2);
init_map_zoom();