Commit ec3c6a62 by kaisa

feat:统一注释FUSI Firefly 直播间弹火箭

parent 686d3cb9
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=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-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta content="telephone=no" name="format-detection"> <meta content="telephone=no" name="format-detection">
...@@ -19,117 +19,121 @@ ...@@ -19,117 +19,121 @@
.layui-layer-shade { .layui-layer-shade {
opacity: 0.7 !important; opacity: 0.7 !important;
} }
.yourclass5 { .yourclass5 {
border-radius: 0rem !important; border-radius: 0rem !important;
background: rgba(0, 0, 0, 0) !important; background: rgba(0, 0, 0, 0) !important;
} }
.yourclass5 .layui-layer-content { .yourclass5 .layui-layer-content {
border-radius: 0rem !important; border-radius: 0rem !important;
} }
</style> </style>
</head> </head>
<script src="lib/lottie-player.js"></script> <script src="lib/lottie-player.js"></script>
<body style="background: rgba(0, 0, 0, 0);">
<div style="display: none;" class="act-room-bg"></div> <body style="background: rgba(0, 0, 0, 0);">
<div style="display: none;" class="act-room-bg"></div>
</body> </body>
<script src="lib/jquery-3.1.1.min.js"></script> <script src="lib/jquery-3.1.1.min.js"></script>
<script src="layer-v3.1.0/layer/layer.js"></script> <script src="layer-v3.1.0/layer/layer.js"></script>
<script src="lib/default.js?v='2024061702'"></script> <script src="lib/default.js?v='2024061702'"></script>
<script type="text/javascript" src="https://app.ixiulive.com/static/js/socket.io.js"></script> <script type="text/javascript" src="https://app.ixiulive.com/static/js/socket.io.js"></script>
<script> <script>
$(function(){ $(function () {
if(sessionStorage.lang!=2){ if (sessionStorage.lang != 2) {
$(".act-room-bg").fadeIn(200) $(".act-room-bg").fadeIn(200)
}
$(".act-room-bg").on("click",function(){
var obj = {
"cid": 12,
"reqCode": new Date().getTime(),
"data": {
"msg": '跳转集合功能',
"jumptype": 3,
"url": $url + "/activeFt/Fishing/index.html" + location.search+'',
}
} }
var obj2 = JSON.stringify(obj);
appCollaboration(obj2);
}) $(".act-room-bg").on("click", function () {
$(".dew-exc").on("click",function(){ var obj = {
"cid": 12,
}) "reqCode": new Date().getTime(),
function view(){ "data": {
"msg": '跳转集合功能',
} "jumptype": 3,
"url": $url + "/activeFt/Fishing/index.html" + location.search + '',
setInterval(function(){
},60000)
setTimeout(function(){
if(sessionStorage.lang==2)return;
if(localStorage.fish==undefined||localStorage.fish<new Date().getTime()){
localStorage.fish=(Number(new Date().getTime())+43200000)
$.ajax({
url:$ip+'/actSecretGarden/openPopup.html',
data:{
width:'0',
popupUrl:$url + "/activeFt/Fishing/pop.html",
height:'0.5',
heightR:'80',
x:'0',
y:'0.5',
},
success:function(){
} }
}) }
} var obj2 = JSON.stringify(obj);
},30000) appCollaboration(obj2);
function getData(roomid) { })
var opts = { $(".dew-exc").on("click", function () {
reconnectionDelay: 5000,
query: { })
'uid': sessionStorage.uid, function view() {
'token': sessionStorage.token,
'room': sessionStorage.roomId
}
}
socket = io.connect(_url3 + '/default', opts);
socket.on('connect', function () {
console.log("连接成功");
});
socket.on('RaisingBeautifulGril', function (msg) {
var data=JSON.parse(msg)
if(data.rank>0){
console.log(data)
$(".room-bg1").show()
$(".room-title").text(titleArr[data.extra.stage])
$(".room-bg-p1 span").text(data.score)
var barWidth=Math.floor(data.score/data.extra.stageScore*100)
$(".room-bg-p2 span").text(barWidth+'%')
$(".room-bg-p3 span").text(data.rank)
}else{
$(".room-bg1").hide()
} }
});
socket.on('disconnect', function () { setInterval(function () {
setTimeout(function(){
getData() }, 60000)
},3000) setTimeout(function () {
console.log("已下线!"); if (sessionStorage.lang == 2) return;
});
socket.on('connect_error', function (error) {
console.log("链接失败!");
});
} // if(localStorage.fish==undefined||localStorage.fish<new Date().getTime()){
}) // localStorage.fish=(Number(new Date().getTime())+43200000)
// $.ajax({
// url:$ip+'/actSecretGarden/openPopup.html',
// data:{
// width:'0',
// popupUrl:$url + "/activeFt/Fishing/pop.html",
// height:'0.5',
// heightR:'80',
// x:'0',
// y:'0.5',
// },
// success:function(){
// }
// })
// }
}, 30000)
function getData(roomid) {
var opts = {
reconnectionDelay: 5000,
query: {
'uid': sessionStorage.uid,
'token': sessionStorage.token,
'room': sessionStorage.roomId
}
}
socket = io.connect(_url3 + '/default', opts);
socket.on('connect', function () {
console.log("连接成功");
});
socket.on('RaisingBeautifulGril', function (msg) {
var data = JSON.parse(msg)
if (data.rank > 0) {
console.log(data)
$(".room-bg1").show()
$(".room-title").text(titleArr[data.extra.stage])
$(".room-bg-p1 span").text(data.score)
var barWidth = Math.floor(data.score / data.extra.stageScore * 100)
$(".room-bg-p2 span").text(barWidth + '%')
$(".room-bg-p3 span").text(data.rank)
} else {
$(".room-bg1").hide()
}
});
socket.on('disconnect', function () {
setTimeout(function () {
getData()
}, 3000)
console.log("已下线!");
});
socket.on('connect_error', function (error) {
console.log("链接失败!");
});
}
})
</script> </script>
</html> </html>
\ No newline at end of file
...@@ -96,26 +96,26 @@ $(function(){ ...@@ -96,26 +96,26 @@ $(function(){
view() view()
},60000) },60000)
//三十秒后弹窗 //三十秒后弹窗
setTimeout(function(){ // setTimeout(function(){
if(localStorage.gardenLayer==undefined||localStorage.gardenLayer<new Date().getTime()){ // if(localStorage.gardenLayer==undefined||localStorage.gardenLayer<new Date().getTime()){
localStorage.gardenLayer=(Number(new Date().getTime())+86400000) // localStorage.gardenLayer=(Number(new Date().getTime())+86400000)
console.log("弹了",localStorage.gardenLayer) // console.log("弹了",localStorage.gardenLayer)
$.ajax({ // $.ajax({
url:$ip+'/actSecretGarden/openPopup.html', // url:$ip+'/actSecretGarden/openPopup.html',
data:{ // data:{
width:'0', // width:'0',
popupUrl:$url + "/activeFt/garden/pop.html", // popupUrl:$url + "/activeFt/garden/pop.html",
height:'0.5', // height:'0.5',
heightR:'106', // heightR:'106',
x:'0', // x:'0',
y:'0.5', // y:'0.5',
}, // },
success:function(){ // success:function(){
} // }
}) // })
} // }
},30000) // },30000)
function getData(roomid) { function getData(roomid) {
var opts = { var opts = {
......
...@@ -90,26 +90,26 @@ $(function(){ ...@@ -90,26 +90,26 @@ $(function(){
setInterval(function(){ setInterval(function(){
view() view()
},60000) },60000)
setTimeout(function(){ // setTimeout(function(){
if(sessionStorage.lang==2)return; // if(sessionStorage.lang==2)return;
if(localStorage.lucky777==undefined||localStorage.lucky777<new Date().getTime()){ // if(localStorage.lucky777==undefined||localStorage.lucky777<new Date().getTime()){
localStorage.lucky777=(Number(new Date().getTime())+86400000) // localStorage.lucky777=(Number(new Date().getTime())+86400000)
$.ajax({ // $.ajax({
url:$ip+'/actSecretGarden/openPopup.html', // url:$ip+'/actSecretGarden/openPopup.html',
data:{ // data:{
width:'0', // width:'0',
popupUrl:$url + "/activeFt/lucky777/pop.html", // popupUrl:$url + "/activeFt/lucky777/pop.html",
height:'0.5', // height:'0.5',
heightR:'75', // heightR:'75',
x:'0', // x:'0',
y:'0.5', // y:'0.5',
}, // },
success:function(){ // success:function(){
} // }
}) // })
} // }
},30000) // },30000)
function getData(roomid) { function getData(roomid) {
var opts = { var opts = {
reconnectionDelay: 5000, reconnectionDelay: 5000,
......
...@@ -78,26 +78,26 @@ $(function(){ ...@@ -78,26 +78,26 @@ $(function(){
} }
//三十秒后弹窗 //三十秒后弹窗
setTimeout(function(){ // setTimeout(function(){
if(localStorage.luckyLayer==undefined||localStorage.luckyLayer<new Date().getTime()){ // if(localStorage.luckyLayer==undefined||localStorage.luckyLayer<new Date().getTime()){
localStorage.luckyLayer=(Number(new Date().getTime())+86400000) // localStorage.luckyLayer=(Number(new Date().getTime())+86400000)
$.ajax({ // $.ajax({
url:$ip+'/actSecretGarden/openPopup.html', // url:$ip+'/actSecretGarden/openPopup.html',
data:{ // data:{
width:'0', // width:'0',
popupUrl:$url + "/activeFt/luckyGod/pop.html", // popupUrl:$url + "/activeFt/luckyGod/pop.html",
height:'0.5', // height:'0.5',
heightR:'124', // heightR:'124',
x:'0', // x:'0',
y:'0.5', // y:'0.5',
}, // },
success:function(){ // success:function(){
} // }
}) // })
} // }
},30000) // },30000)
function view(){ function view(){
$.ajax({ $.ajax({
url:$ip+'/actTheLuckFairy/getRoomPartData.html', url:$ip+'/actTheLuckFairy/getRoomPartData.html',
......
...@@ -169,27 +169,27 @@ $(function(){ ...@@ -169,27 +169,27 @@ $(function(){
}) })
}, 300000); }, 300000);
} }
if(goPop==1){ // if(goPop==1){
setTimeout(function() { // setTimeout(function() {
if(localStorage.newManLayer==undefined||localStorage.newManLayer<new Date().getTime()){ // if(localStorage.newManLayer==undefined||localStorage.newManLayer<new Date().getTime()){
localStorage.newManLayer=(Number(new Date().getTime())+86400000) // localStorage.newManLayer=(Number(new Date().getTime())+86400000)
$.ajax({ // $.ajax({
url:$ip+'/actSecretGarden/openPopup.html', // url:$ip+'/actSecretGarden/openPopup.html',
data:{ // data:{
width:'0', // width:'0',
popupUrl:$url + "/activeFt/newMan/pop2.html" + location.search+'', // popupUrl:$url + "/activeFt/newMan/pop2.html" + location.search+'',
height:'0.5', // height:'0.5',
heightR:'110', // heightR:'110',
x:'0', // x:'0',
y:'0.5', // y:'0.5',
}, // },
success:function(){ // success:function(){
} // }
}) // })
} // }
}, 60000); // }, 60000);
} // }
}, 3000); }, 3000);
function getData(roomid) { function getData(roomid) {
......
...@@ -75,25 +75,25 @@ $(function(){ ...@@ -75,25 +75,25 @@ $(function(){
setInterval(function(){ setInterval(function(){
view() view()
},60000) },60000)
setTimeout(function(){ // setTimeout(function(){
if(localStorage.gardenLayer==undefined||localStorage.gardenLayer<new Date().getTime()){ // if(localStorage.gardenLayer==undefined||localStorage.gardenLayer<new Date().getTime()){
localStorage.gardenLayer=(Number(new Date().getTime())+86400000) // localStorage.gardenLayer=(Number(new Date().getTime())+86400000)
$.ajax({ // $.ajax({
url:$ip+'/actSecretGarden/openPopup.html', // url:$ip+'/actSecretGarden/openPopup.html',
data:{ // data:{
width:'0', // width:'0',
popupUrl:$url + "/activeFt/garden/pop.html", // popupUrl:$url + "/activeFt/garden/pop.html",
height:'0.5', // height:'0.5',
heightR:'106', // heightR:'106',
x:'0', // x:'0',
y:'0.5', // y:'0.5',
}, // },
success:function(){ // success:function(){
} // }
}) // })
} // }
},30000) // },30000)
$(".act-room-bg1").on("click",function(){ $(".act-room-bg1").on("click",function(){
var obj = { var obj = {
"cid": 31, "cid": 31,
......
...@@ -103,22 +103,22 @@ $(function(){ ...@@ -103,22 +103,22 @@ $(function(){
setTimeout(function(){ setTimeout(function(){
if(sessionStorage.lang==2)return; if(sessionStorage.lang==2)return;
if(localStorage.fly==undefined||localStorage.fly<new Date().getTime()){ // if(localStorage.fly==undefined||localStorage.fly<new Date().getTime()){
localStorage.fly=(Number(new Date().getTime())+43200000) // localStorage.fly=(Number(new Date().getTime())+43200000)
$.ajax({ // $.ajax({
url:$ip+'/actSecretGarden/openPopup.html', // url:$ip+'/actSecretGarden/openPopup.html',
data:{ // data:{
width:'0', // width:'0',
popupUrl:$url + "/activeFt/luckyFly/pop.html", // popupUrl:$url + "/activeFt/luckyFly/pop.html",
height:'0.5', // height:'0.5',
heightR:'100', // heightR:'100',
x:'0', // x:'0',
y:'0.5', // y:'0.5',
}, // },
success:function(){ // success:function(){
} // }
}) // })
} // }
},30000) },30000)
function getData(roomid) { function getData(roomid) {
var opts = { var opts = {
......
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