newmediamonitoring/polls/templates/polls/app.html

41 lines
1.4 KiB
HTML

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>政务新媒体</title>
<meta name="viewport" content="width=device-width">
<script>
var appVersion = window.navigator.appVersion,
isAndroid = (/android/i).test(appVersion),
isIOS = (/iphone|ipad/i).test(appVersion),
isWinPhone = (/windows/i).test(appVersion);
function init() {
var type = "";
var code = window.location.search.substr(1);
var ua = window.navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i) == 'micromessenger'){
return true;
}else{
if (isAndroid) {
type = "android";
setTimeout(function() {
window.location = "https://pom.gsdwl.com/polls/app/download/";
}, 30);
}
if (isIOS) {
type = "ios";
setTimeout(function() {
window.location = "itms-services://?action=download-manifest&url=https://www.gsdj.gov.cn/apk/gsdjapp.plist";
}, 30);
}
return false;
}
}
</script>
</head>
<body onload="init();" style="background:url(https://pom.gsdwl.com/static/image/app-link.png) no-repeat;background-size:100%;">
</body></html>