This Blog Goes Mobile

Well, it goes iPhone that's for sure.

For a while now I've been using http://m.mikeriversdale.co.nz using MoFuse to repurpose the blog for iPhones. This was a manual process however and you had to know to go there. I have started to put in code to automatically take you there if you're visiting from your iPhone - here's the key bit of code:

<script type='text/javascript'>
if ((navigator.userAgent.indexOf('iPhone') !=-1) || (navigator.userAgent.indexOf('iPod') !=-1)) {
document.location = "http://iphone.yourdomain.com/";
}
</script>


Let me know how it goes and by all means pass on problems.
Note: For now the auto re-direct only works on the blog homepage as I try and work out the MoFuse way of creating URLs for articles.

Thank you, as you were ....

Comments

Popular articles

The Difference Between One Million And One Billion

Best Reykjavik Fast Food

Reflections In Blue

Profile Mike

Make Your Public Event Calendar Usable To All