Commit Graph

185 Commits (765684c8359d714f5b38857a95d8d873266a17ad)

Author SHA1 Message Date
thomasmars 5b0736f0e8 Added score to getXAPIData call
HFP-255
2016-11-24 17:29:47 +01:00
Timothy Lim 29d122be50 Update questionset.js 2016-11-23 14:39:57 +01:00
Timothy Lim 7a3e8d8292 Add function getXAPIData() to allow the creation of a report
HFP-255
2016-11-23 10:29:46 +01:00
Timothy Lim f2bb7e9172 Code formatting 2016-11-23 09:31:54 +01:00
Timothy Lim 163e314059 Make sure styles are not being added twice to questions [HFP-56] 2016-11-14 15:53:27 +01:00
Timothy Lim 568e0992e5 Add comments and ensure questions are created without previous state. [HFP-56] 2016-11-14 15:22:43 +01:00
Timothy Lim a95d0be8e0 Refactor createion of question pools. Refers to [H5P-56] 2016-11-14 11:31:15 +01:00
Tom Arild Jakobsen 1abac682cb Hotfix. Relates to #HFP-200 2016-11-14 10:06:25 +01:00
Paal Joergensen 9e891a0840 Merge branch 'master' of github.com:h5p/h5p-question-set 2016-10-21 14:22:34 +02:00
Paal Joergensen 969526fece Minor refactoring [HFP-57] 2016-10-21 14:21:38 +02:00
Timothy Lim db88833147 Rename variables 2016-10-21 12:56:11 +02:00
Timothy Lim 4f38f4d25b Change ordering of pool size check 2016-10-21 08:38:13 +02:00
Timothy Lim 3ac92b078b Replace 'arrow functions' with 'for loops' [HFP-57] 2016-10-20 15:46:15 +02:00
Timothy Lim 3285a8fa4a Add functionality to create question pools
[HFP-57]
2016-10-20 13:42:30 +02:00
Timothy Lim 06060af419 Add safety check 2016-10-20 08:18:43 +02:00
thomasmars 1b8abad544 Make sure the shuffled question order is properly mapped to the original order.
HFP-56
2016-10-19 15:28:31 +02:00
Timothy Lim 2ebe9ad987 Rename variables in randomize function
[HFP-56]
2016-10-19 08:50:35 +02:00
Timothy Lim 6fdeb26e0d Fix to allow disabling of backwards navigation 2016-10-19 08:22:21 +02:00
Timothy Lim 207914b411 Update retrieval of previous content 2016-10-18 15:32:16 +02:00
Timothy Lim a9d5c9b9a3 Stop multiple classes being added to each question
[HFP-56]
2016-10-18 15:07:12 +02:00
Timothy Lim b3dc56c796 Refactor button creation [HFP-56]
Add comments
2016-10-17 10:54:35 +02:00
Timothy Lim 46753e2b5e Refactor randomizing on initialization 2016-10-16 11:14:52 +02:00
thomasmars 491ed24c0b Tweaks to make randomization work.
HFP-56
2016-10-14 16:48:03 +02:00
thomasmars 6d4a915de1 Merge branch 'master' into randomize-questions
# Conflicts:
#	js/questionset.js
2016-10-14 16:14:37 +02:00
Timothy Lim d19a8d52fc Randomize questions and update buttons [HFP-56]
Show and hide navigational buttons

Add functionality to save content state

Clean up code [HFP-59]

Randomize on initialization

Tidy up [HFP-56]
2016-10-10 11:36:07 +02:00
Tom Arild Jakobsen b2f6dec79d Merge branch 'master' of github.com:h5p/h5p-question-set 2016-10-10 11:21:22 +02:00
Tom Arild Jakobsen 02f98007cc Add getMaxScore and deprecate totalScore 2016-10-10 11:21:06 +02:00
thomasmars e510b662ed Restore at last page if in solution mode
HFP-9
2016-10-07 13:38:39 +02:00
thomasmars 46ca884681 Disable navigation bar visuals and functions when backward navigation is disabled.
HFP-8
2016-10-04 14:18:50 +02:00
thomasmars 55d66eb469 Fixed not setting progress when it is undefined.
HFP-9
2016-10-04 11:59:26 +02:00
thomasmars 751ee5f597 Removed debug line
HFP-8
2016-10-04 11:53:04 +02:00
thomasmars 1cafbf09f4 Added aria-disabled attribute to dots when they are disabled
HFP-8
2016-10-04 11:43:12 +02:00
thomasmars 84c8751238 Fixed undefined answers in previous state.
HFP-9
2016-10-03 13:19:25 +02:00
thomasmars 601ae585e1 Disable backwards navigation.
Show dots, but they have no action when backward navigation is disabled.
Always show/enable full navigation in solution mode.
Only show forward button when a question has been answered.
Remove navigation button if question has been answered, then retried within the question's logic.
HFP-8
2016-10-03 13:06:01 +02:00
Håkon Ellingsen d5eb0f50ed HFP-24: Only add skip button when it is wanted 2016-09-28 11:10:32 +02:00
thomasmars a601a1014c Implemented save content user state in Question Set.
Set progress from previousState.
Set subContent data from previousState.
Toggle dots if they have been answered in previous state.
Implemented current state API call.
HFP-9
2016-09-26 15:19:53 +02:00
thomasmars 49c1da3627 Added option for disabling backward navigation
HFP-5
2016-09-26 11:45:15 +02:00
Frode Petterson b7a991fc3c Remove current blue dot on endGame
HVP-222
2016-07-26 14:31:29 +02:00
Frode Petterson da540afb82 Announce results when finsihed
HFJ-2042
2016-07-05 09:50:41 +02:00
Frode Petterson 587f488276 Bugfix unanswered toggles answered state
HFJ-2040
2016-07-04 13:05:38 +02:00
Frode Petterson 71f92ff664 Prevent stealing focus when page loads
HFJ-2040
2016-07-04 11:54:28 +02:00
Frode Petterson 5391fec861 Turns out navigation was a better fit
HFJ-2040
2016-07-04 11:42:56 +02:00
Frode Petterson 7071366b2d Use menu instead of navigation
Use keyboard to navigate menu.
HFJ-2040
2016-07-04 11:29:28 +02:00
Thomas Marstrander 6c82013c84 Improved how navigation dots are read.
HFJ-2040
2016-06-30 09:47:24 +02:00
Thomas Marstrander bc5668a4a0 Accessible navigation line.
Made readspeakers abel to announce all visible elements of the navigation line, i.e. answered/unanswered, current, and number.
HFJ-2040
2016-06-28 15:07:05 +02:00
Thomas Marstrander 917a8ed3c4 Reset individual questions on retry.
Remove finish button if a question is reset.
Remove dot styling if a question is reset.
HFJ-2044
2016-06-28 12:29:15 +02:00
Thomas Marstrander 7bcd2472ba Read feedback when changing question.
Do not read feedback when showing all solutions.
HFJ-2043
2016-06-27 15:42:31 +02:00
Thomas Marstrander 45af3ef06e Make sure to show announcer when changing it, since resetTask hides it.
HFJ-2041
2016-06-27 11:59:36 +02:00
Thomas Marstrander 653d12a85e Make readspeakers announce current question of total when changing question.
HFJ-2041
2016-06-27 11:43:00 +02:00
Paal Joergensen 87a1d722ca Fixed empty aria-label on dots [HFJ-2038] 2016-06-22 09:59:23 +02:00