From 6e919cd136613fb09ca9267293452563da58516f Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Mon, 27 Nov 2023 16:18:02 +0100 Subject: d4, d6, d8 rendering --- images/die_black_pips.svg | 37 ------------------------------------- images/die_white_pips.svg | 37 ------------------------------------- play.html | 25 +++++-------------------- play.js | 38 ++++++++++++++++++-------------------- 4 files changed, 23 insertions(+), 114 deletions(-) delete mode 100644 images/die_black_pips.svg delete mode 100644 images/die_white_pips.svg diff --git a/images/die_black_pips.svg b/images/die_black_pips.svg deleted file mode 100644 index d641f28..0000000 --- a/images/die_black_pips.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/images/die_white_pips.svg b/images/die_white_pips.svg deleted file mode 100644 index efc864b..0000000 --- a/images/die_white_pips.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/play.html b/play.html index 347a8a6..b039fd0 100644 --- a/play.html +++ b/play.html @@ -69,34 +69,19 @@ body.Opposition header.your_turn { background-color: var(--opp-75); } } #log .die_d4 { - background-image: url(images/die_white_pips.svg); - background-size: 600% 100%; - background-color: #4397D4; - border: 1px solid #222; + color: #4397D4; + font-weight: bold; } #log .die_d6 { - background-image: url(images/die_white_pips.svg); - background-size: 600% 100%; - background-color: #DE5646; - border: 1px solid #222; + color: #DE5646; + font-weight: bold; } #log .die_d8 { - background-image: url(images/die_black_pips.svg); - background-size: 600% 100%; - background-color: white; - border: 1px solid #222; + font-weight: bold; } -.d0 { background-position: -100% 0 } -.d1 { background-position: 0% 0; } -.d2 { background-position: 20% 0; } -.d3 { background-position: 40% 0; } -.d4 { background-position: 60% 0; } -.d5 { background-position: 80% 0; } -.d6 { background-position: 100% 0; } - #log .purple_campaigner { background-image: url(images/icon_purple_campaigner.png); } diff --git a/play.js b/play.js index b2e3449..48d5a34 100644 --- a/play.js +++ b/play.js @@ -523,27 +523,25 @@ function sub_us_state_name(_match, p1, _offset, _string) { return `${n}` } -// TODO blue d4, red d6, white d8 - const ICONS = { - B1: '', - B2: '', - B3: '', - B4: '', - D1: '', - D2: '', - D3: '', - D4: '', - D5: '', - D6: '', - W1: '', - W2: '', - W3: '', - W4: '', - W5: '', - W6: '', - // W7: '', - // W8: '', + B1: '', + B2: '', + B3: '', + B4: '', + D1: '', + D2: '', + D3: '', + D4: '', + D5: '', + D6: '', + W1: '', + W2: '', + W3: '', + W4: '', + W5: '', + W6: '', + W7: '', + W8: '', PR: '', YR: '', RR: '', -- cgit v1.2.3