Commit 14989b7a by agan

修改下载流程

parent 9671e364
......@@ -70,13 +70,59 @@
}
$(".down-webp-box").html(html)
$(".down-btn2").on("click", function () {
// var ua = window.navigator.userAgent.toLowerCase();
var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) {
window.location.href = 'https://tf.app6.cam/app_merge/61';
clickDownload(function (data) {
var mData = '';
if (localStorage.from == 'ftsgw') {
mData = 'iosftsB';
} else if (localStorage.from == 'vip') {
mData = 'iosftsB';
} else {
if (!data) {
mData = 'iosftsB';
} else {
mData = data.iOSChannel;
}
}
copyText(mData);
window.location.href = 'https://app.footseen.com/download.html';
// window.location.href = 'https://testflight.apple.com/join/nvxognVM';
// window.location.href = 'https://tf.app6.cam/app_merge/61';
});
} else if (/android/.test(ua)) {
window.location.href = "https://bgps2.yazhai.co/footseexyz/apk/YHXXY.apk"
clickDownload(function (data) {
var mData = '';
if (localStorage.from == 'ftsgw') {
mData = 'ftsgw';
} else if (localStorage.from == 'vip') {
mData = 'ftsBVIP';
} else {
if (!data) {
mData = 'ftsB';
} else {
mData = data.AndroidChannel;
}
}
copyText(mData);
var url = 'https://big.bgp.ourpow.com/apk/nf/Release-' + mData + '.apk';
var xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.send();
xhr.onreadystatechange = function () {
if (xhr.status == 200) {
xhr.abort();
window.location.href = url;
} else if (xhr.status == 404) {
window.location.href = 'https://big.bgp.ourpow.com/apk/nf/Release-ftsB.apk';
}
}
});
} else {
window.location.href = "https://bgps2.yazhai.co/footseexyz/apk/YHXXY.apk"
window.location.href = 'https://big.bgp.ourpow.com/apk/nf/Release-ftsB.apk';
}
})
......
<DOCTYPE html>
<html>
<head>
<script src="https://res.sharetrace.com/sharetrace.min.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-76NDGHTQCP"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VV9TEYVCWE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-76NDGHTQCP');
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-VV9TEYVCWE');
</script>
<meta charset="UTF-8">
<meta name="renderer" content="webkit">
......@@ -35,8 +35,8 @@
margin: 0 auto;
position: relative;
}
.goBackBtn{
.goBackBtn {
width: 7.4rem;
height: 1.4rem;
position: absolute;
......@@ -45,18 +45,17 @@
}
</style>
</head>
<body>
<div class="guide3bg">
<a href="javascript:history.back(-1);" class="goBackBtn"></a>
</div>
</body>
</html>
<script type="text/javascript">
window.onload=function (){
window.location.href="itms-services://?action=download-manifest&url=https://app.footseen.com/archive.plist"
}
</script>
\ No newline at end of file
window.onload = function () {
window.location.href = "itms-services://?action=download-manifest&url=https://app.footseen.com/archive.plist"
}
</script>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Footseen - APP Download Homepage</title>
<script src="https://www.footseen.com/js/jquery-3.1.1.min.js"></script>
<script src="../js/buriedPoint.js"></script>
<script>
var _url = "https://webserver.yabolive.net";
viewPage();
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VV9TEYVCWE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-VV9TEYVCWE');
</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="https://www.footseen.com/css/newIndex.css?v=202104061611111111111111"> -->
<link rel="stylesheet" href="../css/newIndex.css">
<link rel="stylesheet" href="../css/new/common.css">
<link rel="stylesheet" href="../css/new/index.css?v=202203101548">
<script src="../js/new/touch-0.2.14.min.js"></script>
<link rel="stylesheet" href="https://www.footseen.com/layer-v3.1.0/layer.css">
</head>
<body style="overflow: hidden;">
<div id="pro">
<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 id="box" class="page curpage">
<div class="page0 p">
<div class="iosDown heartbeat"></div>
<div class="only18"></div>
</div>
<div class="page1 p">
<div class="mTitle mTitle1">
<i class="mIcon"></i>
<span>我們的主播</span>
<i class="mIcon"></i>
</div>
<div class="mPhone">
<div class="phoneBorder"></div>
<div class="voiceBg">
<div class="voiceBtn muted"></div>
</div>
<div class="videoCon">
<video id="video" webkit-playsinline="true" x-webkit-airplay="true" playsinline="true"
x5-video-player-type="h5" x5-video-player-fullscreen="true"
style="width: 100%;height: 100%;object-fit: fill;z-index: -1;" autoplay="autoplay"
muted="false" loop="loop">
<source src="https://footseen.com/video/video.mp4" type="video/mp4">
</source>
</video>
</div>
</div>
<div class="btnPage2 heartbeat"></div>
<div class="bubbles">
<div class="bubble1"></div>
<div class="bubble2"></div>
<div class="bubble3"></div>
<div class="bubble4"></div>
</div>
</div>
<div class="page2 p">
<div class="mTitle mTitle2">
<i class="mIcon"></i>
<span>網紅們的推薦</span>
<i class="mIcon"></i>
</div>
<div class="downloadBtn2"></div>
<div class="recommendBox">
<div class="rVideos"></div>
</div>
</div>
</div>
</div>
<!--箭头-->
<div class="wipeUp"></div>
<script src="https://www.footseen.com/js/new/lang.js?v=20220322"></script>
<script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script>
<script>
$(function () {
var touchB = true;
var curpage = $('.curpage');
var scrollH = $('#pro').height();
parr = curpage.find('.p');
var curp = 0;
touch.on(document, 'swipeup swipedown', function (ev) {
if (!touchB) {
return;
}
if (ev.type == 'swipeup') {
if (curp == parr.length - 1) {
return;
}
touchB = false;
curp++;
if (curp == 2) {
$('.wipeUp').hide();
$('.downloadBtn2').show();
if (!$('.rVideos').html()) {
getVList();
}
} else {
$('.wipeUp').show();
$('.downloadBtn2').hide();
}
$('.curpage').animate({ top: -(scrollH * curp) + 'px' });
setTimeout(function () {
touchB = true;
}, 1000)
return;
}
if (ev.type == 'swipedown') {
if (curp == 0) {
$(".page0 ul li").css({ "opacity": "0" })
return;
}
touchB = false;
curp--;
if (curp == 2) {
$('.wipeUp').hide();
$('.downloadBtn2').show();
if (!$('.rVideos').html()) {
getVList();
}
} else {
$('.wipeUp').show();
$('.downloadBtn2').hide();
}
$('.curpage').animate({ top: -(scrollH * curp) + 'px' });
setTimeout(function () {
touchB = true;
}, 1000)
return;
}
});
touch.on($('.recommendBox'), 'swipeup swipedown', function (ev) {
touchB = false;
if ($('.recommendBox').scrollTop() == 0) {
touchB = true;
}
})
if (url_get_params().icid != undefined) {
var params = url_get_params().icid.replace(/(^\s*)|(\s*$)/g, "");
} else {
var params = '';
}
var iosData = '';
if (params != undefined && params.length > 0) {
iosData = params
} else {
iosData = 'iosftsB';
}
$(".iosDown,.downloadBtn2,.btnPage2").on("click", function () {
clickDownload(function (data) {
var mData = '';
if (!data) {
mData = iosData;
} else {
mData = data.iOSChannel
}
copyText(mData);
window.location.href = 'https://app.footseen.com/download.html';
// window.location.href = 'https://testflight.apple.com/join/nvxognVM';
// window.location.href = 'https://tf.app6.cam/app_merge/61';
});
})
$('.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';
})
$('.voiceBtn').on('click', function () {
if ($(this).hasClass('muted')) {
$('#video')[0].muted = false;
$(this).removeClass('muted')
} else {
$('#video')[0].muted = true;
$(this).addClass('muted')
}
})
function getVList() {
var vList = [
{
vSrc: "https://www.youtube.com/embed/PxRti9Bknrs",
vTime: "2021/08/22",
vName: "美麗妄娜",
},
{
vSrc: "https://www.youtube.com/embed/ygtef2thdgw",
vTime: "2021/07/16",
vName: "超直白Chaozhibai",
},
{
vSrc: "https://www.youtube.com/embed/n9QRNjZNJQ4",
vTime: "2021/06/06",
vName: "Dashen大神",
},
{
vSrc: "https://www.youtube.com/embed/Lt3fZZqNulg",
vTime: "2021/05/29",
vName: "耀耀",
},
{
vSrc: "https://www.youtube.com/embed/UNtQytZtGkM",
vTime: "2021/05/09",
vName: "秀煜 Show YoU",
}
];
//生成主播推荐列表
var temp = '';
for (var i = 0; i < vList.length; i++) {
temp += "<div class='rRow'><div class='youtubeVideos'><iframe loading='lazy' class='elementor-video-iframe' src='"
+ vList[i].vSrc
+ "' title='YouTube video player' frameborder='0' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture'"
+ " allowfullscreen></iframe>"
+ "</div>" + "<div class='rInfo'>" + "<span class='rTime'>" + vList[i].vTime + "</span>"
+ "<span class='rName'>" + vList[i].vName + "</span>" + "</div></div>"
}
$('.rVideos').html(temp);
var tOut = setTimeout(function () {
$('iframe').attr('src', '');
}, 15000)
$('iframe').on('load', function () {
clearTimeout(tOut)
})
}
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>
</body>
</html>
\ No newline at end of file
......@@ -11,8 +11,8 @@ function url_get_params() {
}
return theRequest;
}
// var icid = url_get_params().mrefer;
var icid = localStorage.mrefer;
var icid = url_get_params().mrefer;
// var icid = localStorage.mrefer;
if (!icid) {
icid = window.location.href;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment