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

How to get rid of 'Next Question' button and just jump to next question? #79

Open
hediej opened this issue Jul 7, 2016 · 3 comments
Open

Comments

@hediej
Copy link

hediej commented Jul 7, 2016

Hi! I love your quiz!! I was wondering how to edit it so you don't need the button and can select the image as the answer and jump to the next question? Thank you!

@artgolwebdev
Copy link

@hediej
I did somethin like this


         // Artyom Start //
            function bindMe(){
            console.log("Binded...");
            $('a.button.nextQuestion.checkAnswer').hide();
            $('input').on('change',function(){
                    console.log("Go!");
                    plugin.method.checkAnswer(this, {callback: plugin.config.animationCallbacks.checkAnswer});
                    plugin.method.nextQuestion(this, {callback: plugin.config.animationCallbacks.nextQuestion});
                    $(this).addClass('animated fadeOutLeft');
                    });
        }// BIND ME ENDS HERE
        
        $(document).ready(function(){
            console.log("ready");
            setTimeout(function(){
                bindMe();
            },1000);
        });
            // Artyom end 

@wirecreative
Copy link

@EskimoLemon : Where did you put that code to make this work?

@artgolwebdev
Copy link

@wirecreative inside slickQuiz.js where the events were binded ...

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

3 participants