Created
February 26, 2012 19:35
-
-
Save anonymous/1918499 to your computer and use it in GitHub Desktop.
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
function askH(){ | |
artisan.drawCircle('canvas', 250, 300, 120, 'rgb(255, 0, 0)'); | |
artisan.drawText('canvas', 146, 250, 'O n atomico deste elemento e 1.', '#FFFFFF'); | |
artisan.drawText('canvas', 180, 280, 'Quantos eletroes tem?', '#FFFFFF'); | |
$('#atomnum').fadeIn('fast'); | |
var ans = 0; | |
$('#atomnum').change(function(e) { | |
var ans = $('#atomnum').val(); | |
if(ans == '1') { | |
artisan.drawText('canvas', 200, 300, 'Correto!', '#FFFFFF'); | |
} | |
else { | |
e.preventDefault(); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment