Mr eel
Putting All My Stuff in One Place
For no particular reason, I decided to fiddle about with a bit of Javascript and rebuild my personal/portfolio site. It’s just a single page intended to act as a hub for all stuff I amuse myself with.
A few mildly interesting things for you web-wonks out there. It validates as XHTML 1.1 and CSS 2.1, something this blog doesn’t do — blogging software makes that hard. It degrades nicely without CSS, since the mark-up is nice and semantic. It also behaves itself if Javascript is missing — the CSS accounts for the default state and then has a few tweaks when Javascript is available.
That’s an interesting trick — when the JS loads, it attaches a ‘javascript’ class to the body tag. We can then use decedent selectors in our CSS to supply JS specific styles. Degrades nicely.
In the future I think I might experiment with some pre-loading or at least a loading display to make the experience a little nicer.
Lastly, this will break in Internet Explorer 6 and has some issues in Internet Explorer 7. I am indifferent. I’ll fix ‘em, just not right now — in your face Microsoft!
Comments