<!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/bg1.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/btn1.png")no-repeat;
            background-size: 100% 100%;
            top: 14.6rem;
            left: 2rem;
            z-index: 3;
        }
        .btn1-hover{
            width: 5.84rem;
            height: 1.34rem;
            position: absolute;
            background: url("images/btn1Hover.png")no-repeat;
            background-size: 100% 100%;
            top: 14.6rem;
            left: 2rem;
            z-index: 2;
        }

    </style>
</head>
<body style="background: #683426;">
    <div class="bg">
        <div id="button" class="btn1"></div>
        <div class="btn1-hover"></div>
        <!--<img class="btn1" src="images/btn2.png" alt="">-->
        <!--<img class="btn1-hover" src="images/btn2Hover.png" alt="">-->
    </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()

            window.location.href ='https://itunes.apple.com/cn/app/id1339549022?mt=8';

        })
    }
</script>
</html>