<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-131142566-1"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());

        gtag('config', 'UA-131142566-1');
    </script>
    <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-131142566-1', 'auto');
        ga('send', 'pageview');
    </script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta content="telephone=no" name="format-detection">
    <meta name="wap-font-scale" content="no">
    <title>1V1 視訊邀請</title>
    <script src="lib/fsize.js"></script>
    <link rel="stylesheet" href="css/base.css">
    <style>
        .bg {
            background: url("images/bg2.png") no-repeat;
            background-size: 100% 100%;
            height: 17.78rem;
            width: 10rem;
            margin: 0 auto;
            position: relative;
        }

        .btn1 {
            width: 5.84rem;
            height: 1.34rem;
            position: absolute;
            background: url("images/btn2.png")no-repeat;
            background-size: 100% 100%;
            top: 10.6rem;
            left: 0.8rem;
            z-index: 2;
        }

        .btn1-hover {
            width: 5.84rem;
            height: 1.34rem;
            position: absolute;
            background: url("images/btn2Hover.png")no-repeat;
            background-size: 100% 100%;
            top: 10.6rem;
            left: 0.8rem;
            z-index: 1;
        }

        .phone-bg {
            width: 7.42rem;
            height: 13.09rem;
            position: absolute;
            bottom: 0rem;
            background: url("images/phone.png") no-repeat;
            background-size: 100% 100%;
            left: 1.2rem;
        }

        .tips {
            position: absolute;
            background: rgba(0, 0, 0, 0.5);
            z-index: 500;
            display: none;
            height: 100vh;
            width: 10rem;
            margin: 0 auto;
            top: 0;
        }

        .tips img {
            width: 10rem;
            margin: 0 auto;
        }
    </style>
</head>
<body style="background:rgba(40,13,71,1);">
<div class="bg">
    <div class="phone-bg">
        <div id="button" class="btn1"></div>
        <div class="btn1-hover"></div>
        <!--<img id="button" class="btn1" src="images/btn2.png" alt="">-->
        <!--<img class="btn1-hover" src="images/btn2Hover.png" alt="">-->
    </div>
    <!--<img class="phone-bg" src="images/phone.png" alt="">-->


</div>
<div class="tips"><img class="weiphone" src=images/Safari2.png?v='20181106'></div>
</body>
<script src="lib/jquery-3.1.1.min.js"></script>
<script>
    ga('send', 'event', 'button', 'touchend', 'download-more');
    var ua = navigator.userAgent.toLowerCase();
    var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
    if (/android/.test(ua)) {

        $(".btn1").on("touchstart", function () {
            $(".btn1").hide()
        })
        $(".btn1").on("touchmove", function () {
            $(".btn1").show()
        })
        $(".btn1").on("touchcancel", function () {
            $(".btn1").show()
        })
        $(".btn1").on("touchend", function () {
            $(".btn1").show()
//            ga('send', 'event', 'button', 'touchend', 'download-more');
            window.location.href = 'http://www.firefly.live/yhc.apk';

        })
        if (userAgent.indexOf("Line") > -1) {
            $(".tips").show()
        }
        if (ua.match(/MicroMessenger/i) == 'micromessenger') {
            $(".tips").show()
        }
    } else if (/iphone|ipad|ipod/.test(ua)) {

        $(".btn1").on("touchstart", function () {
            $(".btn1").hide()
        })
        $(".btn1").on("touchmove", function () {
            $(".btn1").show()
        })
        $(".btn1").on("touchcancel", function () {
            $(".btn1").show()
        })
        $(".btn1").on("touchend", function () {
            $(".btn1").show()
//            ga('send', 'event', 'button', 'click', 'download-more');
            window.location.href ='https://itunes.apple.com/cn/app/id1339549022?mt=8';

        })
    }


</script>
</html>