Code Monkey home page Code Monkey logo

Comments (4)

jewlofthelotus avatar jewlofthelotus commented on August 11, 2024

From @cxelegance https://github.com/QuickenLoans/SlickQuiz/issues/53

Since jQuery animations are being used, animation callback functions could be used to do some work when animations are complete. Since we don't personally have any work to do when the animations are complete, how about letting user define callbacks for the 5 main methods in SlickQuiz... when all animations are complete in any given method, then user-defined callback function is executed.

from slickquiz.

jewlofthelotus avatar jewlofthelotus commented on August 11, 2024

From @margando https://github.com/QuickenLoans/SlickQuiz/issues/51

For scorm elearning integration:

a) in defaults add:
,callBack: null

b) At end of "completeQuiz: function() {" add:
if (plugin.config.callBack){
plugin.config.callBack(questionCount, score);
}

c) call with:
$('#slickQuiz').slickQuiz({callBack: autoevalFin});
function autoevalFin(questionCount, score){
...
}

from slickquiz.

cxelegance avatar cxelegance commented on August 11, 2024

The callbacks I've been adding are for when animations complete; it would be easy to add another one at the end of the completeQuiz() method, as per the above comments. I'll try it when I have time and I'll let you know!

from slickquiz.

cxelegance avatar cxelegance commented on August 11, 2024

Hello! I have a commit (plus a secondary "testing" branch) which has animationCallbacks (should anyone need them - I did at one point), plus event methods, such as onCompleteQuiz, which feedsback with the score and question count.
https://github.com/cxelegance/SlickQuiz/commit/c9a812881a14487045ae11f602a490c4409e1194

from slickquiz.

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.