Intro to jQuery: Learn jQuery with Street Fighter and Hadoukens
thinkful.com
thinkful.com
var $image = $('#my-div img');
This way jQuery doesn't have to traverse the DOM more than once to select the element.
Also, I believe you can do all of your mousedown() event code in one block.
Edit: oops, upon further inspection, I see you are doing this all in the console. Caching the selector is still possible, but now I understand why you did the mousedown() event the way you did.
Def let me know if you have any other suggestions :)
</shameless plug>
Its hideous, the gif's animation continues to repeat itself because the steps to play a gif once in VB is way too complicated. However, we built an onscreen gamepad so clicking left and right moved the character. It uses 3 BG stages and 3 characters (Ryu, Guile, and Chun-Li). I'll also include a link to where I got the gif's and sound effects.
Good job on the tutorial. But I hope new-comers will look for JavaScript references for future education.
Will definitely check it out when I'm on my laptop, seems cool!
Let me know if you have any problems looking at it from your computer.
Definitely let me know if you have any feedback or suggestions.
Use the keyboard shortcut Command: Option + J (Mac)
doesnt work, as the shortcut seems to be Option + Alt + J.
Did the menu access change? Or is it still View > Developer > JavaScript Console.