Adding audio for correct/incorrect answers
-
A client I’m working with asked me to add correct and incorrect sounds to the quiz that should play once a user answers a question.
I’ve played around with the WPProQuiz_View_FrontQuiz.php file in an effort to make the audio play, but because of the way the quiz is set up, all sounds play as soon as the quiz is loaded, instead of firing once a user answers a question.
I tried making the audio only fire when the correct/incorrect text was visible by using the following code, but it didn’t work:
if($('.wpProQuiz_correct').css('display') == 'block') {
Any ideas? I’m a bit lost.
Thanks!
Lauren
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding audio for correct/incorrect answers’ is closed to new replies.