Comments (4)
Thanks for raising this issue. This means getScore should only calculate the current score and not do anything else? Should be doable to fix this.
from h5p-advanced-blanks.
@sr258 Well, some people have been asking why Advanced Fill in the Blanks might not be included in other content types yet, so I just had a look :-).
And yes, getScore()
should really only return the score. showSolutions()
should really only show the solutions (and the scorebar) but definitely not trigger xAPI statements like "answered" or "completed". For instance, Question Set is using those functions to control its children. You wouldn't want to resend AFTB's "answered" statement that would be emitted on check again when people go to Question Set's summary screen and possibly again when they check the solutions.
I might find time for a pull request after X-Mas if you prefer that.
from h5p-advanced-blanks.
I‘d be happy about a PR if you have the time for it. I‘m not really well-versed in the required xAPI behavior.
I‘ve already tested the content type‘s behavior when embedding it some time ago (actually pretty long ago) in other content and there were issue with rendering it in one of the more complex ones (forgot at the moment which one it was). I think this is caused by the way Ractive is initialized. I‘m not terribly happy with using Ractive at all anymore. It can‘t be updated easily, because of breaking changes in newer versions, so I‘m considering switching to React. Maybe I‘ll find the time for this in January...
from h5p-advanced-blanks.
@sr258 I'll see if I find some time. But the issue is not really with xAPI. It's fine in onCheckAnswer which checks the clozes, triggers xAPI, and shows the feedback. That's absolutely perfect when the user hits the check button, but that function is also called by getScore
and showSolutions
where you wouldn't want all of those things to happen. So it's really just about untying that.
from h5p-advanced-blanks.
Related Issues (20)
- Highlights do not work? HOT 1
- Creating Questions in Bulk HOT 1
- new option: don't give points for corrected errors
- Highlight settings are erased after reloading editor HOT 1
- new option: disable retry for full score
- Table Format/Layout for Advanced fill the blanks
- npm run dist -> ERROR HOT 1
- Feature Request: Easier editor mode with inline markup
- Feature Request: Allow settings blanks to numeric
- Feature request: Enable add Advanced Blanks to Quiz (Question Set) HOT 1
- integration with column
- Feedback for wrong answers not displayed if "Automatically check answers" after input disabled HOT 2
- Display of math in drop-down lists
- Incorrect feedback not displaying when set to type in answers
- Enter in last blank should jump to 'check' button if present
- Keep packages up to date to have full h5p support HOT 2
- Improve the editor
- Improve accessibility
- Make text-fields auto-growing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h5p-advanced-blanks.