mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: clickable selection text (#379)
This commit is contained in:
1 parent
9870703581
commit
3cfbb66350
2 files changed
+4
-4
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.38.2",
|
||||
"version": "4.38.3",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user