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
779fad78
authored
Sep 05, 2025
by
kaisa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:统一关闭背景音乐
parent
592a880e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
activeFt/luckySpace/index.html
activeFt/luckySpace/lib/default.js
activeFt/luckySpace/index.html
View file @
779fad78
...
...
@@ -409,11 +409,13 @@
$
(
".top-btn4"
).
css
(
"display"
,
"none"
);
$
(
".top-btn5"
).
css
(
"display"
,
"block"
);
mAudios
.
bgm
.
pause
();
bgMusicClick
();
});
$
(
".top-btn5"
).
on
(
"click"
,
function
()
{
$
(
".top-btn4"
).
css
(
"display"
,
"block"
);
$
(
".top-btn5"
).
css
(
"display"
,
"none"
);
mAudios
.
bgm
.
play
();
bgMusicClick
();
});
$
(
".back"
).
on
(
"click"
,
function
()
{
...
...
activeFt/luckySpace/lib/default.js
View file @
779fad78
...
...
@@ -79,7 +79,6 @@ 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
();
...
...
@@ -111,6 +110,25 @@ function appCollaboration(msg) {
}
}
catch
(
e
)
{}
}
// 背景音乐点击
function
bgMusicClick
()
{
let
isMuted
=
mAudios
.
bgm
.
muted
;
if
(
isMuted
)
{
mAudios
.
betWin
.
muted
=
true
;
mAudios
.
betLose
.
muted
=
true
;
mAudios
.
clock
.
muted
=
true
;
mAudios
.
boom
.
muted
=
true
;
mAudios
.
rocket
.
muted
=
true
;
mAudios
.
water
.
muted
=
true
;
}
else
{
mAudios
.
betWin
.
muted
=
false
;
mAudios
.
betLose
.
muted
=
false
;
mAudios
.
clock
.
muted
=
false
;
mAudios
.
boom
.
muted
=
false
;
mAudios
.
rocket
.
muted
=
false
;
mAudios
.
water
.
muted
=
false
;
}
}
// 露水音效
function
betSound
()
{
mAudios
.
water
.
play
();
...
...
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