let UA = navigator.userAgent.toLowerCase(); if(window.location.href.indexOf('m.birdwork.com')==-1){ if ((UA.indexOf('iphone') != -1 || UA.indexOf('mobile') != -1 || UA.indexOf('android') != -1 || UA.indexOf('ipad') != -1 || UA.indexOf('windows ce') != -1 || UA.indexOf('ipod') != -1) && UA.indexOf('ipod') == -1) { window.location ='https://m.birdwork.com' } }