æä¸ç足çåº
-->
Array.prototype.contains = function (needle) {
for (i in this) {
if (this[i].indexOf(needle) > 0)
return i;
}
return -1;
}
var device_type = navigator.userAgent;//
var md = new MobileDetect(device_type);//
var os = md.os();//
var model = "";
if (os == "iOS") {//
os = md.os() + md.version("iPhone");
model = MobileDevice.getModels().join(' or ')
} else if (os == "AndroidOS") {//
os = md.os() + md.version("Android");
var sss = device_type.split(";");
var i = sss.contains("Build/");
if (i > -1) {
model = sss[i].substring(0, sss[i].indexOf("Build/"));
}
}
StaticVar.os = md.os();
StaticVar.tel = model;
StaticVar.fbl = Math.max(screen.width, screen.height) * (window.devicePixelRatio || 1);
var _mtac = {};
(function () {
var mta = document.createElement("script");
mta.src = "https://pingjs.qq.com/h5/stats.js?v2.0.2";
mta.setAttribute("name", "MTAH5");
mta.setAttribute("sid", "500620514");
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(mta, s);
})();