-
-
Save codecademydev/15c995c5f245bed7316c6c703c0b604e to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(() =>{ | |
$('.hint-box').on('click', () => { | |
$('.hint').slideToggle(800); | |
}); | |
$('.wrong-answer-one').on('click', () => { | |
$('.wrong-text-one').fadeOut('slow'); | |
$('.frown').show(); | |
}); | |
$('.wrong-answer-two').on('click', () => { | |
$('.wrong-text-two').fadeOut('fast'); | |
$('.frown').show(); | |
}); | |
$('.wrong-answer-three').on('click', () => { | |
$('.wrong-text-three').fadeOut(); | |
$('.frown').show(); | |
}); | |
$('.correct-answer').on('click', () => { | |
$('.frown').hide(); | |
$('.smiley').show(); | |
$('.wrong-answer-one').fadeOut('slow'); | |
$('.wrong-answer-two').fadeOut('slow'); | |
$('.wrong-answer-three').fadeOut('slow'); | |
}); | |
$('.reset-text').on('click', () => { | |
$('.wrong-answer-one answer').show(); | |
$('.wrong-answer-two answer').show(); | |
$('.wrong-answer-three answer').show(); | |
$('.correct-answer answer').show(); | |
$('.frown').hide(); | |
$('.smiley').hide(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment