Add: menu app test player

This commit is contained in:
2018-08-06 17:06:21 +09:00
parent 0fc0456c16
commit f39b64d60e
4 changed files with 69 additions and 4 deletions
+64
View File
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>메뉴</title>
<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/lib/account_validator.js"></script>
<script type="text/javascript" src="./../js/lib/maestro_info.js"></script>
<script type="text/javascript" src="./../js/request_server.js"></script>
<script>
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);
location.href='./../client/menu_app.html';
},
(errorMessage, errorCode) => {
if($("#error_message").length) {
$("#error_message").text(errorMessage);
}
}
);
}
$(document).ready(function() {
loadMaestroTestAccountInfo();
});
</script>
<style>
body{
padding: 0;
margin: 0;
}
canvas{
margin: 0 auto;
}
</style>
</head>
<body>
<div id="MenuApp" style="text-align:center;" />
</body>
</html>
+3 -1
View File
@@ -27,7 +27,9 @@ function loadMaestroTestAccountInfo() {
function runMaestroAccountApp() {
loadMaestroTestAccountInfo();
window.open("./../client/menu_app.html", "_blank");
// window.open("./../client/menu_app.html", "_blank");
// menu_app_test_player
window.open("./../client/menu_app_test_player.html", "_blank");
}
function deleteMaestroAllRecords() {
+1 -2
View File
@@ -33,9 +33,8 @@ function onChangePlayerCount() {
}
function onClickMaestroUpgrade() {
console.log("onClickMaestroUpgrade");
// console.log("onClickMaestroUpgrade");
location.href='./../maestro/upgrade.html';
location.href = "www.yoursite.com";
}
</script>
+1 -1
View File
@@ -1,6 +1,6 @@
<?php
$jsonReply = null;
$jsonReply = array();
function set_error_message($message) {
global $jsonReply;