From b203362ce237e2276d3319147beed94a61789825 Mon Sep 17 00:00:00 2001 From: glendc Date: Wed, 7 Feb 2024 23:10:26 +0100 Subject: [PATCH] apply feedback of elizabeth on rekendoos --- site/1/rekendoos.html | 78 +++++++++++++++++++++++++++++++------------ 1 file changed, 57 insertions(+), 21 deletions(-) diff --git a/site/1/rekendoos.html b/site/1/rekendoos.html index c9f316c..ec5c5ed 100644 --- a/site/1/rekendoos.html +++ b/site/1/rekendoos.html @@ -15,6 +15,10 @@ @@ -82,13 +107,13 @@

rekendoos ➕➖🟰


-
+
-
+
-
+
@@ -181,24 +206,35 @@

`; break; case "splitsen": + formExercise = document.getElementById("form-exercise"); + formExercise.innerHTML = ` +

+ ${exercise.answer} +

+

+ /  \ +

+ `; if (Math.floor(Math.random() * 2) + 1 === 1) { - document.getElementById("form-exercise").innerHTML = ` - ${exercise.a} + - - - = ${exercise.answer} -
- + document.getElementById("form-exercise").innerHTML += ` +

+ ${exercise.a} + + +

`; } else { - document.getElementById("form-exercise").innerHTML = ` - - - + ${exercise.b} = ${exercise.answer} -
- + document.getElementById("form-exercise").innerHTML += ` +

+ + + ${exercise.b} +

`; } + formExercise.innerHTML += ` + + `; break; } }