Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / fireflyReg

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • fireflyReg
  • 1
  • download.html
Find file
Normal viewHistoryPermalink
download.html 1.53 KB
Newer Older
libai's avatar
测试
8e24e39a
 
libai committed a year ago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-131178433-1"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());

        gtag('config', 'UA-131178433-1');
    </script>

    <meta charset="UTF-8">
    <title>軟體下載</title>
</head>
<style>
    *{
        margin: 0;
        padding: 0;
    }
    .weiphone{
        width: 100%
    }
</style>
<body class="weixin">

</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script>
    window.onload = function(){
        if(isWeiXin()){
            alert(1)
            var p = document.getElementsByTagName('p');
            p[0].innerHTML = window.navigator.userAgent;
        }
    }
    function isWeiXin(){
        var ua = window.navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i) == 'micromessenger'){
            var html1=[];
            html1+='<img class="tips"><img class="weiphone" src=images/weiphone.png></div>';
            $(".weixin").html(html1);
        }else{
            var ua = navigator.userAgent.toLowerCase();
            if (/iphone|ipad|ipod/.test(ua)) {
                window.location.href="https://itunes.apple.com/cn/app/id1339549022?mt=8";
            } else if (/android/.test(ua)) {
                window.location.href="https://play.google.com/store/apps/details?id=com.happy.live";
            }
        }
    }
</script>
</html>