Thanks a lot, I'll take a look. At first glance it looks a bit clunky for the templates and it's trying to detect the mobile device via the user agent, which is probably not the best way to go about it but it's a nice little module to start hacking with and I think I might be able to take bits from responsive images and merge them into this to get it working how I'd like. Thanks, good find!
A little off topic, but I've never fully understood the hate for User Agent Detection. The way I see it its propbably accurate in over 95% of the cases. Sure their are a few devices that may send inaccurate user agents (I'm thinking embeded system devices etc) but beyond that its geeks changing their user agent for a reason. IF someone on their adroid devices changes it push a Chrome or Opera desktop user string its because they want a desktop experience. I'm a big fan of user agent detection with feature sniffing in the front end. Device says its an iphone in the user agent, check in for touch in front end and you're golden.
Yeah, that's fine if you need that information but all I want to know is what the viewport resolution is. I don't really care what they're browsing on and probably shouldn't unless I'm writing a webapp which uses mobile-specific features.
EDIT: still trying to work out what the code is doing with the mobile detection module. My reply edited for brevity.