Commit 87e94add by libai

测试

parent bfc70807
Showing with 6 additions and 6 deletions
...@@ -698,10 +698,7 @@ $(function(){ ...@@ -698,10 +698,7 @@ $(function(){
$(".room-content-loading").show() $(".room-content-loading").show()
$(".loading-face").show().attr("src","https://zhibocdn.yabolive.net/comm"+data.room.face.split('?')[0]+"?x-oss-process=image/resize,w_350") $(".loading-face").show().attr("src","https://zhibocdn.yabolive.net/comm"+data.room.face.split('?')[0]+"?x-oss-process=image/resize,w_350")
var loadNum=1 var loadNum=1
if(sessionStorage.type!='pwa'){
if(sessionStorage.lookNum==undefined)sessionStorage.lookNum=1;
else sessionStorage.lookNum=Number(sessionStorage.lookNum)+1;
}
loadT=setInterval(function(){ loadT=setInterval(function(){
...@@ -773,16 +770,19 @@ $(function(){ ...@@ -773,16 +770,19 @@ $(function(){
$(".play-icon").hide() $(".play-icon").hide()
}) })
$("#myVideo").on("canplay",function(){ $("#myVideo").on("canplay",function(){
if(sessionStorage.type!='pwa'){
if(sessionStorage.lookNum==undefined)sessionStorage.lookNum=1;
else sessionStorage.lookNum=Number(sessionStorage.lookNum)+1;
}
var ua = window.navigator.userAgent.toLowerCase(); var ua = window.navigator.userAgent.toLowerCase();
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
if(sessionStorage.lookNum>=3){ if(sessionStorage.lookNum>=3){
setTimeout(function() { setTimeout(function() {
$(".layer-shadow").show() $(".layer-shadow").show()
loginPage() loginPage()
sessionStorage.lookNum=0
}, 3000); }, 3000);
} }
} }
clearInterval(iosT) clearInterval(iosT)
$(".play-icon").hide() $(".play-icon").hide()
......
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