Mercurial Hosting > arkian
view src/test.html @ 1:5419663ca6ca
add this.html
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 11 Sep 2025 16:18:29 -0600 |
parents | 45a3989c3447 |
children |
line wrap: on
line source
<!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>