Quotes help make search much faster. Example: "Practice Makes Perfect"

Friday, November 16, 2012

Codecademy: "Drawing the Head and Torso Dynamically!"


//sample solution to ui.js // Fill out this function! function drawHead() { $('.draw-area').append("
"); $('.head').addClass('body-part'); } // Fill out this function too! function drawTorso() { $('.draw-area').append("
"); $('.armbox').addClass('body-part'); $('.armbox').append("
"); $('.torso').addClass('body-part'); $('.draw-area').append("
"); $('.legbox').addClass('body-part'); $('.legbox').append("
"); $('.pelvis').addClass('body-part'); } // You shouldn't need to touch these. These are just here to // show you the output! drawHead(); drawTorso();

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts