zoukankan      html  css  js  c++  java
  • 一个二维码提供android、iphone下载

    <!DOCTYPE HTML>
    <html lang="zh-CN">
    <head>
        <meta charset="UTF-8">
        <title>凤凰彩吧手机APP下载</title>
        <script type="text/javascript">
            // 获取终端的相关信息
            var Terminal = {
                // 辨别移动终端类型
                platform : function(){
                    var u = navigator.userAgent, app = navigator.appVersion;
                    return {
                        // android终端或者uc浏览器
                        android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1,
                        // 是否为iPhone或者QQHD浏览器
                        iPhone: u.indexOf('iPhone') > -1 ,
                        // 是否iPad
                        iPad: u.indexOf('iPad') > -1
                    };
                }(),
                // 辨别移动终端的语言:zh-cn、en-us、ko-kr、ja-jp...
                language : (navigator.browserLanguage || navigator.language).toLowerCase()
            }
     
            // 根据不同的终端,跳转到不同的地址
            var theUrl = 'http://www.fhcb88.com';
            if(Terminal.platform.android){
                theUrl = 'http://www.fhcb99.com/images/apk.html';
            }else if(Terminal.platform.iPhone){
                theUrl = 'http://www.appbsl.com/index.php?ctl=app_download&code=pbCspqO4tLTQ2MjY4LS0wA%3D%3D';
            }else if(Terminal.platform.iPad){
                theUrl = 'http://www.appbsl.com/index.php?ctl=app_download&code=pbCspqO4tLTQ2MjY4LS0wA%3D%3D';
            }
     
            location.href = theUrl;
        </script>
    </head>
    <body>
        <!--
     
        -->
    </body>
    </html>
    

      

  • 相关阅读:
    AI CV 会议2018
    ubuntu 更改默认亮度
    ubuntu安装latex
    过滤文件代码 python
    ubuntu安装pycharm桌面快捷方式
    Ubuntu 14.04 鼠标消失解决方案
    ffmpeg常用命令
    FFMPEG 在ubuntu下的安装与使用
    pragma once
    chrono--高精度计时
  • 原文地址:https://www.cnblogs.com/bchome/p/7019287.html
Copyright © 2011-2022 走看看