Commit 93a6854f by o.kimura

BGM調整など

parent b7b1b11a
...@@ -237,7 +237,7 @@ ...@@ -237,7 +237,7 @@
<source src="sound/select.mp3" type="audio/mp3" loop> <source src="sound/select.mp3" type="audio/mp3" loop>
</audio> </audio>
<audio preload="auto" id="topmp3" loop> <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>
<audio preload="auto" id="top_blinkmp3"> <audio preload="auto" id="top_blinkmp3">
<source src="sound/top_blink.mp3" type="audio/mp3"> <source src="sound/top_blink.mp3" type="audio/mp3">
......
...@@ -275,10 +275,13 @@ function quizMaster(et) { ...@@ -275,10 +275,13 @@ function quizMaster(et) {
}); //----- sound : click }); //----- sound : click
function returnTop() { function returnTop() {
console.log("playSE#seStop"); //----------sound : seStop console.log("playSE#seStop"); //----------sound : seStop
$("#result_plate").removeClass("goldPrize randomize1 randomize2 randomize3 answer1 answer2");
$("#button_next_result").addClass("vanish");
$("#gamemp3").get(0).pause(); $("#gamemp3").get(0).pause();
$("#selectmp3").get(0).pause(); $("#selectmp3").get(0).pause();
$("#quizmp3").get(0).pause(); $("#quizmp3").get(0).pause();
$("#topmp3").get(0).pause(); $("#topmp3").get(0).play();
document.getElementById("result_title").classList.remove("vanish"); document.getElementById("result_title").classList.remove("vanish");
document.getElementById("result_main").classList.remove("vanish"); document.getElementById("result_main").classList.remove("vanish");
...@@ -298,8 +301,16 @@ function quizMaster(et) { ...@@ -298,8 +301,16 @@ function quizMaster(et) {
}); //----- sound : click }); //----- sound : click
function returnSelect() { function returnSelect() {
console.log("playSE#seStop"); //----------sound : seStop 要注意。 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(); $("#gamemp3").get(0).pause();
$("#selectmp3").get(0).pause(); $("#selectmp3").get(0).play();
$("#quizmp3").get(0).pause(); $("#quizmp3").get(0).pause();
$("#topmp3").get(0).pause(); $("#topmp3").get(0).pause();
document.getElementById("result_title").classList.remove("vanish"); document.getElementById("result_title").classList.remove("vanish");
...@@ -435,29 +446,31 @@ $(function () { ...@@ -435,29 +446,31 @@ $(function () {
document.getElementById("result_top_button").classList.remove("vanish"); document.getElementById("result_top_button").classList.remove("vanish");
document.getElementById("result_select_button").classList.remove("vanish"); document.getElementById("result_select_button").classList.remove("vanish");
}); });
/*
$("#result_top_button").on("click", function () { $("#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_yes").classList.add("vanish");
document.getElementById("arr_no").classList.add("vanish"); document.getElementById("arr_no").classList.add("vanish");
document.getElementById("yes_btn").classList.add("vanish"); document.getElementById("yes_btn").classList.add("vanish");
document.getElementById("no_btn").classList.add("vanish"); document.getElementById("no_btn").classList.add("vanish");
$("#result_plate").addClass("vanish"); $("#result_plate").addClass("vanish");
$("#button_next_result").addClass("vanish"); $("#button_next_result").addClass("vanish");
$("#yes_btn").attr("src", "");
$("#no_btn").attr("src", "");
}); });
$("#result_select_button").on("click", function () { $("#result_select_button").on("click", function () {
$("#result_plate").removeClass(); console.log("music")
document.getElementById("arr_yes").classList.add("vanish"); $("#gamemp3").get(0).pause();
document.getElementById("arr_no").classList.add("vanish"); $("#selectmp3").get(0).play();
document.getElementById("yes_btn").classList.add("vanish"); $("#quizmp3").get(0).pause();
document.getElementById("no_btn").classList.add("vanish"); $("#topmp3").get(0).pause();
$("#result_plate").addClass("vanish");
$("#button_next_result").addClass("vanish");
$("#yes_btn").attr("src", "");
$("#no_btn").attr("src", "");
}); });
*/
}); });
function judgePat(myObj, resultPlate) { function judgePat(myObj, resultPlate) {
......
...@@ -20,6 +20,8 @@ function topAnime(et) { ...@@ -20,6 +20,8 @@ function topAnime(et) {
initButton.addEventListener(eventClick, function () { initButton.addEventListener(eventClick, function () {
document.getElementById("init_plate").classList.add("vanish"); document.getElementById("init_plate").classList.add("vanish");
topAnime.dispFunc(); topAnime.dispFunc();
$("#selectmp3").get(0).pause();
$("#topmp3").get(0).play();
}, { }, {
passive: true passive: true
}); });
...@@ -58,6 +60,8 @@ function topAnime(et) { ...@@ -58,6 +60,8 @@ function topAnime(et) {
topAnime.hideFunc(); topAnime.hideFunc();
levelSelectMenu.dispFunc(); levelSelectMenu.dispFunc();
$("#selectmp3").get(0).play();
$("#topmp3").get(0).pause();
} }
//---------------------------------------------------------------------トップアニメの制御 //---------------------------------------------------------------------トップアニメの制御
...@@ -114,6 +118,9 @@ function topAnime(et) { ...@@ -114,6 +118,9 @@ function topAnime(et) {
function anime_start() { function anime_start() {
$("#topmp3").get(0).play();
$("#selectmp3").get(0).pause();
$("#quizmp3").get(0).pause();
anime_flg = true; anime_flg = true;
anime_reset(); anime_reset();
anime({ anime({
...@@ -487,10 +494,10 @@ function topAnime(et) { ...@@ -487,10 +494,10 @@ function topAnime(et) {
//---------------------------------------------------------------------消します。 //---------------------------------------------------------------------消します。
myObj.hideFunc = function () { myObj.hideFunc = function () {
console.log("playSE#seStop"); //----------sound : seStop console.log("playSE#seStop"); //----------sound : seStop
$("#gamemp3").get(0).pause();
// $("#selectmp3").get(0).pause();
// $("#quizmp3").get(0).pause();
$("#topmp3").get(0).pause(); $("#topmp3").get(0).pause();
setTimeout(function () {
$("#selectmp3").get(0).play();
}, 500);
anime_flg = false; //-------アニメ停止 anime_flg = false; //-------アニメ停止
anime_reset(); //-----------アニメリセット anime_reset(); //-----------アニメリセット
targetElem.classList.add("vanish"); targetElem.classList.add("vanish");
...@@ -500,8 +507,6 @@ function topAnime(et) { ...@@ -500,8 +507,6 @@ function topAnime(et) {
//---------------------------------------------------------------------表示します。 //---------------------------------------------------------------------表示します。
myObj.dispFunc = function () { myObj.dispFunc = function () {
console.log("setBgm#top"); //----- sound : bgm (top) console.log("setBgm#top"); //----- sound : bgm (top)
$("#topmp3").get(0).play();
anime_start(); anime_start();
targetElem.classList.remove("vanish"); targetElem.classList.remove("vanish");
} }
...@@ -509,3 +514,12 @@ function topAnime(et) { ...@@ -509,3 +514,12 @@ function topAnime(et) {
return myObj; return myObj;
} }
$(function () {
$("#button_return").on("click", function () {
console.log("hit")
$("#topmp3").get(0).pause();
$("#selectmp3").get(0).pause();
$("#quizmp3").get(0).pause();
});
});
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