<!--app Downloads--
<style>
. download-con{position:fixed;left:0;bottom:0;}
. Download-con img{width:100%;d Isplay:block}
. downapp{position:relative}
. nowopen{right:0;top:0;width:25%;height:100%}
. downclosed{left:0;top:0;width:8%;height:100%;}
</style>
<div class= "Download-con" id= "Div_openapp" >
<div class= "Downapp" >
<a href= "javascript:;" class= "downclosed abs" ></a>
<a id= "Openapp" href= "http://www.m6go.com/app/" class= "Nowopen abs" ></a>
</div>
</div>
<script language= "JavaScript" >
$ ('. downclosed '). Click (function () {
$ ('. Download-con '). Hide ();
});
$ ('. Nowopen '). Click (function () {
An IFRAME tries to open the app and, if it opens normally, switches directly to the app and automatically blocks the default behavior of the a tag.
Otherwise open the HREF link of the A tag
var IFR = document.createelement (' iframe ');
var u = navigator.useragent, app = Navigator.appversion;
var isandroid = u.indexof (' Android ') >-1 | | U.indexof (' Linux ') >-1; Android Terminal or UC Browser
var Isios =!! U.match (/\ (i[^;] +;( U;)? Cpu.+mac OS x/); iOS terminal
var src= "";
if (isandroid) {
src = "m6gocom://";
} else if (Isios) {
If it's an iOS system, point to itunes or go to the Unified app download page
$ ("#openApp"). attr ("href", "https://itunes.apple.com/cn/app/qq-2011/id681580740?mt=8");
src = "mailegou://";
}
IFR.SRC = src;
Ifr.style.display = ' None ';
Document.body.appendChild (IFR);
Window.settimeout (function () {
Document.body.removeChild (IFR);
}, 3000)
});
</script>
WebApp Launch mobile App