<!DOCTYPE html>
<html lang="en">

<head>
    <script src="https://res.sharetrace.com/sharetrace.min.js"></script>
    <script src="https://www.footseen.com/js/jquery-3.1.1.min.js"></script>
	 <script>
		 var _url= "https://webserver.yabolive.net"
		 $.ajax({
			 url: _url + "/user/checkIpIsChina.html",
			 success: function (res) {
				 var result = JSON.parse(res);
				 if(result.code === 1){
					 if(result.checkResult){
						 window.location.href = 'content.html'
					 }
				 }
			 }
		 })
    </script>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="foot fetish,foot worship,foot tickle,Foot Seen,Video streaming">
    <meta name="description" content="">
    <meta content="telephone=no" name="format-detection">
    <meta name="wap-font-scale" content="no">
    <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">
    <script src="https://www.footseen.com/js/fsize.js"></script>
    <link rel="stylesheet" href="https://www.footseen.com/css/base2.css">
    <link rel="stylesheet" href="../css/iosNew.css">
    <link rel="stylesheet" href="https://www.footseen.com/layer-v3.1.0/layer.css">
    <title>Footseen</title>
</head>

<body>
    <div class="main">
        <span class="langTitle"><img src="https://www.footseen.com/img/down2.png" />
            <font></font>
        </span>
        <div class="langList">
            <p data-lang="2">繁體中文</p>
            <p data-lang="1">English</p>
            <p data-lang="7">العربية</p>
        </div>
        <a class="topUp"></a>
        <div class="iosDown1 heartbeat"></div>
        <a href="./guide/guide1.html" class="guide1">安裝教程></a>
        <div class="iosDown2"></div>
        <a href="./guide/guide2.html" class="guide2">安裝教程></a>
    </div>

</body>
<script src="https://www.footseen.com/js/new/langnew.js"></script>
<script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script>

<script type="text/javascript">
    var data = url_get_params();
    var params = {
        icid: data.icid,
    }
    ShareTrace.init({
        appkey: "cd3ba48d0699c7fa", // 此值必填
        param: JSON.stringify(params),
        success: function () {
            console.log("init success...")
        },
        error: function (msg) {
            console.log(msg)
        }
    });
    console.log(params);
    $('.iosDown1').on('click', function () {
        copyText(data.icid);
        // window.location.href = 'https://tf.kekouyun.vip/app/Footseen';
        window.location.href = 'http://www.app9.pw/app_merge/163';
    })
    // $(".iosDown1").on("click", function () {
    //     setTimeout(function () {
    //         //		  	window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400';
    //         ShareTrace.download();
    //     }, 500)
    //     // ga('send', 'event', {
    //     //     eventCategory: 'ios',
    //     //     eventAction: 'click',
    //     //     eventLabel: 'ios'
    //     // });
    //     // ga('clientTracker.send', 'event', {
    //     //     eventCategory: 'ios',
    //     //     eventAction: 'click',
    //     //     eventLabel: 'ios'
    //     // });
    //     // gtag('event', 'conversion', {
    //     //     'send_to': 'AW-678006312/kqI0CJCE-7gBEKicpsMC',
    //     //     'event_callback': gtag_report_conversion()
    //     // });
    // })
    // function gtag_report_conversion() {
    //     setTimeout(function () {
    //         //		  	window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400';
    //         ShareTrace.download();
    //     }, 500)
    // }
    $('.topUp').on('click', function () {
        window.location.href = 'https://www.footseen.com/footseen/phonepay/applepay.html?lang=' + sessionStorage.lang + '&gofrom=web' + '&gofrom=web&cidStr=h5_footseengw';
    })

    function url_get_params() {
        var url = location.href;
        var theRequest = new Object();
        if (url.indexOf("?") != -1) {
            var str = url.substr(url.indexOf("?") + 1);
            strs = str.split("&");
            for (var i = 0; i < strs.length; i++) {
                theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
            }
        }
        return theRequest;
    }
    //複製到剪切板
    function copyText(text) {
        var textarea = document.createElement("textarea");
        var currentFocus = document.activeElement;
        document.body.appendChild(textarea);
        textarea.value = text;
        textarea.focus();
        if (textarea.setSelectionRange)
            textarea.setSelectionRange(0, textarea.value.length);
        else
            textarea.select();
        try {
            var flag = document.execCommand("copy");
        } catch (eo) {
            var flag = false;
        }
        document.body.removeChild(textarea);
        currentFocus.focus();
        return flag;
    }
</script>

</html>