ui: clickable selection text (#379)

This commit is contained in:
panda authored and GitHub committed 2022-06-29 12:21:53 +08:00
1 parent 9870703581
commit 3cfbb66350
2 files changed
+4 -4

No files matched your search

@@ -202,10 +202,10 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
$(e).html($(e).html().replace(info, ''));
$(e).next('ul').children().each((j, ele) => {
$(ele).after(tpl`
<div class="objective_${id} radiobox">
<label class="objective_${id} radiobox">
<input type="${type === 'select' ? 'radio' : 'checkbox'}" name="${id}" class="objective-input" value="${String.fromCharCode(65 + j)}">
${String.fromCharCode(65 + j)}. ${ele.innerHTML}
</div>
${String.fromCharCode(65 + j)}. ${{ templateRaw: true, html: ele.innerHTML }}
</label>
`);
$(ele).remove();
});