iphone phone side picture dislocation correction of JS code

Source: Internet
Author: User

<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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.