diff options
-rw-r--r-- | app/index.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/index.js b/app/index.js index c066693..5f21478 100644 --- a/app/index.js +++ b/app/index.js @@ -122,8 +122,15 @@ function setMins(val) { } function setDate(val) { - util.drawDigit(Math.floor(val / 10), date1); + let tens = Math.floor(val / 10); + util.drawDigit(tens, date1); util.drawDigit(Math.floor(val % 10), date2); + + if (tens == 0) { + date1.style.opacity = 0.2; + } else { + date1.style.opacity = 1; + } } function setDay(val) { |