From 09a53ad2b5fffeafe35b7406dd08a6a8729820fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Fri, 13 Jul 2018 10:13:40 +0900 Subject: [PATCH] Add: free player, maestro test account app menu pages --- .../maestro_test_account_app_menu.html | 58 +++++++++++++++++++ src/web/main/free_player_app_menu.html | 58 +++++++++++++++++++ src/web/module/home_section.html | 8 +-- src/web/module/maestro_header.html | 58 ------------------- 4 files changed, 117 insertions(+), 65 deletions(-) create mode 100644 src/web/maestro/maestro_test_account_app_menu.html create mode 100644 src/web/main/free_player_app_menu.html diff --git a/src/web/maestro/maestro_test_account_app_menu.html b/src/web/maestro/maestro_test_account_app_menu.html new file mode 100644 index 0000000..df2858f --- /dev/null +++ b/src/web/maestro/maestro_test_account_app_menu.html @@ -0,0 +1,58 @@ + + + + + 마우스 타자 연습 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/web/main/free_player_app_menu.html b/src/web/main/free_player_app_menu.html new file mode 100644 index 0000000..df2858f --- /dev/null +++ b/src/web/main/free_player_app_menu.html @@ -0,0 +1,58 @@ + + + + + 마우스 타자 연습 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/web/module/home_section.html b/src/web/module/home_section.html index 9797bc3..2b80c64 100644 --- a/src/web/module/home_section.html +++ b/src/web/module/home_section.html @@ -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() {
    diff --git a/src/web/module/maestro_header.html b/src/web/module/maestro_header.html index 803e1a4..574fa5f 100644 --- a/src/web/module/maestro_header.html +++ b/src/web/module/maestro_header.html @@ -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 { } }