.
This commit is contained in:
@@ -105,7 +105,7 @@
|
|||||||
{{question.get_answers_js}}.forEach((el, n) => {
|
{{question.get_answers_js}}.forEach((el, n) => {
|
||||||
console.log(el)
|
console.log(el)
|
||||||
li_el = $(`ol.physics-answer-list li:eq(${n})`)//.addClass(`answer-${el}`)
|
li_el = $(`ol.physics-answer-list li:eq(${n})`)//.addClass(`answer-${el}`)
|
||||||
if (el == li_el.find("input").checked) {
|
if (el == li_el.find("input").get(0).checked) {
|
||||||
li_el.addClass("answer-correct");
|
li_el.addClass("answer-correct");
|
||||||
} else {
|
} else {
|
||||||
li_el.addClass("answer-incorrect");
|
li_el.addClass("answer-incorrect");
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
border: 1px solid purple;
|
border: 1px solid purple;
|
||||||
background-color: green;
|
background-color: green;
|
||||||
}
|
}
|
||||||
.answer-false {
|
.answer-incorrect {
|
||||||
border: 1px solid purple;
|
border: 1px solid purple;
|
||||||
background-color: green;
|
background-color: green;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user