DM Blog 2013 – Post Thumbnail

DM Blog 2013

Toronto, Ontario by

I've changed my blog's design several times over the years but I hadn't noticed that it's always been in December/January every year. This time, I decided to rewrite everything from the ground up – here are a couple features that I added...

Show or Hide a Sidebar on iPad Based on Orientation – Post Thumbnail

Show or Hide a Sidebar on iPad Based on Orientation

Toronto, Ontario by

If you look at this site on an iPad, the sidebar is shown or hidden based on the device's orientation. There's two parts to making this work...

Animating Rotation With jQuery – Post Thumbnail

Animating Rotation With jQuery

Toronto, Ontario by

All I wanted to do was start with an image centered on the page and then move it to its final position while shrinking it and rotating it. The only problem was the rotation part...

WordPress Tag Cloud with Post Counts – Post Thumbnail

WordPress Tag Cloud with Post Counts

Toronto, Ontario by

One of the things that has annoyed me about WordPress for a long time is the inability to display a post count next to each tag in a tag cloud. Here's the code I came up with to accomplish this.

How to Use Tweet Entities – Post Thumbnail

How to Use Tweet Entities

Toronto, Ontario by

On my sites, I'm using the URL entities to display long URLs in a shorter, more visually appealing way; hashtag entities to make hashtags clickable links; user_mention entities to make usernames clickable links; and media entities to display any linked photos right on the page...

HTML5 History API – Post Thumbnail

HTML5 History API

Toronto, Ontario by

When re-designing my music site, I wanted to make sure that visitors could bookmark and share the original URL of the page without any appended #hashes. This was perfect for HTML5's History API.