Browse Source

Adjust height of the timer bar

pull/6/head
Pisces000221 8 years ago
parent
commit
3be7441335
  1. 2
      views/contest.ejs

2
views/contest.ejs

@ -19,7 +19,7 @@
<%= end %> <%= end %>
</div> </div>
<% let timePercentage = Math.floor(Math.min(1, (syzoj.utils.getCurrentDate() - contest.start_time) / (contest.end_time - contest.start_time)) * 100); %> <% let timePercentage = Math.floor(Math.min(1, (syzoj.utils.getCurrentDate() - contest.start_time) / (contest.end_time - contest.start_time)) * 100); %>
<div id="timer-progress" class="ui indicating progress<% if (timePercentage == 100) { %> success<% } %>" data-percent="<%= timePercentage %>"> <div id="timer-progress" class="ui tiny indicating progress<% if (timePercentage == 100) { %> success<% } %>" data-percent="<%= timePercentage %>">
<div class="bar" style="width: <%= timePercentage %>%;"></div> <div class="bar" style="width: <%= timePercentage %>%;"></div>
</div> </div>
<div class="ui grid"> <div class="ui grid">

Loading…
Cancel
Save