.
This commit is contained in:
@@ -26,7 +26,7 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
var classes = ['answer correct', 'answer half-correct', 'answer incorrect'];
|
var classes = ['answer correct', 'answer half-correct', 'answer incorrect'];
|
||||||
$(element).each(function () {
|
$(element).each(function () {
|
||||||
mark = classes[($.inArray(this.className, classes) + 1) % classes.length];
|
let mark = classes[($.inArray(this.className, classes) + 1) % classes.length];
|
||||||
this.className = mark
|
this.className = mark
|
||||||
this.dataset.newmark = mark
|
this.dataset.newmark = mark
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
var classes = ['answer correct', 'answer half-correct', 'answer incorrect'];
|
var classes = ['answer correct', 'answer half-correct', 'answer incorrect'];
|
||||||
$(element).each(function () {
|
$(element).each(function () {
|
||||||
mark = classes[($.inArray(this.className, classes) + 1) % classes.length];
|
let mark = classes[($.inArray(this.className, classes) + 1) % classes.length];
|
||||||
this.className = mark
|
this.className = mark
|
||||||
this.dataset.newmark = mark
|
this.dataset.newmark = mark
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user