-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Converted tabs to spaces, indentation amends * Naming refactor * Updated merge with naming refactor * Moved positional less to theme, zindex bug fix * _canShowMarking false icon support * Bower, example and readme updates * Removed unnecessary space * Updated license and cross platform coverage
- Loading branch information
Showing
7 changed files
with
409 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"name": "adapt-contrib-mcq", | ||
"version": "3.0.0", | ||
"framework": ">=4", | ||
"version": "4.0.0", | ||
"framework": ">=5", | ||
"homepage": "https://github.com/adaptlearning/adapt-contrib-mcq", | ||
"issues": "https://github.com/adaptlearning/adapt_framework/issues/new", | ||
"displayName" : "Multiple Choice Question", | ||
"component" : "mcq", | ||
"displayName" : "Multiple Choice Question", | ||
"description": "A multiple choice question component", | ||
"main": "/js/adapt-contrib-mcq.js", | ||
"keywords": [ | ||
"adapt-plugin", | ||
"adapt-component" | ||
], | ||
"license": "GPLv3" | ||
"license": "GPL-3.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,80 @@ | ||
{ | ||
"_id": "c-105", | ||
"_parentId": "b-55", | ||
"_type": "component", | ||
"_component": "mcq", | ||
"_classes": "", | ||
"_layout": "left", | ||
"_attempts": 1, | ||
"_shouldDisplayAttempts": false, | ||
"_questionWeight": 1, | ||
"_isRandom": false, | ||
"_selectable": 1, | ||
"_canShowModelAnswer": true, | ||
"_canShowFeedback": true, | ||
"_canShowMarking": true, | ||
"_recordInteraction": true, | ||
"title": "MCQ", | ||
"displayTitle": "MCQ", | ||
"body": "Which of the following options would you consider to be correct?", | ||
"instruction": "", | ||
"_items": [ | ||
{ | ||
"text": "This is option 1.", | ||
"_shouldBeSelected": true | ||
}, | ||
{ | ||
"text": "This is option 2.", | ||
"_shouldBeSelected": false, | ||
"feedback": "Option two incorrect feedback" | ||
}, | ||
{ | ||
"text": "This is option 3.", | ||
"_shouldBeSelected": false | ||
}, | ||
{ | ||
"text": "This is option 4.", | ||
"_shouldBeSelected": false | ||
} | ||
], | ||
"_feedback":{ | ||
"title": "Feedback", | ||
"correct": "Congratulations, this is the correct feedback.", | ||
"_incorrect": { | ||
"notFinal": "", | ||
"final": "This feedback will appear if you answered the question incorrectly." | ||
}, | ||
"_partlyCorrect": { | ||
"notFinal": "", | ||
"final": "This feedback will appear if you answered the question correctly." | ||
"_id": "c-05", | ||
"_parentId": "b-05", | ||
"_type": "component", | ||
"_component": "mcq", | ||
"_classes": "", | ||
"_layout": "left", | ||
"title": "MCQ", | ||
"displayTitle": "MCQ", | ||
"body": "Which of the following options would you consider to be correct?", | ||
"instruction": "", | ||
"_attempts": 1, | ||
"_shouldDisplayAttempts": false, | ||
"_isRandom": false, | ||
"_questionWeight": 1, | ||
"_selectable": 1, | ||
"_canShowModelAnswer": true, | ||
"_canShowFeedback": true, | ||
"_canShowMarking": true, | ||
"_recordInteraction": true, | ||
"_items": [ | ||
{ | ||
"text": "This is option 1 (Correct)", | ||
"_shouldBeSelected": true | ||
}, | ||
{ | ||
"text": "This is option 2", | ||
"_shouldBeSelected": false, | ||
"feedback": "Option two incorrect feedback" | ||
}, | ||
{ | ||
"text": "This is option 3", | ||
"_shouldBeSelected": false | ||
}, | ||
{ | ||
"text": "This is option 4", | ||
"_shouldBeSelected": false | ||
} | ||
], | ||
"_feedback":{ | ||
"title": "Feedback", | ||
"correct": "Congratulations, this is the correct feedback.", | ||
"_incorrect": { | ||
"notFinal": "", | ||
"final": "This feedback will appear if you answered the question incorrectly." | ||
}, | ||
"_partlyCorrect": { | ||
"notFinal": "", | ||
"final": "This feedback will appear if you answered the question correctly." | ||
} | ||
}, | ||
"_comment": "You only need to include _buttons if you want to override the button labels that are set in course.json", | ||
"_buttons": { | ||
"_submit": { | ||
"buttonText": "Submit", | ||
"ariaLabel": "Select here to submit your answer." | ||
}, | ||
"_reset": { | ||
"buttonText": "Reset", | ||
"ariaLabel": "" | ||
}, | ||
"_showCorrectAnswer": { | ||
"buttonText": "Correct Answer", | ||
"ariaLabel": "" | ||
}, | ||
"_hideCorrectAnswer": { | ||
"buttonText": "My Answer", | ||
"ariaLabel": "" | ||
}, | ||
"_showFeedback": { | ||
"buttonText": "Show feedback", | ||
"ariaLabel": "" | ||
}, | ||
"remainingAttemptsText": "attempts remaining", | ||
"remainingAttemptText": "final attempt" | ||
}, | ||
"_pageLevelProgress": { | ||
"_isEnabled": true | ||
} | ||
} | ||
}, | ||
"_comment": "You only need to include _buttons if you want to override the button labels that are set in course.json", | ||
"_buttons": { | ||
"_submit": { | ||
"buttonText": "Submit", | ||
"ariaLabel": "Select here to submit your answer." | ||
}, | ||
"_reset": { | ||
"buttonText": "Reset", | ||
"ariaLabel": "" | ||
}, | ||
"_showCorrectAnswer": { | ||
"buttonText": "Correct Answer", | ||
"ariaLabel": "" | ||
}, | ||
"_hideCorrectAnswer": { | ||
"buttonText": "My Answer", | ||
"ariaLabel": "" | ||
}, | ||
"_showFeedback": { | ||
"buttonText": "Show feedback", | ||
"ariaLabel": "" | ||
}, | ||
"remainingAttemptsText": "attempts remaining", | ||
"remainingAttemptText": "final attempt" | ||
}, | ||
"_pageLevelProgress": { | ||
"_isEnabled": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
define([ | ||
'core/js/adapt', | ||
'./mcqView', | ||
'core/js/models/itemsQuestionModel' | ||
'core/js/adapt', | ||
'./mcqView', | ||
'core/js/models/itemsQuestionModel' | ||
], function(Adapt, McqView, ItemsQuestionModel) { | ||
|
||
return Adapt.register("mcq", { | ||
view: McqView, | ||
// Extend ItemsQuestionModel to distinguish McqModel in | ||
// the inheritance chain and allow targeted model extensions. | ||
model: ItemsQuestionModel.extend({}) | ||
}); | ||
return Adapt.register("mcq", { | ||
view: McqView, | ||
// Extend ItemsQuestionModel to distinguish McqModel in | ||
// the inheritance chain and allow targeted model extensions. | ||
model: ItemsQuestionModel.extend({}) | ||
}); | ||
|
||
}); |
Oops, something went wrong.