Right now, if you go to my web site on a mobile device, you'll be redirected to a subdomain thanks to the following code. Which checks to see if your screens width is below 800 or if you're on an iphone, ipad, or ipod.
One thing I'd like to be able to do is allow the visitor to view the full site if they want to. How do I allow them to bypass this should they choose to do so?
<script type="text/javascript">
<!--
if (screen.width <= 800) {
document.location = "http://m.site.ca";
}
//-->
</script>
<script type="text/javascript">
// <![CDATA[
if ((navigator.userAgent.indexOf('iPhone') != -1) ||
(navigator.userAgent.indexOf('iPod') != -1) ||
(navigator.userAgent.indexOf('iPad') != -1)) {
document.location = "http://m.site.ca";
} // ]]>
</script>