From 1e5faf9b609fa230d763bccdd8520441c5498a15 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 6 Apr 2025 10:04:22 +0300 Subject: Feat: add mixed exercsises --- components/index.html | 4 ++- components/question.html | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 components/question.html (limited to 'components') diff --git a/components/index.html b/components/index.html index b8b126d..816fd21 100644 --- a/components/index.html +++ b/components/index.html @@ -13,13 +13,15 @@

Mixed Übungen

{{range .}} +

+

{{end}}
diff --git a/components/question.html b/components/question.html new file mode 100644 index 0000000..ef4618b --- /dev/null +++ b/components/question.html @@ -0,0 +1,75 @@ +{{define "question"}} +
+ {{if .Requirement}} +

{{.Requirement}}

+ {{end}} +
+ {{.Text}} +
+
+ {{if eq .Status 1}} + Correct! + {{end}} + {{if eq .Status 2}} + Wrong. + {{end}} +
+
+ {{if ne .Status 0}} +
+ {{.Explanation}} +
+ + {{end}} +
+
+ + + + +
+
+{{end}} -- cgit v1.2.3