Skip to content

Instantly share code, notes, and snippets.

@pnegri
Created November 24, 2011 13:56
Show Gist options
  • Save pnegri/1391405 to your computer and use it in GitHub Desktop.
Save pnegri/1391405 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
window.addEvent('domready', function() {
if (Cookie.read('ignoreMobile') != 1) {
if( navigator.userAgent.match(/Android/i) ||
navigator.userAgent.match(/webOS/i) ||
navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPod/i)
){
window.location = 'http://www.campograndenews.com.br/m/'
}
}
});
</script>
@pnegri
Copy link
Author

pnegri commented Nov 24, 2011

<script language="text/javascript"> window.addEvent('domready', function() { if (Cookie.read('ignoreMobile') != 1) { if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) ){ window.location = 'http://www.campograndenews.com.br/m/' } } }); </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment