(Press ?
for help, n
and p
for next and previous slide)
Lennart Schäpermeier (License Information)
June 2018
<script data-quiz>
-Tag (see next slide)Reveal.initialize({ dependencies: [ // other dependencies { src: 'plugin/quiz/js/quiz.js', async: true, callback: function() { prepareQuizzes(); } } // other dependencies ] });
<script data-quiz> quiz = { "info": { /* some general information about the quiz */ }, "questions": [ { // Question 1 - Multiple Choice, Single True Answer "q": "What number is the letter A in the English alphabet?", "a": [ {"option": "14", "correct": false}, {"option": "1", "correct": true} // more options ], "correct": "<p><span>That's right!</span> The letter A is the first letter in the alphabet!</p>", "incorrect": "<p><span>Uhh no.</span> It's the first letter of the alphabet. Did you actually <em>go</em> to kindergarden?</p>" }, /* more questions */ ] } </script>
src="/path/to/quiz.js"
#+REVEAL_HTML: <script data-quiz src="./quizzes/dummy-quiz.js"></script>
Except where otherwise noted, this work, “reveal.js-quiz demo”, is © 2018 by Lennart Schäpermeier, published under the Creative Commons license CC BY-SA 4.0.
In particular, trademark rights are not licensed under this license. Thus, rights concerning third party logos and other (trade-) marks (e.g., “Creative Commons” itself) remain with their respective holders.