var onepage=true;//is used to judge the information of the first page login in Statichtml.js
var _mobileurl = "http://www.m.90tuku.com";//Mobile phone users to visit the site through the hungry time jump
Checkmobiledevice ();//Call Monitoring code
function IsMobileDevice () {
Return (Navigator.userAgent.match (/android/i) | | navigator.userAgent.indexOf (' iPhone ') >-1 | | Navigator.userAgent.indexOf (' IPod ') >-1 | | Navigator.userAgent.indexOf (' IPad ') >-1);
}
function Isfromwap () {
Return (Location.href.indexOf ("From=wap") >-1);
}
function Checkmobiledevice () {
var MobileDevice = IsMobileDevice ();//Check if it's a handheld device.
if (MobileDevice) {
var formwap = Isfromwap ();
if (fromwap!= "Fromwap") {//Check whether it is sent on the phone to log in to the PC URL
if (!formwap) {
Location.href = _mobileurl;
return false;
}
//}
}
}
Web home page Set the following code to determine the user is using what device login?