Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
sora
/
sanitary-net
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
93a6854f
authored
Apr 12, 2024
by
o.kimura
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
BGM調整など
parent
b7b1b11a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
21 deletions
takumi-style/app/index_inc.html
takumi-style/app/js/quizMaster.js
takumi-style/app/js/topAnime.js
takumi-style/app/index_inc.html
View file @
93a6854f
...
...
@@ -237,7 +237,7 @@
<source
src=
"sound/select.mp3"
type=
"audio/mp3"
loop
>
</audio>
<audio
preload=
"auto"
id=
"topmp3"
loop
>
<source
src=
"sound/top.mp3"
type=
"audio/mp3"
>
<source
src=
"sound/top.mp3"
type=
"audio/mp3"
loop
>
</audio>
<audio
preload=
"auto"
id=
"top_blinkmp3"
>
<source
src=
"sound/top_blink.mp3"
type=
"audio/mp3"
>
...
...
takumi-style/app/js/quizMaster.js
View file @
93a6854f
...
...
@@ -275,10 +275,13 @@ function quizMaster(et) {
});
//----- sound : click
function
returnTop
()
{
console
.
log
(
"playSE#seStop"
);
//----------sound : seStop
$
(
"#result_plate"
).
removeClass
(
"goldPrize randomize1 randomize2 randomize3 answer1 answer2"
);
$
(
"#button_next_result"
).
addClass
(
"vanish"
);
$
(
"#gamemp3"
).
get
(
0
).
pause
();
$
(
"#selectmp3"
).
get
(
0
).
pause
();
$
(
"#quizmp3"
).
get
(
0
).
pause
();
$
(
"#topmp3"
).
get
(
0
).
p
ause
();
$
(
"#topmp3"
).
get
(
0
).
p
lay
();
document
.
getElementById
(
"result_title"
).
classList
.
remove
(
"vanish"
);
document
.
getElementById
(
"result_main"
).
classList
.
remove
(
"vanish"
);
...
...
@@ -298,8 +301,16 @@ function quizMaster(et) {
});
//----- sound : click
function
returnSelect
()
{
console
.
log
(
"playSE#seStop"
);
//----------sound : seStop 要注意。
$
(
"#result_plate"
).
removeClass
(
"goldPrize randomize1 randomize2 randomize3 answer1 answer2"
);
resultPlate
.
classList
.
remove
(
"randomize1"
);
resultPlate
.
classList
.
remove
(
"randomize2"
);
resultPlate
.
classList
.
remove
(
"randomize3"
);
resultPlate
.
classList
.
remove
(
"answer1"
);
resultPlate
.
classList
.
remove
(
"answer2"
);
$
(
"#button_next_result"
).
addClass
(
"vanish"
);
$
(
"#gamemp3"
).
get
(
0
).
pause
();
$
(
"#selectmp3"
).
get
(
0
).
p
ause
();
$
(
"#selectmp3"
).
get
(
0
).
p
lay
();
$
(
"#quizmp3"
).
get
(
0
).
pause
();
$
(
"#topmp3"
).
get
(
0
).
pause
();
document
.
getElementById
(
"result_title"
).
classList
.
remove
(
"vanish"
);
...
...
@@ -435,29 +446,31 @@ $(function () {
document
.
getElementById
(
"result_top_button"
).
classList
.
remove
(
"vanish"
);
document
.
getElementById
(
"result_select_button"
).
classList
.
remove
(
"vanish"
);
});
/*
$("#result_top_button").on("click", function () {
$
(
"#result_plate"
).
removeClass
();
$("#result_plate").removeClass("randomize1 randomize2 randomize3 answer1 answer2");
console.log("remove1");
resultPlate.classList.remove("randomize1");
resultPlate.classList.remove("randomize2");
resultPlate.classList.remove("randomize3");
resultPlate.classList.remove("answer1");
resultPlate.classList.remove("answer2");
document.getElementById("arr_yes").classList.add("vanish");
document.getElementById("arr_no").classList.add("vanish");
document.getElementById("yes_btn").classList.add("vanish");
document.getElementById("no_btn").classList.add("vanish");
$("#result_plate").addClass("vanish");
$("#button_next_result").addClass("vanish");
$
(
"#yes_btn"
).
attr
(
"src"
,
""
);
$
(
"#no_btn"
).
attr
(
"src"
,
""
);
});
$("#result_select_button").on("click", function () {
$
(
"#result_plate"
).
removeClass
();
document
.
getElementById
(
"arr_yes"
).
classList
.
add
(
"vanish"
);
document
.
getElementById
(
"arr_no"
).
classList
.
add
(
"vanish"
);
document
.
getElementById
(
"yes_btn"
).
classList
.
add
(
"vanish"
);
document
.
getElementById
(
"no_btn"
).
classList
.
add
(
"vanish"
);
$
(
"#result_plate"
).
addClass
(
"vanish"
);
$
(
"#button_next_result"
).
addClass
(
"vanish"
);
$
(
"#yes_btn"
).
attr
(
"src"
,
""
);
$
(
"#no_btn"
).
attr
(
"src"
,
""
);
console.log("music")
$("#gamemp3").get(0).pause();
$("#selectmp3").get(0).play();
$("#quizmp3").get(0).pause();
$("#topmp3").get(0).pause();
});
*/
});
function
judgePat
(
myObj
,
resultPlate
)
{
...
...
takumi-style/app/js/topAnime.js
View file @
93a6854f
...
...
@@ -20,6 +20,8 @@ function topAnime(et) {
initButton
.
addEventListener
(
eventClick
,
function
()
{
document
.
getElementById
(
"init_plate"
).
classList
.
add
(
"vanish"
);
topAnime
.
dispFunc
();
$
(
"#selectmp3"
).
get
(
0
).
pause
();
$
(
"#topmp3"
).
get
(
0
).
play
();
},
{
passive
:
true
});
...
...
@@ -58,6 +60,8 @@ function topAnime(et) {
topAnime
.
hideFunc
();
levelSelectMenu
.
dispFunc
();
$
(
"#selectmp3"
).
get
(
0
).
play
();
$
(
"#topmp3"
).
get
(
0
).
pause
();
}
//---------------------------------------------------------------------トップアニメの制御
...
...
@@ -114,6 +118,9 @@ function topAnime(et) {
function
anime_start
()
{
$
(
"#topmp3"
).
get
(
0
).
play
();
$
(
"#selectmp3"
).
get
(
0
).
pause
();
$
(
"#quizmp3"
).
get
(
0
).
pause
();
anime_flg
=
true
;
anime_reset
();
anime
({
...
...
@@ -487,10 +494,10 @@ function topAnime(et) {
//---------------------------------------------------------------------消します。
myObj
.
hideFunc
=
function
()
{
console
.
log
(
"playSE#seStop"
);
//----------sound : seStop
$
(
"#gamemp3"
).
get
(
0
).
pause
();
// $("#selectmp3").get(0).pause();
// $("#quizmp3").get(0).pause();
$
(
"#topmp3"
).
get
(
0
).
pause
();
setTimeout
(
function
()
{
$
(
"#selectmp3"
).
get
(
0
).
play
();
},
500
);
anime_flg
=
false
;
//-------アニメ停止
anime_reset
();
//-----------アニメリセット
targetElem
.
classList
.
add
(
"vanish"
);
...
...
@@ -500,8 +507,6 @@ function topAnime(et) {
//---------------------------------------------------------------------表示します。
myObj
.
dispFunc
=
function
()
{
console
.
log
(
"setBgm#top"
);
//----- sound : bgm (top)
$
(
"#topmp3"
).
get
(
0
).
play
();
anime_start
();
targetElem
.
classList
.
remove
(
"vanish"
);
}
...
...
@@ -509,3 +514,12 @@ function topAnime(et) {
return
myObj
;
}
$
(
function
()
{
$
(
"#button_return"
).
on
(
"click"
,
function
()
{
console
.
log
(
"hit"
)
$
(
"#topmp3"
).
get
(
0
).
pause
();
$
(
"#selectmp3"
).
get
(
0
).
pause
();
$
(
"#quizmp3"
).
get
(
0
).
pause
();
});
});
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