First HTML5 experiences
Although I have too much to do it’s in the nick of time to try some stuff with HTML5.
You should all have heard about HTML5, next generation of web ;) I still saw a lot of new features, some are still not supported in many browsers but all in all I’m looking forward.
Here I played a little bit with the canvas stuff and created a binary clock:
Wasn’t that difficult, just created an HTML element of type
canvas with enough space in it to draw the clock:
After wards just called
init (); , that calls
clock(); once a second to draw the clock. Please tell me whether it works in your browser ;)
If anybody is interested, here is the code: html5_clock. If you also want to deal with it, Mozilla has a good tutorial.
I hope this new age of web will delete all the flash trash out there!
Leave a comment
There are multiple options to leave a comment:
- send me an email
- submit a comment through the feedback page (anonymously via TOR)
- Fork this repo at GitHub, add your comment to the _data/comments directory and send me a pull request
- Fill the following form and Staticman will automagically create a pull request for you:
Works very well in Firefox 5.0.1!