diff src/test.html @ 0:45a3989c3447

start public repo
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 11 Sep 2025 15:26:39 -0600
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/test.html	Thu Sep 11 15:26:39 2025 -0600
@@ -0,0 +1,50 @@
+<!doctype html>
+<html lang="en">
+	<head>
+		<script src="/site.js"></script>
+		<script src="/ot.js"></script>
+		<script src="/test.js"></script>
+		<script> head() </script>
+		<title>Arkian - Old Testament Test</title>
+		<style>
+			h4 {
+				margin-bottom: 8px;
+			}
+			span[correct]:before {
+				content: "✓";
+				color: green;
+			}
+			span[wrong]:before {
+				content: "x";
+				color: red;
+			}
+		</style>
+	</head>
+	<body>
+		<script> header() </script>
+		<form content action="javascript:checkTest()">
+			<h1>Old Testament Test</h1>
+			<script>
+	for( let p of questions ) {
+		document.write(`\
+			<div q="${p.i}">
+				<h4>${p.q}</h4>
+`		);
+		for( let j=0; j<p.a.length; j++ ) {
+			a = p.a[j];
+			a = htmlEncode(a);
+			document.write(`\
+				<label clickable><input type=radio required name="a${p.i}" value="${a}"> ${a}</label><br>
+`			);
+		}
+		document.write(`\
+			</div>
+`		);
+	}
+			</script>
+			<div end>
+				<p><input type=submit></p>
+			</div>
+		</form>
+	</body>
+</html>