May 15, 2012

May 14, 2012

Reproducing Apple’s feature switcher with jQuery and jQuery UI

Recently at work I was given the task of producing something similar to the feature switcher (like this one) that Apple is using on some of their product pages.

After a little bit of digging, I realized that I could easily build what was required by using jQuery UI’s tab functionality. Here’s how to do it.

HTML

The first thing we’ll need to do is build the HTML for the switcher. It’s pretty straightforward. The important thing to remember is to use unique IDs for each div that contains each example image and caption so they can be linked to later.

CSS

Next, we’ll need some CSS to style the buttons below the images as well as to hide the images that are supposed to be hidden.

Javascript

Finally, we need to add the javascript call to trigger jQuery UI’s tabs on our containing div:

Putting it all together

Here’s all three parts put together:

And here’s the finished switcher in action.

Feedback

If you have any questions or run into any problems, please don’t hesitate to contact me.

April 30, 2012

It’s Time for an App Store Reset »

Macdrifter:

I would appreciate a purifying rain to cleanse the App Store of cruft. If Apple pressed a rest button and removed all apps that have not been updated in the past 12 months I would buy more. I would worry less about abandon-ware but it would also be easier to indentify the cream of the crop apps.

Yes, please.

April 17, 2012

Portland panorama

Portland panorama

A panorama of downtown Portland taken from the southeast corner of the Morrison Bridge. Shot using the Pano iPhone app.

April 16, 2012

Site update - 2012-04-16

High resolution images are now being served up to devices with retina displays using retina.js. If you’re using a new iPad or an iPhone 4 or 4S, you’ll see the high-res versions of the images on the site.