summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-02 15:14:00 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-11-02 15:14:00 +0100
commit1834bd91a5b2b8889800cab09717610a39eb2cfc (patch)
tree2c7335f6d8eeb2e32bc4491e7e6c6ee7ad1063d4
parent8dac1a5f79a8e319bc01ca57c866032fa0b15935 (diff)
downloadvotes-for-women-1834bd91a5b2b8889800cab09717610a39eb2cfc.tar.gz
eslint
-rw-r--r--play.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/play.js b/play.js
index a8f7afc..c3f107b 100644
--- a/play.js
+++ b/play.js
@@ -1,5 +1,7 @@
"use strict"
+/* global action_button, send_action, view */
+
const SUF = 0
const OPP = 1
const SUF_NAME = "Suffragist"
@@ -99,7 +101,7 @@ function is_space_action(i) {
return false
}
-function on_blur(evt) {
+function on_blur(_evt) {
document.getElementById("status").textContent = ""
}
@@ -153,21 +155,21 @@ function build_user_interface() {
}
-function on_focus_card_tip(card_number) {
+function on_focus_card_tip(card_number) { // eslint-disable-line no-unused-vars
document.getElementById("tooltip").className = "card card_" + card_number
}
-function on_blur_card_tip() {
+function on_blur_card_tip() { // eslint-disable-line no-unused-vars
document.getElementById("tooltip").classList = "card hide"
}
-function sub_card_name(match, p1, offset, string) {
+function sub_card_name(_match, p1, _offset, _string) {
let c = p1 | 0
let n = CARDS[c].title
return `<span class="tip" onmouseenter="on_focus_card_tip(${c})" onmouseleave="on_blur_card_tip()">${n}</span>`
}
-function on_log(text) {
+function on_log(text) { // eslint-disable-line no-unused-vars
let p = document.createElement("div")
if (text.match(/^>/)) {
@@ -211,7 +213,7 @@ function opposition_info() {
return view.opposition_hand + " cards in hand";
}
-function on_update() {
+function on_update() { // eslint-disable-line no-unused-vars
console.log("VIEW", view)
ui.player[SUF].classList.toggle("active", view.active === SUF_NAME)