aboutsummaryrefslogtreecommitdiff
path: root/app/utils.js
diff options
context:
space:
mode:
authorGravatar Daniel Smith <rdnlsmith@gmail.com> 2019-05-20 14:25:02 -0400
committerGravatar Daniel Smith <rdnlsmith@gmail.com> 2019-05-20 14:25:02 -0400
commitbdc815dfb0ed1cbc6d562af394d19397e7cb10a5 (patch)
treee6fd190ea871ee971603a6e9b169bb68b244aad9 /app/utils.js
parentd0b45bd251eb1f646d5771d5a183855634d2c3ed (diff)
Integrate KiezelPay/Fitbit_Realistic_HRM
Diffstat (limited to 'app/utils.js')
-rw-r--r--app/utils.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/utils.js b/app/utils.js
index d401564..53ab424 100644
--- a/app/utils.js
+++ b/app/utils.js
@@ -5,3 +5,12 @@ export function zeroPad(i) {
}
return i;
}
+
+export function drawDigit(val, place) {
+ place.image = `quantifier/${val}.png`
+ if (val == 1) {
+ place.width = 11;
+ } else {
+ place.width = 18;
+ }
+}