From a753a18fa1ce5d8374845f6d15d7ef251b7fb33b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 22 Oct 2023 13:24:24 +0200 Subject: No tooltips for cards in hand. --- play.js | 13 ------------- 1 file changed, 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) } -- cgit v1.2.3