Skip to content

Commit

Permalink
flip weight and score
Browse files Browse the repository at this point in the history
  • Loading branch information
refact0r committed Feb 26, 2022
1 parent b63a86f commit e5a6bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/course/[courseIndex].svelte
Original file line number Diff line number Diff line change
Expand Up @@ -171,17 +171,17 @@
<tr>
<td class="type-name">{name}</td>
<td class="type-points" style={type.style}>{type.score} / {type.total}</td>
<td class="type-weight">{type.weight}%</td>
<td class="type-score" style={type.style}>{type.scorePercent}%</td>
<td class="type-weight">{type.weight}%</td>
</tr>
{/each}
<tr>
<td class="type-name">Total</td>
<td class="type-points" />
<td class="type-weight">100%</td>
<td class="type-score" style={course.style}>
{course.scorePercent.toFixed(1)}%
</td>
<td class="type-weight">100%</td>
</tr>
</table>
</div>
Expand Down

0 comments on commit e5a6bc5

Please sign in to comment.