summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-02 16:50:36 +0100
committerTor Andersson <tor@ccxvii.net>2023-12-02 16:50:36 +0100
commit68cc08b00bcd05fdca0f97d3fbe880158feb4be1 (patch)
treeeef8cbef1f7f3abfdb7089012c00016bbde9b4b3
parent3b3fece21f8ab0e934f198f1f57a06a21600338c (diff)
downloadvotes-for-women-68cc08b00bcd05fdca0f97d3fbe880158feb4be1.tar.gz
Isometric congress marker.
-rw-r--r--pieces/iso_congress.svg6
-rw-r--r--play.html2
-rw-r--r--play.js2
3 files changed, 8 insertions, 2 deletions
diff --git a/pieces/iso_congress.svg b/pieces/iso_congress.svg
new file mode 100644
index 0000000..c5d06ca
--- /dev/null
+++ b/pieces/iso_congress.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="64" height="96">
+<g stroke-width="2" stroke="#222" transform="tranlate(0.5,0)">
+<path d="M3.56 20.336v54.9c0 2.513.77 4.904 2.146 7.09 1.776-.568 3.938-.158 4.94.979 1 1.132.468 2.558-1.156 3.283 4.474 3.799 11.126 6.427 18.742 7.089.147-1.284 1.765-2.298 3.762-2.298 1.999 0 3.617 1.016 3.764 2.3 7.618-.66 14.27-3.289 18.746-7.086-1.623-.725-2.154-2.15-1.156-3.283.997-1.127 3.158-1.555 4.942-.978 1.42-2.25 2.151-4.66 2.15-7.095v-54.9" fill="#eee" />
+<path d="M28.242 2.297c-7.618.66-14.272 3.288-18.748 7.085 1.624.725 2.157 2.15 1.158 3.283-.997 1.127-3.158 1.555-4.942.978-1.42 2.25-2.151 4.66-2.15 7.095 0 2.512.77 4.903 2.146 7.09 1.776-.568 3.938-.158 4.94.978 1 1.133.468 2.558-1.156 3.284 4.474 3.798 11.126 6.427 18.742 7.088.147-1.284 1.765-2.297 3.762-2.297 1.999 0 3.617 1.015 3.764 2.299 7.618-.66 14.27-3.288 18.746-7.085-1.623-.725-2.154-2.15-1.156-3.284.997-1.127 3.158-1.554 4.942-.977 1.42-2.25 2.151-4.661 2.15-7.096.001-2.432-.728-4.84-2.146-7.089-1.776.568-3.938.158-4.94-.979-1-1.132-.468-2.558 1.156-3.283-4.474-3.798-11.126-6.427-18.742-7.088-.147 1.283-1.765 2.297-3.762 2.297-1.999 0-3.617-1.016-3.764-2.3z" fill="#fff" />
+</g>
+</svg>
diff --git a/play.html b/play.html
index e210d36..c5cda10 100644
--- a/play.html
+++ b/play.html
@@ -401,7 +401,7 @@ div.nineteenth_amendment_score:not(.hide) {
.piece.purple2 { width: 36px; height: 50px; background-size: 36px 50px; background-image: url(pieces/purple2.svg); }
.piece.purple1 { width: 34px; height: 50px; background-size: 36px 50px; background-image: url(pieces/purple1.svg); }
.piece.no { width: 42px; height: 32px; background-size: 42px 32px; background-image: url(pieces/no.svg); }
-.piece.congress { width: 32px; height: 32px; background-size: 32px 32px; background-image: url(pieces/cog.svg); }
+.piece.congress { width: 32px; height: 48px; background-size: 32px 48px; background-image: url(pieces/iso_congress.svg); }
div.button_box {
position: absolute;
diff --git a/play.js b/play.js
index f31cf6d..a57676f 100644
--- a/play.js
+++ b/play.js
@@ -374,7 +374,7 @@ function build_user_interface() {
for (let c = 1; c <= 6; ++c) {
elt = ui.congress[c] = create("div", {
className: "piece congress",
- style: `left:${10 + (c-1) * 42}px;top:5px;`,
+ style: `left:${15 + (c-1) * 42}px;top:-6px;`,
})
elt.addEventListener("click", on_click_congress)
}