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
cbc386e0
authored
Sep 06, 2025
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更新火箭升空静音时音效同步静音
parent
40dd8530
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
activeFt/luckySpace/index.html
activeFt/luckySpace/lib/default.js
activeFt/luckySpace/index.html
View file @
cbc386e0
...
...
@@ -408,11 +408,13 @@
$
(
".top-btn4"
).
on
(
"click"
,
function
()
{
$
(
".top-btn4"
).
css
(
"display"
,
"none"
);
$
(
".top-btn5"
).
css
(
"display"
,
"block"
);
mAudios
.
bgm
.
muted
=
true
;
mAudios
.
bgm
.
pause
();
});
$
(
".top-btn5"
).
on
(
"click"
,
function
()
{
$
(
".top-btn4"
).
css
(
"display"
,
"block"
);
$
(
".top-btn5"
).
css
(
"display"
,
"none"
);
mAudios
.
bgm
.
muted
=
false
;
mAudios
.
bgm
.
play
();
});
...
...
@@ -540,6 +542,7 @@
rocketStop
();
var
boomNum
=
252
;
$
(
".fly"
).
fadeOut
(
350
);
betBoom
();
betLose
();
$
(
".boomShow"
).
show
();
boomTime
=
setInterval
(
function
()
{
...
...
activeFt/luckySpace/lib/default.js
View file @
cbc386e0
...
...
@@ -117,18 +117,30 @@ function betSound() {
}
// 中奖音效
function
betWin
()
{
if
(
mAudios
.
bgm
.
muted
)
{
return
;
}
mAudios
.
betWin
.
play
();
}
//
爆炸音效+
未中奖音效
// 未中奖音效
function
betLose
()
{
mAudios
.
boom
.
play
();
if
(
mAudios
.
bgm
.
muted
)
{
return
;
}
mAudios
.
betLose
.
play
();
}
// 爆炸音效
function
betBoom
()
{
if
(
mAudios
.
bgm
.
muted
)
{
return
;
}
mAudios
.
boom
.
play
();
}
// 火箭升空音效
function
rocket
()
{
if
(
mAudios
.
bgm
.
muted
)
{
return
;
}
mAudios
.
rocket
.
play
();
}
// 停止播放火箭升空音效
...
...
@@ -138,11 +150,14 @@ function rocketStop() {
// 倒计时音效
function
clock
(
min
,
sec
)
{
if
(
mAudios
.
bgm
.
muted
)
{
return
;
}
if
(
Number
(
min
)
==
0
&&
Number
(
sec
)
==
3
)
{
mAudios
.
clock
.
play
();
}
}
}
//
//处理时间倒计时的函数
function
timeDeal
(
e
)
{
var
endTime
=
e
;
...
...
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