Closed shiffman closed 8 years ago
I like that any content on an exercise or example post shows up above the code. However, some content is likely better positioned as a "caption" under the sketch itself. See the following:
http://learningprocessing.com/examples/chp03/example-03-05-mouse-key-events/
Here, the text tells the user what to do in the sketch. We could put this in the yaml stuff or I could say say to set with CSS:
<div id = "sketch_caption"> <p>Click the mouse to draw a rectangle. Press any key to erase the background.</p> </div>
What do you think @scottwooden?
Yeah good plan I'll create a caption div and display it when the sketch has loaded. I guess add "sketch-caption" into YAML?
Okay that's in. Need attribute in YAML to pass in.
This is all set now!
I like that any content on an exercise or example post shows up above the code. However, some content is likely better positioned as a "caption" under the sketch itself. See the following:
http://learningprocessing.com/examples/chp03/example-03-05-mouse-key-events/
Here, the text tells the user what to do in the sketch. We could put this in the yaml stuff or I could say say to set with CSS:
What do you think @scottwooden?