config

Experimental project

This is a sandbox project, which contains experimental code for developer use only.

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).

Project information