diff options
-rw-r--r-- | play.js | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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() { |