The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
Crfeating a simple interactive quiz - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Crfeating a simple interactive quiz (/showthread.php?tid=9510)



Crfeating a simple interactive quiz - grantgz - 2017-02-15

I would like to create a simple quiz. Question style could be multi-choice, true false, write a word. There would be a submit button at the end.
There are many plug-ins on the site - would any of them be helpful?


RE: Crfeating a simple interactive quiz - grantgz - 2017-02-16

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.