Skip to content

Commit

Permalink
A minor tweak to the side results
Browse files Browse the repository at this point in the history
  • Loading branch information
palmertab committed Nov 14, 2023
1 parent 0452123 commit b0c6f49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/panel/schemat/show.mhtml
Original file line number Diff line number Diff line change
Expand Up @@ -400,14 +400,12 @@
$.getJSON('<% $side_url %>').success( sideCounts => {

$('#debateResults').html('');

const colors = ['bluetext', 'orangetext', 'greentext'];

Object.keys(sideCounts).forEach( side => {
$("#debateResults").append(`
<span class="half centeralign semibold">
<span class="fourtenths rightalign ${colors.shift()}">
${side}:
${side.substring(0, 3)}:
</span>
<span class="halfspacer">
</span>
Expand Down

0 comments on commit b0c6f49

Please sign in to comment.