Comments (4)
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.
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.
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.
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)
- Disable the next button if the answer is incorrect
- Answer is highlighted HOT 3
- Remove Introductory text on loading of first question HOT 1
- a.startQuiz gets display:inline;
- Include minified assets in repo
- Option to hide the title / desc once the quiz starts HOT 2
- Resuming Quiz HOT 4
- trigger completeQuiz dynamically.
- Correct Answer Option Highlighted when Next button Clicked
- Adding images or video HOT 3
- How to get rid of 'Next Question' button and just jump to next question? HOT 3
- Issue with number
- correct answer logic fails with Jquery > 3 HOT 1
- Having multiple quizzes in a page
- Multiple quizzes on the same page
- Return to top after clicking nextQuestion/
- Emailing Quiz results
- How to add timer to slick quiz
- Disable checkAnswerText button until there is no answer
- response message each answer
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 slickquiz.