From 430efb6e9c68066d4f1447faac06569fed6c2a76 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 6 Jun 2023 20:41:00 +0100 Subject: [PATCH] Move quiz question text and entry field into quiz.pl Ideally this would be configurable perhaps. --- quiz.pl | 11 +++++++++++ template.html | 9 +-------- 2 files changed, 12 insertions(+), 8 deletions(-) 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.) -- 2.30.2