diff --git a/web/index.html b/web/index.html index d9f0a2a..8263338 100644 --- a/web/index.html +++ b/web/index.html @@ -6,109 +6,131 @@ Exam simulator @@ -409,7 +431,7 @@ const cls = r.pass ? 't-pass' : (r.earned ? 't-partial' : 't-fail'); return `
Q${q.id} ${esc(q.title)}${r.earned}/${r.total}` + r.checks.map(c => `
${c.pass ? '✓' : '✗'} ${esc(c.name)} (${c.pts})
`).join('') + - (q.solution ? `
Reference solution
${esc(q.solution)}
` : '') + '
'; }).join(''); + (q.solution ? `
Reference solution
${esc(q.solution)}
` : '') + ''; }).join(''); const missed = S.questions.filter(q => s.results[q.id] && !s.results[q.id].pass).map(q => q.id); $('#btnDrillMissed').disabled = !missed.length; $('#btnDrillMissed').onclick = () => { $('#results').classList.add('hidden'); start('drill', missed); }; $('#results').classList.remove('hidden'); $('#lobby').classList.add('hidden');