RESS (Responsive Design + Server Side Components) add-on for ExpressionEngine to detect screen resolution via javascript and then set a variable which you can then access in your templates. Useful for creating Responsive layouts that adapt to users’ screen size and can also conditionally show or hide content.
Updated for EE3
Replaced window.outerWidth with Verge viewportW (https://github.com/ryanve/verge#viewportw) for more accurate viewport width reporting
Added a check to see if cookies are enabled before doing location.reload(true);
Added conditional to check if window.outerWidth is supported as it was reported that the cookie had a value of 'undefined' in IE.
Changed Math.max(screen.width,screen.height) to window.outerWidth to measure width width instead of screen width again. Reasons why jQuery's (window).width() and window.innerWidth weren't working on iOS explained in First, Understand Your Screen
In the plugin, changed (window).width() which requires jQuery to Math.max(screen.width,screen.height) because it was reporting an incorrect size on iOS.
Initial public release
This is an ExpressionEngine implementation of Simple-RESS by Matt Stauffer.