The code that was linked previously
a) was missing closing tag for
b) had script in head, and script was fetching info from DOM - given that when script is run, relevant bits of DOM do not yet exist, this makes it the tutorial impossible to follow.
I was hoping to make a pull request to gist, but that doesn't appear to be an option, so I forked, edited, and put the link to my gist on the tutorial. Please download and make sure it works before approving :)
The code that was linked previously a) was missing closing tag for
b) had script in head, and script was fetching info from DOM - given that when script is run, relevant bits of DOM do not yet exist, this makes it the tutorial impossible to follow. I was hoping to make a pull request to gist, but that doesn't appear to be an option, so I forked, edited, and put the link to my gist on the tutorial. Please download and make sure it works before approving :)