From d8f8d09a57a9995a2acf8579cb832e02fa8b37de Mon Sep 17 00:00:00 2001 From: libai <libai@yazhai.co> Date: Thu, 24 Nov 2022 17:00:37 +0800 Subject: [PATCH] 测试 --- mTest/css/base.css | 1 + mTest/index.html | 4 ++-- mTest/index.js | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------- mTest/lib/default.js | 19 ++++++++++--------- mTest/room/liveRoom.html | 9 +++++++-- room/images/layer-ios.png | Bin 0 -> 133581 bytes 6 files changed, 70 insertions(+), 59 deletions(-) create mode 100644 room/images/layer-ios.png diff --git a/mTest/css/base.css b/mTest/css/base.css index a4ada8a..f0d13c8 100644 --- a/mTest/css/base.css +++ b/mTest/css/base.css @@ -78,6 +78,7 @@ input[type=number]::-webkit-outer-spin-button { bottom: 0; left: 0; z-index: 650; + display: none; } .add-button-close{ width: 0.8rem; diff --git a/mTest/index.html b/mTest/index.html index 4e2d667..e8e649e 100644 --- a/mTest/index.html +++ b/mTest/index.html @@ -32,7 +32,7 @@ <meta name="keywords" content="footseen,foot live,激情美女視訊,激情美女影片,腳控足控,絲足,裸足,美腿,絲襪,黑絲,台灣UU聊天室,swag,視訊聊天室,live173,uplive,vklive,nonolive,foot rub,foot fetish"> <meta name="description" content="footseen,腳控足控天堂,絲足美腿視訊影片,台灣足控第一高效約會軟體,免費影片立即觀看,在線美女激情互動,成人視訊線上體驗,徹底釋放你的慾望。"> <script src="lib/fsize.js"></script> - <link rel="stylesheet" href="css/base.css?v=2022112401"> + <link rel="stylesheet" href="css/base.css?v=2022112402"> <link rel="stylesheet" href="css/layer.css"> <link rel="stylesheet" href="css/index.css?v=2022112313"> <link rel="stylesheet" href="css/login.css?v=2022112313"> @@ -397,7 +397,7 @@ $(function(){ var dHeight=$(document).height() $(".right-nav").css("height",$(document).height()) var noUser=false; - localStorage.canvasCode="phone" + //用户是否登录 diff --git a/mTest/index.js b/mTest/index.js index 1aac9d6..1a37112 100644 --- a/mTest/index.js +++ b/mTest/index.js @@ -15,53 +15,57 @@ const addBtn = document.querySelector('.add-button'); addBtn.style.display = 'none'; window.addEventListener('beforeinstallprompt', (e) => { - //安卓观看3个直播间 - if(sessionStorage.lookNum>=3){ - sessionStorage.lookNum=0 - setTimeout(() => { - e.preventDefault(); - deferredPrompt = e; - addBtn.style.display = 'block'; - addBtn.addEventListener('click', () => { - addBtn.style.display = 'none'; - deferredPrompt.prompt(); - deferredPrompt.userChoice.then((choiceResult) => { - if (choiceResult.outcome === 'accepted') { - console.log('User accepted the A2HS prompt'); - } else { - console.log('User dismissed the A2HS prompt'); - } - deferredPrompt = null; - }); - }); - }, 3000); - } - //安卓首页停留20秒 - if(sessionStorage.time==undefined){ - setTimeout(function() { - var bbb = location.href; - if (bbb.indexOf("liveRoom") > -1){ - return; - } - sessionStorage.time=1 - e.preventDefault(); - deferredPrompt = e; - addBtn.style.display = 'block'; - addBtn.addEventListener('click', () => { - addBtn.style.display = 'none'; - deferredPrompt.prompt(); - deferredPrompt.userChoice.then((choiceResult) => { - if (choiceResult.outcome === 'accepted') { - console.log('User accepted the A2HS prompt'); - } else { - console.log('User dismissed the A2HS prompt'); - } - deferredPrompt = null; + var ua = window.navigator.userAgent.toLowerCase(); + if (/android/.test(ua)) { + //安卓观看3个直播间 + if(sessionStorage.lookNum>=3){ + sessionStorage.lookNum=0 + setTimeout(() => { + e.preventDefault(); + deferredPrompt = e; + addBtn.style.display = 'block'; + addBtn.addEventListener('click', () => { + addBtn.style.display = 'none'; + deferredPrompt.prompt(); + deferredPrompt.userChoice.then((choiceResult) => { + if (choiceResult.outcome === 'accepted') { + console.log('User accepted the A2HS prompt'); + } else { + console.log('User dismissed the A2HS prompt'); + } + deferredPrompt = null; + }); }); - }); - }, 20000); - + }, 3000); + + } + //安卓首页停留20秒 + if(sessionStorage.time==undefined){ + setTimeout(function() { + var bbb = location.href; + if (bbb.indexOf("liveRoom") > -1){ + return; + } + sessionStorage.time=1 + e.preventDefault(); + deferredPrompt = e; + addBtn.style.display = 'block'; + addBtn.addEventListener('click', () => { + addBtn.style.display = 'none'; + deferredPrompt.prompt(); + deferredPrompt.userChoice.then((choiceResult) => { + if (choiceResult.outcome === 'accepted') { + console.log('User accepted the A2HS prompt'); + } else { + console.log('User dismissed the A2HS prompt'); + } + deferredPrompt = null; + }); + }); + }, 20000); + + } } - }); + diff --git a/mTest/lib/default.js b/mTest/lib/default.js index fa12609..aea07c8 100644 --- a/mTest/lib/default.js +++ b/mTest/lib/default.js @@ -6,7 +6,7 @@ $ip = "https://cpapi.footseen.xyz/"; $ip2="https://webserver.yabolive.net" $ws = "wss://websocket.footseen.xyz:12308/" - // checkIp() + checkIp() } else{ $ip='http://cpapitest.yabolive.net:81/' @@ -77,14 +77,15 @@ var mySound=data.sound; async: false, success: function (res) { var result = JSON.parse(res); - if (result.code === 1) { - if (result.checkResult) { - window.location.hash = "no-back"; - window.location.hash = "Again-No-back-button"; - window.onhashchange = function () { window.location.hash = "no-back"; } - window.location.href = 'https://www.footseen.xyz/content.html?ip=' + result.ip; - } - } + localStorage.canvasCode=window.navigator.userAgent.toLowerCase()+result.ip; + // if (result.code === 1) { + // if (result.checkResult) { + // window.location.hash = "no-back"; + // window.location.hash = "Again-No-back-button"; + // window.onhashchange = function () { window.location.hash = "no-back"; } + // window.location.href = 'https://www.footseen.xyz/content.html?ip=' + result.ip; + // } + // } } }) } diff --git a/mTest/room/liveRoom.html b/mTest/room/liveRoom.html index bc3a503..3ba689d 100644 --- a/mTest/room/liveRoom.html +++ b/mTest/room/liveRoom.html @@ -30,7 +30,7 @@ <meta name="keywords" content="footseen,foot live,激情美女視訊,激情美女影片,腳控足控,絲足,裸足,美腿,絲襪,黑絲,台灣UU聊天室,swag,視訊聊天室,live173,uplive,vklive,nonolive,foot rub,foot fetish"> <meta name="description" content="footseen,腳控足控天堂,絲足美腿視訊影片,台灣足控第一高效約會軟體,免費影片立即觀看,在線美女激情互動,成人視訊線上體驗,徹底釋放你的慾望。"> <script src="../lib/fsize.js"></script> - <link rel="stylesheet" href="../css/base.css?v=2022112401"> + <link rel="stylesheet" href="../css/base.css?v=2022112402"> <link rel="stylesheet" href="../css/layer.css"> <link rel="stylesheet" href="css/liveRoom.css?v=2022112216"> <link rel="stylesheet" href="../css/login.css?v=2022111808"> @@ -766,7 +766,12 @@ $(function(){ $(".play-icon").hide() }) $("#myVideo").on("canplay",function(){ - + var ua = window.navigator.userAgent.toLowerCase(); + if (/iphone|ipad|ipod/.test(ua)) { + if(sessionStorage.lookNum>=3){ + + } + } clearInterval(iosT) $(".play-icon").hide() setTimeout(function() { diff --git a/room/images/layer-ios.png b/room/images/layer-ios.png new file mode 100644 index 0000000..279ddd2 Binary files /dev/null and b/room/images/layer-ios.png differ -- libgit2 0.25.0