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.
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
Initial public release
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.
This is an ExpressionEngine implementation of Simple-RESS by Matt Stauffer.