h5p-question-set/semantics.json

226 lines
5.3 KiB
JSON
Raw Normal View History

2013-01-30 17:58:50 +01:00
[
{
"name": "title",
"type": "text",
"label": "Title",
2013-02-01 13:38:35 +01:00
"description": "Question set title (optional)."
},
2013-01-30 17:58:50 +01:00
{
"name": "randomOrder",
"type": "boolean",
"label": "Randomize order",
2013-02-01 13:38:35 +01:00
"description": "Whether questions should be shown in random order."
},
2013-01-30 17:58:50 +01:00
{
"name": "initialQuestion",
"type": "number",
"label": "Initial question",
2013-02-01 13:38:35 +01:00
"description": "Which question to start with. Count from 0."
},
2013-01-30 17:58:50 +01:00
{
"name": "backgroundImage",
"type": "image",
"label": "Background image",
2013-02-01 13:38:35 +01:00
"description": "An optional background image for the Question set."
},
2013-01-30 17:58:50 +01:00
{
"name": "progressType",
"type": "select",
"label": "Progress indicator",
2013-02-01 13:38:35 +01:00
"description": "Question set progress indicator style.",
2013-01-30 17:58:50 +01:00
"values": [
{
"text": "Textual",
"value": "textual"
},
{
"text": "Dots",
"value": "dots"
}
],
"default": "textual"
},
2013-01-30 17:58:50 +01:00
{
"name": "passPercentage",
"type": "number",
"label": "Pass percentage",
"description": "Percentage of total score required for passing the quiz.",
2013-01-30 17:58:50 +01:00
"min": 0,
"max": 100,
2013-02-21 16:28:53 +01:00
"step": 1,
"default": 50
},
2013-01-30 17:58:50 +01:00
{
"name": "questions",
"type": "list",
"entity": "question",
"field": {
"name": "question",
"type": "group",
"label": "Question",
"fields": [
{
"name": "library",
"type": "library",
"label": "Question library",
"description": "Library for this question.",
"options": [
2013-02-27 23:03:35 +01:00
{
"machineName": "H5P.MultiChoice",
"majorVersion": 1,
"minorVersion": 0,
2013-03-06 08:03:05 +01:00
"defaultStyles": true
2013-02-27 23:03:35 +01:00
}
]
}
]
}
},
2013-01-30 17:58:50 +01:00
{
"name": "introPage",
"type": "group",
"label": "Intro page",
2013-02-01 13:38:35 +01:00
"description": "Data for the intro page.",
2013-01-30 17:58:50 +01:00
"fields": [
{
"name": "showIntroPage",
"type": "boolean",
"label": "Show intro page?"
},
2013-01-30 17:58:50 +01:00
{
"name": "title",
"type": "text",
"label": "Title"
},
2013-01-30 17:58:50 +01:00
{
"name": "introduction",
"type": "text",
"label": "Introduction text"
},
2013-01-30 17:58:50 +01:00
{
"name": "startButtonText",
"type": "text",
"label": "Start button text"
}
2013-01-30 17:58:50 +01:00
]
},
2013-01-30 17:58:50 +01:00
{
"name": "texts",
"type": "group",
"label": "Interface texts in quiz",
2013-02-19 14:42:05 +01:00
"common": true,
2013-01-30 17:58:50 +01:00
"fields": [
{
"name": "prevButton",
"type": "text",
2013-01-30 17:58:50 +01:00
"label": "Back button",
"default": "Previous"
},
2013-01-30 17:58:50 +01:00
{
"name": "nextButton",
"type": "text",
2013-01-30 17:58:50 +01:00
"label": "Next button",
"default": "Next"
},
2013-01-30 17:58:50 +01:00
{
"name": "finishButton",
"type": "text",
2013-01-30 17:58:50 +01:00
"label": "Finish button",
"default": "Finish"
},
2013-01-30 17:58:50 +01:00
{
"name": "textualProgress",
"type": "text",
"label": "Progress text",
"description": "Text used if textual progress is selected.",
"default": "Question: @current of @total questions"
}
2013-01-30 17:58:50 +01:00
]
},
2013-01-30 17:58:50 +01:00
{
"name": "endGame",
"type": "group",
"label": "End game data",
2013-01-30 17:58:50 +01:00
"fields": [
{
"name": "showResultPage",
"type": "boolean",
2013-01-30 17:58:50 +01:00
"label": "Show result page",
"default": true
},
2013-01-30 17:58:50 +01:00
{
"name": "resultPage",
"type": "group",
"label": "Result page",
2013-02-01 13:38:35 +01:00
"description": "Data and texts for the result page.",
2013-01-30 17:58:50 +01:00
"fields": [
{
"name": "successGreeting",
"type": "text",
"label": "Success greeting",
2013-02-01 13:38:35 +01:00
"description": "Title in result page on success."
},
2013-01-30 17:58:50 +01:00
{
"name": "successComment",
"type": "text",
"label": "Success comment",
2013-02-01 13:38:35 +01:00
"description": "Comment shown after the score."
},
2013-01-30 17:58:50 +01:00
{
"name": "failGreeting",
"type": "text",
"label": "Failed greeting",
2013-02-01 13:38:35 +01:00
"description": "Title in result page on failed quiz."
},
2013-01-30 17:58:50 +01:00
{
"name": "failComment",
"type": "text",
"label": "Failed comment",
2013-02-01 13:38:35 +01:00
"description": "Comment shown after the score on failed quiz."
},
2013-01-30 17:58:50 +01:00
{
"name": "finishButtonText",
"type": "text",
"label": "Finish button text",
2013-02-01 13:38:35 +01:00
"description": "Text for the finish button."
}
2013-01-30 17:58:50 +01:00
]
},
2013-01-30 17:58:50 +01:00
{
"name": "animations",
"type": "group",
"label": "Animations",
2013-01-30 17:58:50 +01:00
"fields": [
{
"name": "showAnimations",
"type": "boolean",
2013-02-01 13:38:35 +01:00
"label": "Show animations"
},
2013-02-25 14:15:06 +01:00
{
"name": "skippable",
"type": "boolean",
"label": "Skippable"
},
{
"name": "skipButtonText",
"type": "text",
"label": "Skip button text",
"common": true
},
2013-01-30 17:58:50 +01:00
{
"name": "successVideo",
"type": "video",
"label": "Success video",
2013-02-01 13:38:35 +01:00
"description": "Video displayed on successful quiz."
},
2013-01-30 17:58:50 +01:00
{
"name": "failVideo",
"type": "video",
"label": "Fail video",
2013-02-01 13:38:35 +01:00
"description": "Video displayed on failed quiz."
}
2013-01-30 17:58:50 +01:00
]
}
2013-01-30 17:58:50 +01:00
]
}
2013-02-01 13:38:35 +01:00
]