Add: show popup for experience maestro login
This commit is contained in:
@@ -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) {
|
||||
</script>
|
||||
|
||||
|
||||
<div class="modal fade" id="experienceMaestroModal" tabindex="-1" role="dialog" aria-labelledby="experienceMaestroModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header alert-danger">
|
||||
<h5 class="modal-title" id="exerienceMaestroModalLabel">체험 마에스트로 로그인</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
▶ [체험 마에스트로 계정] 데이터 초기화
|
||||
<br/>
|
||||
- 학생 목록이 샘플 데이터로 초기화되었습니다.<br/>
|
||||
- 다른 사람이 "체험 마에스트로" 계정으로 로그인 할 때에도, 모든 데이터가 초기화됩니다.<br/>
|
||||
<br/>
|
||||
▶ 체험판 [마에스트로 앱] 기능 제한 안내<br/>
|
||||
- 타자, 마우스 앱 연습 결과가 서버에 저장되지 않습니다.<br/>
|
||||
- 모든 컨텐츠는 30초만 플레이하실 수 있습니다.<br/>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<!-- <button type="button" class="btn btn-primary">Save changes</button> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="container">
|
||||
<div class="row border border-primary rounded py-2 mx-1 my-2">
|
||||
|
||||
Reference in New Issue
Block a user