/*
* PC/移动浏览器判断:
*/
try {
var urlhash = window.location.hash;
if (!urlhash.match("fromapp")) {
if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) {
if (getQueryString("touch") == null) {
window.location = "http://m.93job/";
}
}
}
}
catch (err) {
window.location = "http://www.93job";
}
//获取url参数
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
/*
* PC/移动浏览器判断:
*/
try {
var urlhash = window.location.hash;
if (!urlhash.match("fromapp")) {
if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i))) {
if (getQueryString("touch") == null) {
window.location = "http://m.93job/";
}
}
}
}
catch (err) {
window.location = "http://www.93job";
}
//获取url参数
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}