jsQuizEngine
jsQuizEngine copied to clipboard
Provide option to show solutions overview with the score
This PR addresses issue #2 and allows users to provide a solution overview with the score by adding
<div class="solutions">
<div data-bind="foreach: { data: questions, as: 'question' }">
<h3>
Question <span data-bind="text: question.index"></span> (
<span data-bind="css: {'text-success': question.correct }, visible: question.correct">Correct</span>
<span data-bind="css: {'text-danger': !question.correct }, visible: !question.correct">Wrong</span>
)
</h3>
<div data-bind="attr: {'id': 'solution-' + question.index}"></div>
</div>
</div>
to the score section.