create_an_interactive_e-learning_template
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
create_an_interactive_e-learning_template [2019/10/15 08:42] – [Extended method of tracking the end of the quiz] lucy | create_an_interactive_e-learning_template [2020/05/26 16:56] – lucy | ||
---|---|---|---|
Line 27: | Line 27: | ||
b) If you are working on an awareness website within a campaign then click here (see pic) | b) If you are working on an awareness website within a campaign then click here (see pic) | ||
- | {{ q2.png?600 }} | + | {{ :: |
Lucy then will automatically inject a JavaScript called /js/quiz.js to your template, making quiz-‐related functions available | Lucy then will automatically inject a JavaScript called /js/quiz.js to your template, making quiz-‐related functions available | ||
Line 88: | Line 88: | ||
:!: Attention! Enabling this option without calling the " | :!: Attention! Enabling this option without calling the " | ||
+ | By default, Lucy marks each recipient as " | ||
+ | |||
+ | ==== An example of usage the function lucyQuizEnd() in awareness training ==== | ||
+ | |||
+ | Using the awareness template " | ||
+ | |||
+ | Add a new variable " | ||
+ | |||
+ | < | ||
+ | var correctAnswersCount = 0; | ||
+ | </ | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | Find the place in the code where function lucyQuizAnswer is called and insert a call of the function lucyQuizEnd after it with the condition as shown below. | ||
+ | |||
+ | < | ||
+ | correctAnswersCount++; | ||
+ | if (correctAnswersCount >= 5) { | ||
+ | lucyQuizEnd(); | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | Save the template and run the campaign. After 5 quiz questions are answered correctly, the recipient will be marked as " | ||
+ | |||
+ | :!: **Attention**. Using the function // | ||
+ | |||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | * Lucy marks the recipients as ' | ||
+ | __Solution__: | ||
+ | |||
+ | * Lucy does not mark the recipients as ' | ||
+ | __Solution__: |
create_an_interactive_e-learning_template.txt · Last modified: 2021/04/30 11:38 by lucy