From a242063eced6d0b250dd8d5f170d90db1841e2ae Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 10 Dec 2021 23:57:21 +0000 Subject: [PATCH] . --- physics/templates/physics/exam_take.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/physics/templates/physics/exam_take.html b/physics/templates/physics/exam_take.html index 610218a3..34f5714f 100755 --- a/physics/templates/physics/exam_take.html +++ b/physics/templates/physics/exam_take.html @@ -103,9 +103,7 @@ {% else %} {{question.get_answers_js}}.forEach((el, n) => { console.log(el) - if (el) { - $(`ol.physics-answer-list li:eq(${n})`).addClass("correct") - } + $(`ol.physics-answer-list li:eq(${n})`).addClass(`answer-${el}`) }); //$("ul.physics-answer-list li[data-ans='{{question.best_answer}}']").addClass("correct"); @@ -137,5 +135,9 @@ .selected { border: 1px solid purple; } + + .answer-true { + border: 1px solid purple; + } {% endblock %}