Came across this gem while looking through the code of a random site:
<script type="text/javascript">
var mobile =
(/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if (mobile) {
window.location = "mobile_version/index_mobile.php";
}
</script>
While simple solutions are often the best, I’m not so sure about this one.
Posted on Monday, April 13, 2015 10:31 PM |