...
...

Using Gravatar as a random backdrop

The backdrop that fades in at danieltao.com/intros/gravatar is a random identicon generated by Gravatar. I get it by generating a completely random hash and then creating an <img> element with its src attribute set to the corresponding image request URL.

I’m almost certain there is a less hacky and more “correct” way of doing something like this. However, it was actually quite easy and I thought it was fun.