diff --git a/site/1/mathbox.html b/site/1/mathbox.html
index 493e9f4..dfa5c6b 100644
--- a/site/1/mathbox.html
+++ b/site/1/mathbox.html
@@ -158,10 +158,12 @@
rekendoos ➕➖🟰
@@ -399,6 +404,15 @@
`;
}
break;
+ case "vermenigvuldigen":
+ exerciseFeedback += "maak de vermenigvuldiging ✖️
";
+ exerciseFeedback += `
+
+ ${exercise.a} x ${exercise.b} =
+ ${exercise.answer}
+
+ `;
+ break;
}
exerciseFeedback += '';
document.getElementById("review").innerHTML = exerciseFeedback;
@@ -433,6 +447,13 @@
window.mathBoxState.exercise.b = Math.floor(Math.random() * window.mathBoxState.exercise.a);
window.mathBoxState.exercise.answer = window.mathBoxState.exercise.a - window.mathBoxState.exercise.b;
break;
+ case "vermenigvuldigen":
+ while (!window.mathBoxState.exercise.answer || window.mathBoxState.exercise.answer > window.mathBoxState.countUntil) {
+ window.mathBoxState.exercise.a = Math.floor(Math.random() * Math.floor(window.mathBoxState.countUntil / 2));
+ window.mathBoxState.exercise.b = Math.floor(Math.random() * Math.floor(window.mathBoxState.countUntil / 2)) + 1;
+ window.mathBoxState.exercise.answer = window.mathBoxState.exercise.a * window.mathBoxState.exercise.b;
+ }
+ break;
}
}
@@ -463,6 +484,17 @@
`;
break;
+ case "vermenigvuldigen":
+ document.getElementById("exercise-feedback").innerHTML = "maak de vermenigvuldiging ✖️";
+ document.getElementById("form-exercise").innerHTML = `
+
+ ${window.mathBoxState.exercise.a} x ${window.mathBoxState.exercise.b} =
+
+
+
+
+ `;
+ break;
case "splitsen":
document.getElementById("exercise-feedback").innerHTML = "maak de splitsing 🔼";
formExercise = document.getElementById("form-exercise");