The javascript below will work with any site. Feel free to put this snippet on
the homepage of your desktop site, and it will redirect users to your Qfuse site.
<script language="javascript">
var redirectagent = navigator.userAgent.toLowerCase();
var redirect_devices = ['vnd.wap.xhtml+xml', 'sony', 'symbian',
'nokia', 'samsung', 'mobile', 'windows ce', 'epoc', 'opera mini',
'nitro', 'j2me', 'midp-', 'cldc-', 'netfront', 'mot', 'up.browser',
'up.link', 'audiovox', 'blackberry', 'ericsson', 'panasonic',
'philips', 'sanyo', 'sharp', 'sie-', 'portalmmm', 'blazer', 'avantgo',
'danger', 'palm', 'series60', 'palmsource', 'pocketpc', 'smartphone',
'rover', 'ipaq', 'au-mic', 'alcatel', 'ericy', 'vodafone', 'wap1',
'wap2', 'teleca', 'playstation', 'lge', 'lg-', 'iphone', 'android',
'htc', 'dream', 'webos', 'bolt', 'nintendo'];
for (var i in redirect_devices) {
if (redirectagent.indexOf(redirect_devices[i]) != -1) {
location.replace("http://qfuse.com/s/[username]");
}
}
</script>
Simply replace [username] with your Qfuse username.
Note: if you want to allow users the ability to select a
"view desktop site" option from your Qfuse mobile site, the above will not work; a
server-side script is necessary to correctly implement that functionality to avoid
a redirect loop. Contact us for technical details.