Fix: show player count
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
$("#maestro_name").focus();
|
||||
});
|
||||
|
||||
function login() {
|
||||
let name = $("#maestro_name").val();
|
||||
let password = $("#password").val();
|
||||
|
||||
@@ -14,7 +14,13 @@ $(document).ready(function() {
|
||||
|
||||
function onLoadSuccessMaestroInfo() {
|
||||
$("#maestro_info_id").text(maestroInfo.maestroName + "님, 환영합니다.");
|
||||
$("#maestro_info_player_count").text("학생수 : " + maestroInfo.getRegisteredPlayerCount() + " / " + maestroInfo.getMaxPlayerCount());
|
||||
$("#maestro_info_player_count").val("학생수 : " + maestroInfo.getRegisteredPlayerCount() + " / " + maestroInfo.getMaxPlayerCount());
|
||||
|
||||
if(maestroInfo.getRegisteredPlayerCount() === maestroInfo.getMaxPlayerCount()) {
|
||||
$("#maestro_info_player_count").addClass("text-danger borer-danger");
|
||||
} else if(maestroInfo.getRegisteredPlayerCount() + 5 > maestroInfo.getMaxPlayerCount()) {
|
||||
$("#maestro_info_player_count").addClass("text-danger");
|
||||
}
|
||||
}
|
||||
|
||||
function onLoadFailMaestroInfo(errorMessage, errorCode) {
|
||||
@@ -43,7 +49,7 @@ function onClickMaestroUpgrade() {
|
||||
|
||||
<div class="eyebrow ml-auto mt-0 d-md-flex align-items-center">
|
||||
<div class="input-group my-auto">
|
||||
<input type="text" class="form-control" value="학생수 :">
|
||||
<input type="text" id="maestro_info_player_count" class="form-control" value="학생수 :">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-primary px-3 mr-2" type="button" onClick="location.href='./../maestro/upgrade.html';">업그레이드</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user