<script type="Text/javascript">$ (function () {//get information about a terminal varTerminal = { //identify mobile terminal typesplatform:function () {varU = navigator.useragent, app =navigator.appversion; return { //Android Terminal or UC browserAndroid:u.indexof ('Android') >-1|| U.indexof ('Linux') >-1, //whether it's an iphone or Qqhd browserIphone:u.indexof ('IPhone') >-1 , //whether ipadIpad:u.indexof ('IPad') >-1, //whether it is through the sweep of the OpenWechat:u.indexof ('Micromessenger') >-1, Isios9:boolean (U.match (/os [9]_\d[_\d]* like Mac OS x/i)}; }(), //identify the language of the mobile Terminal: ZH-CN, en-US, KO-KR, JA-JP ...//language: (navigator.browserlanguage | | navigator.language). toLowerCase () } $("#showinandroidbrowser"). Hide (); $("#showiniosbrowser"). Hide (); $("#ss1"). attr ("src","images/xzai1-1.jpg"); $("#ss2"). attr ("src","images/xzai2.jpg"); $("#ss3"). attr ("src","images/xzai3.jpg"); $("#showiniosbrowser"). CSS ("Height", JQuery (window). Height ()); $("#showinandroidbrowser"). CSS ("Height", JQuery (window). Height ()); $(". Swiper-container"). CSS ("Height", JQuery (window). Height () * -/ the); if(Terminal.platform.android) {$ ("#download"). attr ("src","images/android.jpg"); $("#downloadurl"). attr ("href","http://download.chinahrt.com/app/rx_v3_2_2_20151014092004_CHINAHRT.apk"); if(Terminal.platform.weChat) {//Open in Browser$("#showinandroidbrowser"). Show (); $("#showiniosbrowser"). Hide (); } } Else if(Terminal.platform.iPhone | |Terminal.platform.iPad) { $("#downloadurl"). attr ("href","itms-services://action=download-manifest&url=https://m.chinahrt.com/rongxue/iphone/rxios_1.0.34.plist "); $("#download"). attr ("src","Images/ios.png"); if(Terminal.platform.weChat) {//Open in Safari$("#showiniosbrowser"). Show (); $("#showinandroidbrowser"). Hide (); }Else{ if(Terminal.platform.isiOS9) {//tutorial on using iOS9$("#showiniosbrowser"). Hide (); $("#showinandroidbrowser"). Hide (); $(". Swiper-container"). Show (); $("#ss1"). attr ("src","images/02.jpg"); $("#ss2"). attr ("src","images/03.jpg"); $("#ss3"). attr ("src","images/04.jpg"); $(". Swiper-container"). CSS ("Height", JQuery (window). Height ()); $("#ss3"). Click (function () {$ ("#ss1"). attr ("src","images/xzai1-1.jpg"); $("#ss2"). attr ("src","images/xzai2.jpg"); $("#ss3"). attr ("src","images/xzai3.jpg"); Myswiper.swipeto (0,1,false); $("#ss3"). Unbind ("Click"); $("#download"). Show (); $(". Swiper-container"). CSS ("Height", JQuery (window). Height () * -/ the); }); $("#download"). Hide (); } } } }); </script>
iphone phone side picture dislocation correction of JS code