From 43545bc8d184677f870b683b661a0986f75a27c0 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: Wed, 26 Sep 2018 07:18:04 +0900 Subject: [PATCH] Add: show popup for experience maestro login --- src/web/module/maestro_section_main.html | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/web/module/maestro_section_main.html b/src/web/module/maestro_section_main.html index 183d63c..78c5ec3 100644 --- a/src/web/module/maestro_section_main.html +++ b/src/web/module/maestro_section_main.html @@ -12,6 +12,16 @@ $(document).ready(function() { maestroInfo.loadMaestroInfo(onLoadSuccessMaestroInfo, onLoadFailMaestroInfo); }); +function isExperienceMaestroAccount() { + var maestroAccountType = maestroInfo.accountType; + console.log("maestroAccountType : " + maestroAccountType); + if(maestroAccountType == 101) + return true; + + return false; +} + + function onLoadSuccessMaestroInfo() { $("#maestro_info_id").text(maestroInfo.maestroName + "님, 환영합니다."); $("#maestro_info_player_count").val("학생수 : " + maestroInfo.getRegisteredPlayerCount() + " / " + maestroInfo.getMaxPlayerCount()); @@ -21,6 +31,9 @@ function onLoadSuccessMaestroInfo() { } else if(maestroInfo.getRegisteredPlayerCount() + 5 > maestroInfo.getMaxPlayerCount()) { $("#maestro_info_player_count").addClass("text-danger"); } + + if(isExperienceMaestroAccount()) + $("#experienceMaestroModal").modal(); } function onLoadFailMaestroInfo(errorMessage, errorCode) { @@ -74,6 +87,33 @@ function deactivateApp(appID) { + +