Fix: go home button
This commit is contained in:
@@ -24,6 +24,30 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
function loadMaestroTestAccountInfo() {
|
||||
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
||||
"./../server/maestro/maestro_test_player.php",
|
||||
"maestro_id=" + maestroID,
|
||||
|
||||
(jsonData) => {
|
||||
let playerID = jsonData["playerID"];
|
||||
let playerName = jsonData["playerName"];
|
||||
|
||||
console.log("playerID : " + playerID);
|
||||
console.log("playerName : " + playerName);
|
||||
|
||||
sessionStorage.setItem("playerID", playerID);
|
||||
sessionStorage.setItem("playerName", playerName);
|
||||
},
|
||||
|
||||
(errorMessage) => {
|
||||
if($("#error_message").length) {
|
||||
$("#error_message").text(errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
/*
|
||||
let xhr = new XMLHttpRequest(); //new로 생성.
|
||||
xhr.open('POST', './../server/maestro/maestro_test_player.php', true);
|
||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
@@ -65,6 +89,7 @@ function loadMaestroTestAccountInfo() {
|
||||
sessionStorage.setItem("playerName", playerName);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
function runMaestroAccountApp() {
|
||||
@@ -75,7 +100,23 @@ function runMaestroAccountApp() {
|
||||
function deleteMaestroAllRecords() {
|
||||
// alert("마에스트로 전용 계정의 모든 플레이 기록이 지워집니다.\n예) 게임 기록, 타자 타수, 순위 등");
|
||||
if(confirm("마에스트로 전용 계정의 모든 플레이 기록이 지워집니다.\n예) 게임 기록, 타자 타수, 순위 등")) {
|
||||
let xhr = new XMLHttpRequest(); //new로 생성.
|
||||
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
||||
"./../server/maestro/delete_test_player_record.php",
|
||||
"maestro_id=" + maestroID,
|
||||
|
||||
(jsonData) => {
|
||||
alert("마에스트로 전용 계정의 모든 플레이 기록이 지워졌습니다.");
|
||||
},
|
||||
|
||||
(errorMessage) => {
|
||||
if($("#error_message").length) {
|
||||
$("#error_message").text(errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
/* let xhr = new XMLHttpRequest(); //new로 생성.
|
||||
xhr.open('POST', './../server/maestro/delete_test_player_record.php', true);
|
||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
xhr.send("maestro_id=" + maestroID);
|
||||
@@ -87,6 +128,7 @@ function deleteMaestroAllRecords() {
|
||||
}
|
||||
|
||||
alert("마에스트로 전용 계정의 모든 플레이 기록이 지워졌습니다.");
|
||||
*/
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user