Browser Screen Dimensions

Categories

Component ID

1810196

Component name

Browser Screen Dimensions

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

A very simple module that allows you to set the theme based on the width of the users browser window.

The 1st time a user visits your site, the module will return a small JavaScript file (degrades gracefully if JS is disabled) that sends the browser's screen dimensions to the module and then redirects the browser to the original URL.

Three theme options are provided for small (340px, iPhone etc.), medium (less then 800px, cheap tablets) and large (iPads and everything else).