From: Ian Jackson Date: Tue, 6 Jun 2023 19:41:00 +0000 (+0100) Subject: Move quiz question text and entry field into quiz.pl X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=430efb6e9c68066d4f1447faac06569fed6c2a76;p=bcp5-registry.git Move quiz question text and entry field into quiz.pl Ideally this would be configurable perhaps. --- diff --git a/quiz.pl b/quiz.pl index 7737ebd..5a63d49 100644 --- a/quiz.pl +++ b/quiz.pl @@ -8,4 +8,15 @@ sub quiz_check_answer () { } } +$quiz_question_input = < +Q. Which IETF document, +titled "Address Allocation for Private Internets", +does the G-RIN help implement? +
+A. +
+END + 1; diff --git a/template.html b/template.html index a6236c0..f70e63e 100644 --- a/template.html +++ b/template.html @@ -405,14 +405,7 @@ a recent notification of your password, you should request a current password:

-Quiz question vs. stupid robots: -
-Q. Which IETF document, -titled "Address Allocation for Private Internets", -does the G-RIN help implement? -
-A. -
+@@@quiz_question_input@@@
(The password will be sent to the registered email address for the entry.)