2017-02-16, 17:55:13
Created my first draft. This link http://www.javascriptsource.com/miscellaneous/basic-javascript-quiz.html provided a basic 5 question quiz which computes a score and provides an explanation for wrong answers. The javascript instructions include a section to be added to the page header. Instead I copied out the script portion as quiz1.js and and uploaded it to a /js folder in my uploads folder. Then in the template.php of the theme I added
<?php if(return_page_slug()=='quiz1' ){ ?>
<script type="text/javascript" src="whatever.com/gs/data/uploads/js/quiz1.js"></script>
<?php } ?>
Apache Bench mark showed the page was loaded over 120 times a second on a Raspberry Pi3.
<?php if(return_page_slug()=='quiz1' ){ ?>
<script type="text/javascript" src="whatever.com/gs/data/uploads/js/quiz1.js"></script>
<?php } ?>
Apache Bench mark showed the page was loaded over 120 times a second on a Raspberry Pi3.