Add: free player, maestro test account app menu pages
This commit is contained in:
@@ -0,0 +1,58 @@
|
|||||||
|
<html>
|
||||||
|
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>마우스 타자 연습</title>
|
||||||
|
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
|
||||||
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||||
|
|
||||||
|
<script type="text/javascript" src="./../../../resources/jquery/jquery-3.3.1.min.js"></script>
|
||||||
|
<script type="text/javascript" src="./../js/main.js"></script>
|
||||||
|
<script type="text/javascript" src="./../js/request_server.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
saveMaestroID(-1);
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
loadMaestroTestAccountInfo();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function loadMaestroTestAccountInfo() {
|
||||||
|
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
||||||
|
"./../server/maestro/maestro_test_account.php",
|
||||||
|
"",
|
||||||
|
|
||||||
|
(jsonData) => {
|
||||||
|
let maestroID = jsonData["maestroID"];
|
||||||
|
let playerID = jsonData["playerID"];
|
||||||
|
let playerName = jsonData["playerName"];
|
||||||
|
|
||||||
|
console.log("maestroID : " + maestroID);
|
||||||
|
console.log("playerID : " + playerID);
|
||||||
|
console.log("playerName : " + playerName);
|
||||||
|
|
||||||
|
sessionStorage.setItem("maestroID", maestroID);
|
||||||
|
sessionStorage.setItem("playerID", playerID);
|
||||||
|
sessionStorage.setItem("playerName", playerName);
|
||||||
|
location.href = "./../client/menu_app.html";
|
||||||
|
},
|
||||||
|
|
||||||
|
(errorMessage) => {
|
||||||
|
if($("#error_message").length) {
|
||||||
|
$("#error_message").text(errorMessage);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<body bgcolor="white">
|
||||||
|
</body>
|
||||||
|
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
<html>
|
||||||
|
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>마우스 타자 연습</title>
|
||||||
|
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
|
||||||
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||||
|
|
||||||
|
<script type="text/javascript" src="./../../../resources/jquery/jquery-3.3.1.min.js"></script>
|
||||||
|
<script type="text/javascript" src="./../js/main.js"></script>
|
||||||
|
<script type="text/javascript" src="./../js/request_server.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
saveMaestroID(-1);
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
loadMaestroTestAccountInfo();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
function loadMaestroTestAccountInfo() {
|
||||||
|
sendRequestServer( //url, sendParams, onSuccess, onFail, isDebugMode);
|
||||||
|
"./../server/maestro/maestro_test_account.php",
|
||||||
|
"",
|
||||||
|
|
||||||
|
(jsonData) => {
|
||||||
|
let maestroID = jsonData["maestroID"];
|
||||||
|
let playerID = jsonData["playerID"];
|
||||||
|
let playerName = jsonData["playerName"];
|
||||||
|
|
||||||
|
console.log("maestroID : " + maestroID);
|
||||||
|
console.log("playerID : " + playerID);
|
||||||
|
console.log("playerName : " + playerName);
|
||||||
|
|
||||||
|
sessionStorage.setItem("maestroID", maestroID);
|
||||||
|
sessionStorage.setItem("playerID", playerID);
|
||||||
|
sessionStorage.setItem("playerName", playerName);
|
||||||
|
location.href = "./../client/menu_app.html";
|
||||||
|
},
|
||||||
|
|
||||||
|
(errorMessage) => {
|
||||||
|
if($("#error_message").length) {
|
||||||
|
$("#error_message").text(errorMessage);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<body bgcolor="white">
|
||||||
|
</body>
|
||||||
|
|
||||||
|
|
||||||
|
</html>
|
||||||
@@ -43,12 +43,6 @@ function loadMaestroTestAccountInfo() {
|
|||||||
let xhr = new XMLHttpRequest(); //new로 생성.
|
let xhr = new XMLHttpRequest(); //new로 생성.
|
||||||
}
|
}
|
||||||
|
|
||||||
function playFree() {
|
|
||||||
loadMaestroTestAccountInfo();
|
|
||||||
// window.open("./../client/menu_app.html", "_blank");
|
|
||||||
location.href = "./../client/menu_app.html";
|
|
||||||
}
|
|
||||||
|
|
||||||
function experienceMaestro() {
|
function experienceMaestro() {
|
||||||
loadMaestroTestAccountInfo();
|
loadMaestroTestAccountInfo();
|
||||||
location.href = "./../maestro/main_menu.html";
|
location.href = "./../maestro/main_menu.html";
|
||||||
@@ -61,7 +55,7 @@ function experienceMaestro() {
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="player_free">
|
<div class="player_free">
|
||||||
<div class="col alignCenter">
|
<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>
|
</div>
|
||||||
|
|
||||||
<ul id="free_app_list">
|
<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() {
|
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 {
|
} else {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user