Fix: revice account info box in the top
This commit is contained in:
@@ -35,13 +35,15 @@ function showEndDate(date) {
|
||||
var endDay = new Date(endDate);
|
||||
var diffDay = (endDay.getTime() - today.getTime()) / (1000 * 60 * 60 * 24);
|
||||
|
||||
$("#maestro_count_down_date").html("~ " + endDate + "<br/>유효 기간 : " + Math.ceil(diffDay) + "일");
|
||||
$("#maestro_count_down_date").html("유효 기간 : ~ " + endDate + " <span id='countdown_day'>(남은 기간 : " + Math.ceil(diffDay) + "일)</span>");
|
||||
if(diffDay < 30)
|
||||
$("#maestro_count_down_date").addClass("text-danger");
|
||||
$("#countdown_day").addClass("text-danger");
|
||||
else if(diffDay < 10)
|
||||
$("#maestro_count_down_date").addClass("bg-danger text-light");
|
||||
$("#countdown_day").addClass("bg-danger text-light");
|
||||
else if(diffDay < 0)
|
||||
$("#maestro_count_down_date").addClass("bg-secondary text-light");
|
||||
$("#countdown_day").addClass("bg-secondary text-light");
|
||||
else
|
||||
$("#countdown_day").addClass("text-muted");
|
||||
}
|
||||
|
||||
function showPlayerCount(accountType, playerCount) {
|
||||
@@ -173,20 +175,17 @@ function upgradeMaestroInfo(accountType) {
|
||||
|
||||
<div class="container py-3">
|
||||
<div class="row border rounded border-dark py-2 mx-0 mb-3">
|
||||
<div id="maestro_info_id" class="col-sm pl-2 my-auto">
|
||||
<a class="btn btn-dark text-warning" href="javascript:void(0);" onClick="goHome()">< 마에스트로 [홈]</a>
|
||||
</div>
|
||||
<div id="maestro_count_down_date" class="col-sm-2 px-0 my-auto mx-1 text-center"></div>
|
||||
<div id="maestro_count_down_date" class="col-sm-6 my-auto text-left"></div>
|
||||
|
||||
<div class="col-sm-5 px-0 d-md-flex align-items-center">
|
||||
<div class="col-sm-6 d-md-flex align-items-right">
|
||||
<div class="input-group my-auto">
|
||||
<input type="text" id="maestro_info_player_count" class="form-control px-2 mx-0" value="학생수 :">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-primary px-2 mr-2 disabled" type="button" onClick="location.href='./../maestro/upgrade.html';">업그레이드</a>
|
||||
<a class="btn btn-primary px-2 mr-2 disabled" role="button" href="./../maestro/upgrade.html">업그레이드</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="btn btn-primary px-2 mr-2" href="./../maestro/setup.html">계정 정보 수정</a>
|
||||
<a class="btn btn-primary my-auto" href="./../maestro/setup.html">계정 정보 수정</a>
|
||||
</div>
|
||||
|
||||
</div> <!-- row border -->
|
||||
|
||||
Reference in New Issue
Block a user