Add: free player, maestro test account app menu pages
This commit is contained in:
@@ -43,12 +43,6 @@ function loadMaestroTestAccountInfo() {
|
||||
let xhr = new XMLHttpRequest(); //new로 생성.
|
||||
}
|
||||
|
||||
function playFree() {
|
||||
loadMaestroTestAccountInfo();
|
||||
// window.open("./../client/menu_app.html", "_blank");
|
||||
location.href = "./../client/menu_app.html";
|
||||
}
|
||||
|
||||
function experienceMaestro() {
|
||||
loadMaestroTestAccountInfo();
|
||||
location.href = "./../maestro/main_menu.html";
|
||||
@@ -61,7 +55,7 @@ function experienceMaestro() {
|
||||
<div class="container">
|
||||
<div class="player_free">
|
||||
<div class="col alignCenter">
|
||||
<a id="player_free_play" class="btn btn-rouge width400" onClick="playFree()" >학생 연습 앱<br/>무료 체험</a>
|
||||
<a href="./../main/free_player_app_menu.html" target="_blank" id="player_free_play" class="btn btn-rouge width400" >학생 연습 앱<br/>무료 체험</a>
|
||||
</div>
|
||||
|
||||
<ul id="free_app_list">
|
||||
|
||||
@@ -46,50 +46,6 @@ function loadMaestroTestAccountInfo() {
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
/*
|
||||
let xhr = new XMLHttpRequest(); //new로 생성.
|
||||
xhr.open('POST', './../server/maestro/maestro_test_player.php', true);
|
||||
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
xhr.send("maestro_id=" + maestroID);
|
||||
xhr.onload = function() {
|
||||
if(xhr.readyState === 4 && xhr.status === 200) {
|
||||
// console.log(xhr.responseText);
|
||||
// console.log(xhr.responseText.length);
|
||||
if(xhr.responseText.length === 0 || xhr.responseText === null) {
|
||||
console.log("no data from server");
|
||||
return;
|
||||
}
|
||||
|
||||
let replyJSON = JSON.parse(xhr.responseText);
|
||||
// console.log(replyJSON);
|
||||
|
||||
if(replyJSON === null) {
|
||||
console.log("no data from server");
|
||||
return;
|
||||
}
|
||||
|
||||
if(replyJSON["ERROR"] !== undefined || replyJSON["RESULT"] === undefined) {
|
||||
console.log(replyJSON["ERROR"]);
|
||||
return;
|
||||
}
|
||||
|
||||
if(replyJSON["RESULT"] === "fail") {
|
||||
console.log(replyJSON["RESULT"]);
|
||||
return;
|
||||
}
|
||||
|
||||
let playerID = replyJSON["PlayerID"];
|
||||
let playerName = replyJSON["PlayerName"];
|
||||
|
||||
console.log("playerID : " + playerID);
|
||||
console.log("playerName : " + playerName);
|
||||
|
||||
sessionStorage.setItem("playerID", playerID);
|
||||
sessionStorage.setItem("playerName", playerName);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
function runMaestroAccountApp() {
|
||||
@@ -115,20 +71,6 @@ function deleteMaestroAllRecords() {
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
/* 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);
|
||||
xhr.onload = function() {
|
||||
if(xhr.readyState === 4 && xhr.status === 200) {
|
||||
let replyJSON = JSON.parse(xhr.responseText);
|
||||
// console.log(replyJSON);
|
||||
}
|
||||
}
|
||||
|
||||
alert("마에스트로 전용 계정의 모든 플레이 기록이 지워졌습니다.");
|
||||
*/
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user