<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>乐乐微店</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18702"></HEAD>
<BODY
<META name=viewport
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
乐乐微店 <A style="DISPLAY: none" id=openApp href="http://www.16161818.com/downloads/lelewd.apk">下载乐乐微店</A>
<SCRIPT type=text/javascript>
//ios判断
if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {
// 判断useragent,当前设备为ios设备
var loadDateTime = new Date();
// 设置时间阈值,在规定时间里面没有打开对应App的话,直接去App store进行下载。
window.setTimeout(function() {
var timeOutDateTime = new Date();
if (timeOutDateTime - loadDateTime < 5000) {
window.location = "https://itunes.apple.com/cn/app/hu-lu/id627370076?mt=8";
} else {
window.close();
}
},
25);
window.location = "lelewd://platformapi/startApp?name=tom&age=18";//"XXXX://XXXX"; // Android端URL Schema
}
//判断是否是android设备浏览器
else if (navigator.userAgent.match(/android/i)) {
document.getElementById("openApp").onclick = function(e) {
// 通过iframe的方式试图打开APP,如果能正常打开,会直接切换到APP,并自动阻止a标签的默认行为
// 否则打开a标签的href链接
var ifrSrc = "lelewd://platformapi/startApp?name=tom&age=18";
if (!ifrSrc) {
return;
}
var ifr = document.createElement("iframe");
ifr.src = ifrSrc;
ifr.style.display = "none";
document.body.appendChild(ifr);
setTimeout(function() {
document.body.removeChild(ifr);
}, 1000);
};
if (document.all) {
document.getElementById("openApp").click();
}
// 其它浏览器
else {
var e = document.createEvent("MouseEvents");
e.initEvent("click", true, true);
document.getElementById("openApp").dispatchEvent(e);
}
}
</SCRIPT>
</BODY></HTML>
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。