feat(web): add rank indicator
This commit is contained in:
@@ -41,6 +41,7 @@
|
|||||||
<table class="w-full text-left text-sm text-gray-700">
|
<table class="w-full text-left text-sm text-gray-700">
|
||||||
<thead class="bg-gray-800 text-xs uppercase text-gray-600">
|
<thead class="bg-gray-800 text-xs uppercase text-gray-600">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th class="px-4 py-3" title="Rank the solver assigned"></th>
|
||||||
<th class="px-4 py-3" title="The best words">Word</th>
|
<th class="px-4 py-3" title="The best words">Word</th>
|
||||||
<th
|
<th
|
||||||
class="px-4 py-3 math-header"
|
class="px-4 py-3 math-header"
|
||||||
@@ -61,7 +62,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody class="divide-y divide-gray-500">
|
<tbody class="divide-y divide-gray-500">
|
||||||
{#each d.stats as s}
|
{#each d.stats as s, i}
|
||||||
<tr
|
<tr
|
||||||
class="transition-colors hover:bg-gray-50"
|
class="transition-colors hover:bg-gray-50"
|
||||||
onclick={() => {
|
onclick={() => {
|
||||||
@@ -70,6 +71,7 @@
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<td class="px-4 py-3 font-bold">#{i + 1}</td>
|
||||||
<td class="px-4 py-3 font-bold">{s.word}</td>
|
<td class="px-4 py-3 font-bold">{s.word}</td>
|
||||||
<td class="px-4 py-3"
|
<td class="px-4 py-3"
|
||||||
>{s.solution_probability.toFixed(3)}</td
|
>{s.solution_probability.toFixed(3)}</td
|
||||||
|
|||||||
Reference in New Issue
Block a user