From 0f848de16ff4711e2d77cd93e345c679faed6cbc Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Mon, 20 May 2019 14:39:05 -0400 Subject: Darken leading 0 in date --- app/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3