The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
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
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
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
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Crfeating a simple interactive quiz
#1
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?
Reply
#2
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.
Reply




Users browsing this thread: 1 Guest(s)