This commit is contained in:
Ross
2021-08-23 13:23:08 +01:00
parent 25f0bd4e74
commit 145f1b70fb
2 changed files with 11 additions and 1 deletions
+4
View File
@@ -646,4 +646,8 @@ input {
background-color: black;
border: dashed 1px gray;
padding-left: 1em;
}
.sba-answer-list {
list-style-type: lower-alpha;
}
+7 -1
View File
@@ -14,7 +14,9 @@ CID: {{cid}}
<li data-ans="e">{{question.e_answer|safe}}</li>
</ul>
<ul></ul>
<ul id="menu-list">
</ul>
<div>
@@ -53,6 +55,10 @@ CID: {{cid}}
{% if saved_answer %}
$("ul.sba-answer-list li[data-ans='{{saved_answer}}']").addClass("selected");
{% endif %}
for (let i = 0; i < {{exam_length}}; i++) {
$("#menu-list").append($(`<li>${i}</li>`));
}
})
</script>
{% endblock %}