device.js

a starting point for doing semantic, media query-based device detection without needing special server-side configuration, saving the time and effort required to do user agent string parsing.

project code and docs are in this github repository.

a sample of it in action.