Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Bidijoe45/white-nova-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
alvrodri committed Jul 28, 2022
2 parents 6c1b8c5 + d96418d commit 13f368a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion extension/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ class Application {
const progress_bar_container = document.getElementById("progress-bar-container");
this.progress_bar = new ProgressBar(progress_bar_container, 50, "White Nova", this.coalition_color);

const contdown_text = document.getElementById('countdown-text');
contdown_text.innerHTML = this.days_left + " days left until next cycle";

this.getPanelButtons();
this.addButtonsEvents();
this.setWhiteNovaProgressBar();
Expand Down Expand Up @@ -205,7 +208,7 @@ class Application {
setTimeProgressBar() {
const progress = this.raw_hours / 12 * 100;
this.progress_bar.progress = progress;
this.progress_bar.text = this.hours + " hours " + this.minutes + " minutes ";
this.progress_bar.text = this.hours + "h " + this.minutes + "m / 12 hours";
}

setEvaluationsProgressBar() {
Expand Down
2 changes: 1 addition & 1 deletion extension/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>

<div id="nova-body">
<div id="countdown-text"> 3 days left until next cycle</div>
<div id="countdown-text">3 days left until next cycle</div>
<div id="panel-container">

<div class="panel-button" id="panel-time">
Expand Down

0 comments on commit 13f368a

Please sign in to comment.