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


        gtag('config', 'G-JTS178CCR3', {
            page_path: location.pathname,
            template_id: 'share_template_chipshub_default'
        });
    </script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta charset="UTF-8"/>
    <meta property="og:type" content="website"/>
    <link rel="shortcut icon" href="https://assets.agent61.com/images/share/favicon-m-240806.ico" type="image/x-icon"/>
    <style>
        * {
            margin: 0 auto;
            padding: 0 auto;
            -webkit-tap-highlight-color: transparent;
            -webkit-overflow-scrolling: touch;
        }

        ::-webkit-scrollbar {
            width: 0;
            opacity: 1;
        }

        .main {
            width: 100%;
            height: 100%;
            position: fixed;
            left: 0;
            top: 0;
            margin: 0 auto;

            background-image: url(https://assets.agent61.com/images/share/master-share-page-20240806.jpg);
            background-position: center center;
            background-size: cover;
        }
    </style>
</head>

<body style="background: #be128b;width: 100%; height:100%" onload="redirect1()">
    <a class="main" style="padding-top:0;cursor: pointer;" href="javascript:redirect1()" onclick="add_down_data()"></a>

    <script type="text/javascript">

        function sendGtagEvent(action) {
            console.log('sendGtagEvent', action);

            const category = 'button';
            const label = 'myButton';
            const value = 1;

            gtag('event', action, {
                event_category: category,
                event_label: label,
                value: value,

                template_id: 'share_template_chipshub_default',
                page_hostname: location.hostname
            });
        }

        function redirect1() {
            console.log("apk download");
            sendGtagEvent("tcp_share_page_download")
            window.location.href = "https:\/\/d2g5znmcxmteg6.cloudfront.net\/cg\/chipshub\/TeenPattiMaster.apk?ch=110zwcedfmiayjoo9srwk3we\u0026code=y10zwcedfmiacah82pidhryi";
        }

        !(function (doc, win) {
            var docEle = doc.documentElement,
                event = "onorientationchange" in window ? "orientationchange" : "resize",
                fn = function () {
                    var width = document.body.clientWidth;
                    width && (docEle.style.fontSize = (width / 32) + "px");
                };

            win.addEventListener(event, fn, false);
            doc.addEventListener("DOMContentLoaded", fn, false);

        }(document, window));

        function add_down_data() {
            console.log("apk download");
            sendGtagEvent("tcp_share_page_download")
            window.location.href = "https:\/\/d2g5znmcxmteg6.cloudfront.net\/cg\/chipshub\/TeenPattiMaster.apk?ch=110zwcedfmiayjoo9srwk3we\u0026code=y10zwcedfmiacah82pidhryi";
        }

        let timer = null;

        document.addEventListener("visibilitychange", function() {
            if (timer) {
                clearTimeout(timer);
            }
        });


    </script>
</body>

</html>
