This is a simple example of how you can combine Visualforce with Device.js to build cross-device web applications on the Force.com plaform. Device.js uses CSS3 Media Queries to dynamically determine the type of device accessing the page (e.g. phone vs tablet vs desktop) and then automatically redirects the user to the Visualforce page appropriate for the respective form factor.
More details about this sample application can be found here.