<!DOCTYPE html>
<html lang="en">
<head>
    <script type="text/javascript" src="//res.cdn.openinstall.io/openinstall.js"></script>
	<!-- Global site tag (gtag.js) - Google Analytics -->
	<script async src="https://www.googletagmanager.com/gtag/js?id=UA-176823854-5"></script>
	<script>
	  window.dataLayer = window.dataLayer || [];
	  function gtag(){dataLayer.push(arguments);}
	  gtag('js', new Date());
	
	  gtag('config', 'UA-176823854-5');
	</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/swiper.min.css">
    <link rel="stylesheet" href="https://www.footseen.com/css/base2.css">
    <link rel="stylesheet" href="https://www.footseen.com/css/inedx.css">
    <link rel="stylesheet" href="https://www.footseen.com/layer-v3.1.0/layer.css">
    <title>Foot Seen</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>
		<img src="https://www.footseen.com/img/logo.png" class="logo" />
		<a class="topUp"></a>
		<div id="iosDown" class="iosDown heartbeat"></div>
		<img src="https://www.footseen.com/img/live.png" class="live" />
		<div class="swiper-container hide">
			<div class="swiper-wrapper">
				<div class="swiper-slide">
					<img src="https://www.footseen.com/img/img1_cn.png"/>
				</div>
				<div class="swiper-slide">
					<img src="https://www.footseen.com/img/img2_cn.png"/>
				</div>
				<div class="swiper-slide">
					<img src="https://www.footseen.com/img/img3_cn.png"/>
				</div>
			</div>
			<div class="swiper-pagination"></div>
		</div>
	</div>
</body>
<script src="https://www.footseen.com/js/jquery-3.1.1.min.js"></script>
<script src="https://www.footseen.com/js/swiper.min.js"></script>
<script type="text/javascript" src="https://www.footseen.com/js/langIos.js?v=202003301517" ></script>
<script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script>

<script type="text/javascript">

			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;
		}
			
		if( url_get_params().icid!=undefined){
			var params = url_get_params().icid.replace(/(^\s*)|(\s*$)/g, "");
		} else {
			var params = '';
		}
		
		var iosData = '';
		var andoridData = '';
		if(params != undefined && params.length>0){		
			//定义设备号
			if(params.substring(0,3) == 'ios'){
				iosData = params;
				andoridData = params.substring(3,params.length);
			} else {
				iosData = 'ios'+params;
				andoridData = params;
			}
		} else {
			iosData = 'iosfts';
			andoridData = 'fts';
		}
		
		console.log(iosData,andoridData)
		var ua = window.navigator.userAgent.toLowerCase();
		if(/iphone|ipad|ipod/.test(ua)){
			var data = {
				icid:iosData
			}
			if(iosData.indexOf('iosftscps')>-1){
				new OpenInstall({
			      appKey: "dzxj4c",
			      preferWakeup: true,
			      mask: function () {	
			          return '<div id="openinstall_shadow" class="shadow-img"><img src="images/share-img.png" alt=""></div>'
			      },
			      onready: function () {
			          var m = this, button = document.getElementById("iosDown");
			          m.schemeWakeup();
								button.onclick = function () {
						              m.wakeupOrInstall();
						              return false;
						          }
									return false;
					      }
				}, data);
			} else {				
				new OpenInstall({
			      appKey: "dzxj4c",
			      preferWakeup: true,
			      mask: function () {	
			          return '<div id="openinstall_shadow" class="shadow-img"><img src="images/share-img.png" alt=""></div>'
			      },
			      onready: function () {
			          var m = this, button = document.getElementById("iosDown");
			          m.schemeWakeup();
					setTimeout(function () {
			              m.wakeupOrInstall();
			          },2000)
					button.onclick = function () {
			              m.wakeupOrInstall();
			              return false;
			          }
						return false;
			      }
				}, data);
			}
		} else {
			setTimeout(function(){
				toDown();
			
				$('.iosDown').on('click',function(){
					toDown();
				})
			},800)
		}
	
		function toDown(){
			var obj = {};
			
			for(var i=1;i<=100;i++){
				obj['lala'+add0(i)] = 'https://zhibocdn.yabolive.net/apk/nf/footseen'+add0(i)+'.apk';
				if(i<=20){
					obj['ftscps'+i] = 'https://zhibocdn.yazhaiyabo.com/apk/nf/ftscps'+i+'.apk';
				}
			}
			console.log(obj)
			if(obj[andoridData]!=undefined){
				window.location.href = obj[andoridData]
			} else {
				window.location.href = 'https://www.footseen.com/apk';
			}
		}
	$('.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 add0(m) {
			return m < 10 ? '0' + m + "" : m + ""
		}
</script>
</html>