Giter Club home page Giter Club logo

Comments (4)

sr258 avatar sr258 commented on May 31, 2024

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.

otacke avatar otacke commented on May 31, 2024

@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.

sr258 avatar sr258 commented on May 31, 2024

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.

otacke avatar otacke commented on May 31, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.