Commit 93a6854f by o.kimura

BGM調整など

parent b7b1b11a
......@@ -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">
......
......@@ -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).pause();
$("#topmp3").get(0).play();
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).pause();
$("#selectmp3").get(0).play();
$("#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) {
......
......@@ -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();
});
});
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