Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Having multiple quizzes in a page #82

Open
Aleyasen opened this issue Jan 29, 2017 · 0 comments
Open

Having multiple quizzes in a page #82

Aleyasen opened this issue Jan 29, 2017 · 0 comments

Comments

@Aleyasen
Copy link

I tried to use multipe quizzes in the page that user can select between those by a drop-down menu.

$(".quizpicker").on('change', function () {
        var selected = $(this).val();
        quizJSON = window[selected + "JSON"];
        $('#slickQuiz').slickQuiz();
    });

when I set quizJSON and call the slickQuiz() method nothing happend. I'll be thankful if someone can guide me.
This is the html part.

<div id="slickQuiz">
    <br>
    <h3 class="quizName"><!-- where the quiz name goes --></h3>

    <div class="quizArea">
        <div class="quizHeader">
            <!-- where the quiz main copy goes -->

            <a class="button startQuiz" href="#">Get Started!</a>
        </div>

        <!-- where the quiz gets built -->
    </div>

    <div class="quizResults">
        <h3 class="quizScore">You Scored: <span><!-- where the quiz score goes --></span></h3>

        <h3 class="quizLevel"><strong>Ranking:</strong> <span><!-- where the quiz ranking level goes --></span></h3>

        <div class="quizResultsCopy">
            <!-- where the quiz result copy goes -->
        </div>
    </div>
</div>
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

No branches or pull requests

1 participant