Comments (6)
Please put it under the "Enable show solution button" and make it conditional - only show it if the "Enable show solution button" is enabled. That's what the "ShowWhen" widget can be used for. Guess you can figure out how that works. For peeking: https://github.com/otacke/h5p-dictation/blob/master/semantics.json#L27-L35
from h5p-dictation.
Hmm, I understand the intention. I am just a little worried because the behavioral settings is quite bulky already. These settings would need to be grouped sensibly, then I don't see a problem. That will, however, mean changing the data structure (so one needs to be careful to not wreck the translation files that depend on the structure), and one would also have to write an upgrades.js
file that moves the parameters to their proper new location when someone updates the content type library (I did something similar in https://github.com/otacke/h5p-agamotto/blob/master/upgrades.js#L51-L90). Nothing wrong with that, just some work that'd have to be done, too. And someone would have to come up with 3 or maybe 4 group labels to put the settings into.
from h5p-dictation.
No problem in creating a upgrade settings code, thanks for pointing this out.
Grouping the options sensibly looks challenging for me, but I can think in a possible approach for this specific case.
We could create a new field with name "Solution display" with three possible options:
- Never ( equivalent to "enable show solution button" disabled )
- Automatically ( this new option )
- Button click ( equivalent to "enable show solution button" enabled )
What do you think?
from h5p-dictation.
I'll think about how to group the current options in sub categories. It's than just moving things in semantics.json around and then the same in the translation files.
I wouldn't want to have conflicting options (your 3rd option could contradict the "enable show solution button option"), so having the "Show solution on check" option (boolean) would be fine.
from h5p-dictation.
Nice, so if I understood you correctly, I can proceed implementing this "Show solution on check" and we'll group it later, right?
from h5p-dictation.
Yes, it doesn't matter in what order that's done.
from h5p-dictation.
Related Issues (20)
- Remove code related to adding a gap based on a space
- Refactor Sentence class
- Allow optional titles for sentences
- Audio plays even if no more tries (using keyboard) HOT 3
- Improve reporting
- Add option to consider spaces as "words", too HOT 2
- Show Solution cannot be disable
- Apostrophes are not always recognized
- Apostrophe in french is not correctly handled HOT 3
- Implement a case sensitive checkbox option HOT 6
- Add shuffle option HOT 1
- Instructions on how to get it running from source HOT 7
- Alternative correct answers HOT 6
- Investigate the options object argument of the addSpaces function
- How to force a specific language HOT 2
- Could you imclude turkish to Fix language files files HOT 1
- Check xAPI interacted/answered + previous state - potential bug
- Add skip button HOT 5
- Emit a "attempted" xAPI event when you click "Try again" HOT 1
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-dictation.