{"id":15874695,"url":"https://github.com/juwit/reveal-quiz","last_synced_at":"2025-04-01T23:21:50.848Z","repository":{"id":127210338,"uuid":"589672467","full_name":"juwit/reveal-quiz","owner":"juwit","description":"reveal.js plugin that allows adding quiz as slides","archived":false,"fork":false,"pushed_at":"2023-06-01T15:11:27.000Z","size":1185,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-02-07T15:14:06.879Z","etag":null,"topics":["presentation","quiz","reveal-js","slides","slideshow"],"latest_commit_sha":null,"homepage":"https://juwit.github.io/reveal-quiz","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juwit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-16T17:02:21.000Z","updated_at":"2025-01-22T08:32:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"dafd119b-6a80-4b8f-9df5-39691041d4d5","html_url":"https://github.com/juwit/reveal-quiz","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juwit%2Freveal-quiz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juwit%2Freveal-quiz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juwit%2Freveal-quiz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juwit%2Freveal-quiz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juwit","download_url":"https://codeload.github.com/juwit/reveal-quiz/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246725472,"owners_count":20823643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["presentation","quiz","reveal-js","slides","slideshow"],"created_at":"2024-10-06T01:41:10.395Z","updated_at":"2025-04-01T23:21:50.826Z","avatar_url":"https://github.com/juwit.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reveal-quiz\n\nreveal.js plugin that allows adding quizzes as slides.\n\n![](site/capture.gif)\n\n## features\n\n* single-choice questions\n* multiple-choice questions\n* markdown in questions and answers\n* answers explanations show after answer submission\n* multicast \u0026 remote-control\n\n## usage\n\nCreate a simple question slide in markdown:\n\n```html\n\u003csection data-quiz\u003e\n# Who won the 2018 football world cup ?\n- [x] France\n- [ ] Germany\n- [ ] Italy\n- [ ] Brazil\n\u003c/section\u003e\n```\n\nThe question itself should be a simple text, using a markdown title mark `#`.\nThe answers are written as Markdown task lists using `- [ ]`.\nThe checked answers (`- [x]`) are the valid ones.\nIf only one answer is valid, answers will be displayed as radio buttons, otherwise they will be displayed as check boxes.\n\nAn optional answers explanation can be added as a markdown blockquote using `\u003e`, and will be displayed after the question was answered.\n\n```html\n\u003csection data-quiz\u003e\n# Who is *Darth Sidious* master ?\n- [ ] Darth Bane\n- [ ] Darth Tenebrous\n- [x] Darth Plagueis\n\u003e \"Did you ever hear the Tragedy of Darth Plagueis the Wise?\"\n\u003e - Sheev Palpatine, to Anakin Skywalker\n\u003c/section\u003e\n```\n\n## configuration\n\nConfiguration can be made global, or slide-specific.\n\nGlobal configuration is passed to the plugin using standard *reveal.js* configuration, with the `quiz` property:\n\n```html\n\u003cscript type=\"module\"\u003e\n    import Reveal from './node_modules/reveal.js/dist/reveal.esm.js';\n    import markdown from './node_modules/reveal.js/plugin/markdown/markdown.esm.js';\n    \n    import RevealQuizz from './node_modules/reveal-quiz/dist/reveal-quiz-bundle-esm.js';\n    \n    Reveal.initialize({\n      quiz: {\n        useTimer: true,\n        defaultTimerDuration: 60,\n      },\n      plugins: [markdown, RevealQuizz],\n    });\n\u003c/script\u003e\n```\n\nslide-specific configuration is passed using `data-quiz-config-*` attributes on quiz slides.\n\n```html\n\u003csection data-quiz data-quiz-config-useTimer=\"true\" data-quiz-config-timerDuration=\"30\"\u003e\n- Who won the 2018 football world cup ?\n- [x] France\n- [ ] Germany\n- [ ] Italy\n- [ ] Brazil\n\u003c/section\u003e\n```\n\n### available configuration properties\n\n| global property   | slide property                     | default value | description                                         |\n|-------------------|------------------------------------|---------------|-----------------------------------------------------|\n| useTimer          | data-quiz-config-userTimer         | false         | set to `true` to activate a timer on questions      |\n| timerDuration     | data-quiz-config-timerDuration     | 60            | the duration of the timer                           |\n| randomizeAnswers  | data-quiz-config-randomizeAnswers  | false         | set to `true` to randomize the answers on questions |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuwit%2Freveal-quiz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuwit%2Freveal-quiz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuwit%2Freveal-quiz/lists"}