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>
|
||||
Reference in New Issue
Block a user