Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
fsActive
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
45cb68ef
authored
Sep 05, 2025
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:新增火箭升空音效
parent
99ef8829
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
124 additions
and
92 deletions
activeFt/luckySpace/index.html
activeFt/luckySpace/lib/default.js
activeFt/luckySpace/index.html
View file @
45cb68ef
This diff is collapsed.
Click to expand it.
activeFt/luckySpace/lib/default.js
View file @
45cb68ef
...
...
@@ -4,41 +4,40 @@
var
bbb
=
location
.
href
;
if
(
bbb
.
indexOf
(
"https://fsactive.fusi.club/"
)
>
-
1
)
{
$ip
=
"https://vc.game.tealive66.com"
;
$ws
=
'wss://zhiboweb.ishuaji.cn/yzsocket/ws?type=2'
$url
=
'https://activity.ishuaji.cn/'
}
else
{
$ip
=
'http://testvc.game.tealive66.com'
;
$ws
=
'ws://114.55.165.186:12308/ws?type=-1'
;
$url
=
'https://vc.game.tealive66.com'
$ws
=
"wss://zhiboweb.ishuaji.cn/yzsocket/ws?type=2"
;
$url
=
"https://activity.ishuaji.cn/"
;
}
else
{
$ip
=
"http://testvc.game.tealive66.com"
;
$ws
=
"ws://114.55.165.186:12308/ws?type=-1"
;
$url
=
"https://vc.game.tealive66.com"
;
}
var
bbb
=
location
.
href
;
var
data
=
url_get_params
(
bbb
)
var
data
=
url_get_params
(
bbb
)
;
var
mAudios
=
{
"bgm"
:
new
Audio
(),
"boom"
:
new
Audio
(),
"betWin"
:
new
Audio
(),
"betLose"
:
new
Audio
(),
"clock"
:
new
Audio
(),
"rocket"
:
new
Audio
(),
"water"
:
new
Audio
(),
"boom"
:
new
Audio
(),
}
bgm
:
new
Audio
(),
boom
:
new
Audio
(),
betWin
:
new
Audio
(),
betLose
:
new
Audio
(),
clock
:
new
Audio
(),
rocket
:
new
Audio
(),
water
:
new
Audio
(),
boom
:
new
Audio
(),
}
;
if
(
sessionStorage
.
kkk
==
undefined
)
{
sessionStorage
.
kkk
=
data
.
token
;
//t
sessionStorage
.
bbb
=
data
.
uid
;
//u
sessionStorage
.
version
=
data
.
appversion
;
sessionStorage
.
pkg
=
data
.
pkg
sessionStorage
.
lang
=
data
.
lang
if
(
data
.
roomID
!=
undefined
&&
data
.
roomID
!=
'undefined'
)
{
sessionStorage
.
pkg
=
data
.
pkg
;
sessionStorage
.
lang
=
data
.
lang
;
if
(
data
.
roomID
!=
undefined
&&
data
.
roomID
!=
"undefined"
)
{
sessionStorage
.
roomId
=
data
.
roomID
;
}
else
{
sessionStorage
.
roomId
=
data
.
roomId
;
}
if
(
sessionStorage
.
roomId
==
'undefined'
)
sessionStorage
.
roomId
=
0
if
(
sessionStorage
.
roomId
==
"undefined"
)
sessionStorage
.
roomId
=
0
;
}
sessionStorage
.
jump
=
data
.
jump
sessionStorage
.
isShowHalf
=
data
.
isShowHalf
sessionStorage
.
jump
=
data
.
jump
;
sessionStorage
.
isShowHalf
=
data
.
isShowHalf
;
function
url_get_params
(
url_path
)
{
var
url
=
url_path
;
var
theRequest
=
new
Object
();
...
...
@@ -53,57 +52,53 @@ function url_get_params(url_path) {
}
if
(
bbb
.
indexOf
(
"http://localhost:63342"
)
>
-
1
)
{
sessionStorage
.
bbb
=
23871190
;
sessionStorage
.
kkk
=
'debug'
sessionStorage
.
roomId
=
23864554
sessionStorage
.
kkk
=
"debug"
;
sessionStorage
.
roomId
=
23864554
;
}
if
(
bbb
.
indexOf
(
"file:///"
)
>
-
1
)
{
sessionStorage
.
bbb
=
10007
;
sessionStorage
.
kkk
=
'debug'
sessionStorage
.
roomId
=
23868834
sessionStorage
.
lang
=
1
sessionStorage
.
kkk
=
"debug"
;
sessionStorage
.
roomId
=
23868834
;
sessionStorage
.
lang
=
1
;
}
//ajax设置默认参数
$
.
ajaxSetup
({
global
:
false
,
type
:
'get'
,
type
:
"get"
,
data
:
{
uid
:
sessionStorage
.
bbb
,
token
:
sessionStorage
.
kkk
,
},
dataType
:
"JSON"
})
mAudios
.
bgm
.
src
=
'dist/bg.mp3'
;
mAudios
.
betWin
.
src
=
'dist/betWin.mp3'
;
mAudios
.
betLose
.
src
=
'dist/betLose.mp3'
;
mAudios
.
clock
.
src
=
'dist/clock.mp3'
;
mAudios
.
boom
.
src
=
'dist/boom.mp3'
;
mAudios
.
rocket
.
src
=
'dist/rocket.mp3'
;
mAudios
.
water
.
src
=
'dist/water.mp3'
;
mAudios
.
boom
.
src
=
'dist/boom.mp3'
;
dataType
:
"JSON"
,
});
mAudios
.
bgm
.
src
=
"dist/bg.mp3"
;
mAudios
.
betWin
.
src
=
"dist/betWin.mp3"
;
mAudios
.
betLose
.
src
=
"dist/betLose.mp3"
;
mAudios
.
clock
.
src
=
"dist/clock.mp3"
;
mAudios
.
boom
.
src
=
"dist/boom.mp3"
;
mAudios
.
rocket
.
src
=
"dist/rocket.mp3"
;
mAudios
.
water
.
src
=
"dist/water.mp3"
;
mAudios
.
boom
.
src
=
"dist/boom.mp3"
;
mAudios
.
bgm
.
loop
=
true
;
mAudios
.
bgm
.
play
();
//点击刷新
$
(
".ref"
).
on
(
"click"
,
function
()
{
sessionStorage
.
jump
=
undefined
;
window
.
location
.
reload
()
})
window
.
location
.
reload
();
})
;
function
btnHref
(
e
)
{
var
myJson
=
{
"cid"
:
12
,
"reqCode"
:
new
Date
().
getTime
(),
"data"
:
{
"msg"
:
'跳转页面'
,
"jump"
:
e
,
}
}
cid
:
12
,
reqCode
:
new
Date
().
getTime
(),
data
:
{
msg
:
"跳转页面"
,
jump
:
e
,
},
};
var
obj
=
JSON
.
stringify
(
myJson
);
appCollaboration
(
obj
)
appCollaboration
(
obj
);
}
//与客户端交互
function
appCollaboration
(
msg
)
{
...
...
@@ -114,9 +109,30 @@ function appCollaboration(msg) {
}
else
if
(
/android/
.
test
(
ua
))
{
window
.
yazhai
.
appCollaboration
(
msg
);
}
}
catch
(
e
)
{
}
}
catch
(
e
)
{}
}
// 露水音效
function
betSound
()
{
mAudios
.
water
.
play
();
}
// 中奖音效
function
betWin
()
{
mAudios
.
betWin
.
play
();
}
// 爆炸音效+未中奖音效
function
betLose
()
{
mAudios
.
boom
.
play
();
mAudios
.
betLose
.
play
();
}
// 火箭升空音效
function
rocket
()
{
mAudios
.
rocket
.
play
();
}
// 倒计时音效
function
clock
()
{
mAudios
.
clock
.
play
();
}
//
//处理时间倒计时的函数
function
timeDeal
(
e
)
{
var
endTime
=
e
;
...
...
@@ -124,9 +140,9 @@ function timeDeal(e) {
var
Remain
=
Math
.
floor
((
endTime
-
newTime
)
/
1000
);
if
(
Remain
<=
0
)
window
.
location
.
reload
();
var
day
=
Math
.
floor
(
Remain
/
86400
);
var
hour
=
add0
(
Math
.
floor
(
Remain
%
86400
/
3600
));
var
hour
=
add0
(
Math
.
floor
((
Remain
%
86400
)
/
3600
));
if
(
hour
>
99
)
hour
=
99
;
var
min
=
add0
(
Math
.
floor
(
Remain
%
3600
/
60
));
var
min
=
add0
(
Math
.
floor
((
Remain
%
3600
)
/
60
));
var
sceond
=
add0
(
Math
.
floor
(
Remain
%
60
));
var
timeArr
=
[
day
,
hour
,
min
,
sceond
];
return
timeArr
;
...
...
@@ -135,13 +151,13 @@ function timeDeal2(e, star) {
var
endTime
=
e
;
var
newTime
=
star
;
var
Remain
=
Math
.
floor
((
endTime
-
newTime
)
/
1000
);
if
(
Remain
<=
0
)
Remain
=
0
if
(
Remain
<=
0
)
Remain
=
0
;
var
day
=
Math
.
floor
(
Remain
/
86400
);
var
hour
=
add0
(
Math
.
floor
(
Remain
%
86400
/
3600
));
var
hour
=
add0
(
Math
.
floor
((
Remain
%
86400
)
/
3600
));
if
(
hour
>
99
)
hour
=
99
;
var
min
=
add0
(
Math
.
floor
(
Remain
%
3600
/
60
));
var
min
=
add0
(
Math
.
floor
((
Remain
%
3600
)
/
60
));
var
sceond
=
add0
(
Math
.
floor
(
Remain
%
60
));
if
(
sceond
<
0
)
sceond
=
0
if
(
sceond
<
0
)
sceond
=
0
;
var
timeArr
=
[
day
,
hour
,
min
,
sceond
];
return
timeArr
;
}
...
...
@@ -154,21 +170,21 @@ function timeGet(e) {
var
h
=
time
.
getHours
();
var
mm
=
time
.
getMinutes
();
var
s
=
time
.
getSeconds
();
var
timeArr
=
[
y
,
m
,
d
,
add0
(
h
),
add0
(
mm
),
s
]
return
timeArr
var
timeArr
=
[
y
,
m
,
d
,
add0
(
h
),
add0
(
mm
),
s
];
return
timeArr
;
}
//一位数前面加0
function
add0
(
m
)
{
return
m
<
10
?
'0'
+
m
:
m
return
m
<
10
?
"0"
+
m
:
m
;
}
function
add00
(
m
)
{
if
(
m
<
10
)
{
return
'00'
+
m
return
"00"
+
m
;
}
else
if
(
m
>
10
&&
m
<
100
)
{
return
'0'
+
m
return
"0"
+
m
;
}
else
{
return
m
return
m
;
}
}
function
imgAdd
(
m
)
{
...
...
@@ -178,51 +194,64 @@ function imgAdd(m) {
//一万以上省略
function
addw
(
e
)
{
if
(
e
>=
100000000
)
{
return
Math
.
floor
((
e
/
100000000
).
toFixed
(
2
)
*
10
)
/
10
+
'亿'
;
}
else
if
(
e
>=
10000
)
{
return
Math
.
floor
((
e
/
10000
).
toFixed
(
2
)
*
10
)
/
10
+
'万'
;
return
Math
.
floor
((
e
/
100000000
).
toFixed
(
2
)
*
10
)
/
10
+
"亿"
;
}
else
if
(
e
>=
10000
)
{
return
Math
.
floor
((
e
/
10000
).
toFixed
(
2
)
*
10
)
/
10
+
"万"
;
}
else
{
return
Math
.
ceil
(
e
);
}
}
function
addDoc
(
e
)
{
if
(
e
%
1
==
0
)
{
return
e
+
'.0'
;
}
else
return
e
return
e
+
".0"
;
}
else
return
e
;
}
function
callFK
()
{
var
obj2
=
{
"cid"
:
4
,
"reqCode"
:
new
Date
().
getTime
(),
"data"
:
{
"msg"
:
"请求客服"
,
}
}
cid
:
4
,
reqCode
:
new
Date
().
getTime
(),
data
:
{
msg
:
"请求客服"
,
},
};
var
obj
=
JSON
.
stringify
(
obj2
);
appCollaboration
(
obj
)
appCollaboration
(
obj
);
}
//跳转充值页面
function
goReg
()
{
if
(
sessionStorage
.
pkg
==
'qingliang'
)
{
if
(
sessionStorage
.
pkg
==
"qingliang"
)
{
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
window
.
location
.
href
=
'yazhai://_recharge'
;
window
.
location
.
href
=
"yazhai://_recharge"
;
}
else
{
window
.
location
.
href
=
'http://web.yazhai.co/milkRecharge/index.html?uid='
+
sessionStorage
.
bbb
+
'&token='
+
sessionStorage
.
kkk
+
'&pkg=qingliang'
;
window
.
location
.
href
=
"http://web.yazhai.co/milkRecharge/index.html?uid="
+
sessionStorage
.
bbb
+
"&token="
+
sessionStorage
.
kkk
+
"&pkg=qingliang"
;
}
}
else
if
(
sessionStorage
.
pkg
==
'qiezi'
)
{
}
else
if
(
sessionStorage
.
pkg
==
"qiezi"
)
{
var
ua
=
window
.
navigator
.
userAgent
.
toLowerCase
();
if
(
/iphone|ipad|ipod/
.
test
(
ua
))
{
window
.
location
.
href
=
'yazhai://_recharge'
;
window
.
location
.
href
=
"yazhai://_recharge"
;
}
else
{
window
.
location
.
href
=
'http://web.yazhai.co/guodongRecharge/index.html?uid='
+
sessionStorage
.
bbb
+
'&token='
+
sessionStorage
.
kkk
+
'&pkg=qingliang'
;
}
}
else
if
(
sessionStorage
.
pkg
==
'iosxiuse'
)
{
window
.
location
.
href
=
'yazhai://_recharge'
;
window
.
location
.
href
=
"http://web.yazhai.co/guodongRecharge/index.html?uid="
+
sessionStorage
.
bbb
+
"&token="
+
sessionStorage
.
kkk
+
"&pkg=qingliang"
;
}
else
{
window
.
location
.
href
=
'http://web.yazhai.co/recharge/index.html?uid='
+
sessionStorage
.
bbb
+
'&token='
+
sessionStorage
.
kkk
+
'&pkg=yabo'
;
}
else
if
(
sessionStorage
.
pkg
==
"iosxiuse"
)
{
window
.
location
.
href
=
"yazhai://_recharge"
;
}
else
{
window
.
location
.
href
=
"http://web.yazhai.co/recharge/index.html?uid="
+
sessionStorage
.
bbb
+
"&token="
+
sessionStorage
.
kkk
+
"&pkg=yabo"
;
}
}
function
scrollTo
(
element
,
speed
)
{
...
...
@@ -233,7 +262,10 @@ function scrollTo(element, speed) {
$
(
"html,body"
).
animate
({
scrollTop
:
0
},
speed
);
}
else
{
if
(
element
.
length
>
0
)
{
$
(
"html,body"
).
animate
({
scrollTop
:
$
(
element
).
offset
().
top
-
200
},
speed
);
$
(
"html,body"
).
animate
(
{
scrollTop
:
$
(
element
).
offset
().
top
-
200
},
speed
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment