diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-10-22 13:24:24 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-22 13:29:04 +0200 |
commit | a753a18fa1ce5d8374845f6d15d7ef251b7fb33b (patch) | |
tree | 4906b7bb174ba99e00576b417387339337a35c3e | |
parent | 1947f2232adf98d39a224690a86bac533da88d9f (diff) | |
download | wilderness-war-a753a18fa1ce5d8374845f6d15d7ef251b7fb33b.tar.gz |
No tooltips for cards in hand.
-rw-r--r-- | play.js | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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) } |