demo4
In standard (non-mobile) mode
WWW.mrlacey.net/
M.mrlacey.net/
Logic for allowing the user to view either then mobile or standard version of a site, based on hostname, browser and saved preference.
- If the user has a desktop browser, has requested a desktop page, and hasn't previously expressed a desire to have the mobile experience on this browser, give them that desktop page. If they have, redirect them to the corresponding mobile page.
- If the user has a mobile browser, has requested a mobile page, and hasn't previously expressed a desire to have the desktop experience on this browser, give them that mobile page. If they have, redirect them to the corresponding desktop page.
- If the user has a desktop browser, has requested a mobile page, and hasn't previously expressed a desire to have the mobile experience on this browser, give them the desktop interstitial to confirm their desire.
- If the user has a mobile browser, has requested a desktop page, and hasn't previously expressed a desire to have the desktop experience on this browser, give them the mobile interstitial to confirm their desire.
- If the user has either browser, is on either page, but wants to switch to the other experience, let them click a link that explicitly takes them there (and register that desire).
- Ensure that users can't get into an infinite redirect loop between the two sites.
Logic courtesy of http://mobiforge.com/designing/story/a-very-modern-mobile-switching-algorithm-part-ii