diff --git a/src/web/admin/activate_stage.html b/src/web/admin/activate_stage.html
deleted file mode 100644
index 8232f01..0000000
--- a/src/web/admin/activate_stage.html
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
- hello phaser!
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/web/admin/add_user.html b/src/web/admin/add_user.html
deleted file mode 100644
index 249b08a..0000000
--- a/src/web/admin/add_user.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
- hello phaser!
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/web/js/maestro_main.js b/src/web/js/maestro_main.js
index fb04cf2..86cc221 100644
--- a/src/web/js/maestro_main.js
+++ b/src/web/js/maestro_main.js
@@ -1,17 +1,10 @@
-let maestroID = -1;
-
-let addPlayerListManager;
+let addPlayerListManager;
let searchPlayerListManager;
let mouseAppList;
let typingAppList;
-$(document).ready(function() {
- maestroID = sessionStorage.getItem("maestroID");
- console.log("maestroID : " + maestroID);
-});
-
function tabClicked(tabNo) {
// hide and show tab
for(let i = 0; i < 4; i++) {
diff --git a/src/web/js/main.js b/src/web/js/main.js
new file mode 100644
index 0000000..530790c
--- /dev/null
+++ b/src/web/js/main.js
@@ -0,0 +1,37 @@
+let maestroID = -1;
+
+$(document).ready(function() {
+ loadMaestroID();
+});
+
+
+function loadMaestroID() {
+ maestroID = sessionStorage.getItem("maestroID");
+ if(maestroID === null) {
+ maestroID = -1;
+ sessionStorage.setItem("maestroID", maestroID);
+ }
+ maestroID = Number(maestroID);
+ console.log("loaded maestroID : " + maestroID);
+}
+
+function saveMaestroID() {
+ sessionStorage.setItem("maestroID", maestroID);
+ console.log("saved maestroID : " + maestroID);
+}
+
+function goHome() {
+ if(maestroID === -1) {
+ location.href = "./../main/index.html";
+ } else {
+ location.href = "./../maestro/main_menu.html";
+ }
+}
+
+function logout() {
+ sessionStorage.clear();
+ maestroID = -1;
+ sessionStorage.setItem("maestroID", maestroID);
+ location.href = './../main/index.html';
+}
+
diff --git a/src/web/maestro/login.html b/src/web/maestro/login.html
index c664b40..330fc07 100644
--- a/src/web/maestro/login.html
+++ b/src/web/maestro/login.html
@@ -9,6 +9,7 @@
+
+
diff --git a/src/web/maestro/register.html b/src/web/maestro/register.html
index d9195a4..29c3855 100644
--- a/src/web/maestro/register.html
+++ b/src/web/maestro/register.html
@@ -9,18 +9,12 @@
+
diff --git a/src/web/main/faq.html b/src/web/main/faq.html
index d4375f5..148592c 100644
--- a/src/web/main/faq.html
+++ b/src/web/main/faq.html
@@ -9,18 +9,12 @@
+
diff --git a/src/web/main/index.html b/src/web/main/index.html
index 7c839ac..7fe16a7 100644
--- a/src/web/main/index.html
+++ b/src/web/main/index.html
@@ -9,21 +9,12 @@
+
diff --git a/src/web/module/header.html b/src/web/module/header.html
index 40b04b0..b6fd974 100644
--- a/src/web/module/header.html
+++ b/src/web/module/header.html
@@ -21,12 +21,11 @@
-
- 마우스 타자
연습 홈
+ 마우스 타자
연습 홈
diff --git a/src/web/module/home_section.html b/src/web/module/home_section.html
index 3f75bb6..3d86d0c 100644
--- a/src/web/module/home_section.html
+++ b/src/web/module/home_section.html
@@ -12,6 +12,19 @@
+
+
+
+