Skip to content

Commit

Permalink
limiter color
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbam committed Aug 19, 2019
1 parent a6a71a2 commit db926ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions static/timer.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ html {
}

.limiter_yellow {
color: #fa3;
color: #ea5;
}

.limiter_red {
color: #e43;
color: #e55;
}

.display {
Expand Down
4 changes: 2 additions & 2 deletions static/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ class Stopwatch {
this.limiter.innerText = this.format(this.limit);
this.display.innerText = this.format(this.times);

if (this.limit[0] <= 0) {
if (this.limit[0] <= 0 && this.limit[1] <= 30) {
this.limiter.classList.add("limiter_red");
this.limiter.classList.remove("limiter_yellow");
this.limiter.classList.remove("limiter_normal");
} else if (this.limit[0] <= 1) {
} else if (this.limit[0] <= 0 && this.limit[1] <= 60) {
this.limiter.classList.add("limiter_yellow");
this.limiter.classList.remove("limiter_normal");
this.limiter.classList.remove("limiter_red");
Expand Down

0 comments on commit db926ac

Please sign in to comment.