Skip to content

Conversation

rajgoel
Copy link
Contributor

@rajgoel rajgoel commented Jul 11, 2016

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.

@rajgoel rajgoel changed the title Provide option solutions overview with the score Provide option to show solutions overview with the score Jul 11, 2016
Copy link

@byteway byteway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added all suggested code to my clone, looks super! Will this feature be merged in the near future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants