Add: menu app test player
This commit is contained in:
@@ -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>
|
||||||
@@ -27,7 +27,9 @@ function loadMaestroTestAccountInfo() {
|
|||||||
|
|
||||||
function runMaestroAccountApp() {
|
function runMaestroAccountApp() {
|
||||||
loadMaestroTestAccountInfo();
|
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() {
|
function deleteMaestroAllRecords() {
|
||||||
|
|||||||
@@ -33,9 +33,8 @@ function onChangePlayerCount() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onClickMaestroUpgrade() {
|
function onClickMaestroUpgrade() {
|
||||||
console.log("onClickMaestroUpgrade");
|
// console.log("onClickMaestroUpgrade");
|
||||||
location.href='./../maestro/upgrade.html';
|
location.href='./../maestro/upgrade.html';
|
||||||
location.href = "www.yoursite.com";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$jsonReply = null;
|
$jsonReply = array();
|
||||||
|
|
||||||
function set_error_message($message) {
|
function set_error_message($message) {
|
||||||
global $jsonReply;
|
global $jsonReply;
|
||||||
|
|||||||
Reference in New Issue
Block a user