summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-22 13:24:24 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-22 13:29:04 +0200
commita753a18fa1ce5d8374845f6d15d7ef251b7fb33b (patch)
tree4906b7bb174ba99e00576b417387339337a35c3e
parent1947f2232adf98d39a224690a86bac533da88d9f (diff)
downloadwilderness-war-a753a18fa1ce5d8374845f6d15d7ef251b7fb33b.tar.gz
No tooltips for cards in hand.
-rw-r--r--play.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/play.js b/play.js
index 577535e..b671484 100644
--- a/play.js
+++ b/play.js
@@ -252,7 +252,6 @@ function on_blur_card_tip() {
}
function on_focus_last_card() {
- console.log("focus", view.last_card)
if (typeof view.last_card === 'number') {
document.getElementById("tooltip").className = "card show card_" + view.last_card
}
@@ -689,16 +688,6 @@ function on_blur_marker(evt) {
ui.status.textContent = ""
}
-function on_focus_card(evt) {
- let id = evt.target.card
- let card = cards[id]
- ui.status.textContent = `#${id} ${card.name} [${card.activation}]`
-}
-
-function on_blur_card(evt) {
- ui.status.textContent = ""
-}
-
// CARD MENU
var card_action_menu = Array.from(document.getElementById("popup").querySelectorAll("li[data-action]")).map(e => e.dataset.action)
@@ -1003,8 +992,6 @@ function build_card(id) {
elt.card = id
elt.className = "card card_" + id
elt.addEventListener("click", on_click_card)
- elt.addEventListener("mouseenter", on_focus_card)
- elt.addEventListener("mouseleave", on_blur_card)
ui.cards.appendChild(elt)
}