aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-11-25 23:28:37 +0100
committerache <ache@ache.one>2017-11-25 23:28:37 +0100
commit24ceb94d00ffed05b8488fb75db89aaec8fcbedb (patch)
treea514d72e6d07230fb02fee74bfab9959dab27378 /public/js
parentUpdate MathJax script (diff)
Update everything
Diffstat (limited to 'public/js')
-rw-r--r--public/js/qcm.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/public/js/qcm.js b/public/js/qcm.js
index c81fe8f..a0eeee2 100644
--- a/public/js/qcm.js
+++ b/public/js/qcm.js
@@ -12,6 +12,10 @@ function check(id/*, tab*/) {
const fieldQCM = document.getElementById(id);
Array.from(fieldQCM.getElementsByTagName('INPUT')).forEach((input) => {
+ if( input.type != 'checkbox' )
+ return;
+
+
const label = document.querySelector("label[for='" + input.id + "']");
if (input.checked) {
Array.from(label.getElementsByClassName('hiden_block_quote')).forEach(((child) => {
@@ -24,6 +28,7 @@ function check(id/*, tab*/) {
}
break;
case '=': {
+ console.log("Good")
label.style.color = '#00BB00';
}
break;
@@ -33,6 +38,7 @@ function check(id/*, tab*/) {
}
break;
default: {
+ console.log("Oups")
// empty
}
}