Created
November 24, 2011 13:56
-
-
Save pnegri/1391405 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
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