summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js14
1 files changed, 6 insertions, 8 deletions
diff --git a/play.js b/play.js
index b0b1b7e..81988d9 100644
--- a/play.js
+++ b/play.js
@@ -1216,14 +1216,12 @@ function layout_elector(s, pow) {
}
function layout_electoral_college(ix, pow) {
- for (let s of all_electoral_colleges) {
- let e = ui.elector[pow][used_elector[pow]++]
- let x = ELECTORAL_COLLEGE_X + ELECTORAL_COLLEGE_DX * ix
- let y = ELECTORAL_COLLEGE_Y
- e.style.left = (x - 16) + "px"
- e.style.top = (y - 16) + "px"
- ui.markers_element.appendChild(e)
- }
+ let e = ui.elector[pow][used_elector[pow]++]
+ let x = ELECTORAL_COLLEGE_X + ELECTORAL_COLLEGE_DX * ix
+ let y = ELECTORAL_COLLEGE_Y
+ e.style.left = (x - 16) + "px"
+ e.style.top = (y - 16) + "px"
+ ui.markers_element.appendChild(e)
}
function update_favicon() {