Javascript
For each of the following Javascript samples:
- Follow the link and try out the page.
- View source
- Read the HTML
- Follow the links in the <head> section to sample.css and sample.js and read those.
- Do you get what's going on? Put questions on your wall.
- Want to experiment? Download the index.html, sample.css, and sample.js to a working
directory on your computer (right-click Save As, or whatever), and open index.html
in your browser via the File→Open menu. Edit files and reload as you wish.
The samples
Putting it all together with Flask
Download sample5.zip and run
"./javascript_sample.py localhost 5000" on your comupter. Study the code and
figure out what it's doing.