From 304336a4a2e02d136280c78c87ae73c5dea1df0b Mon Sep 17 00:00:00 2001 From: Geoff Doty Date: Tue, 29 Sep 2020 01:25:27 -0400 Subject: [PATCH] calorie entry / save on same line --- public/css/styles.css | 6 ++++++ public/index.html | 14 ++++---------- public/js/index.js | 3 +-- 3 files changed, 11 insertions(+), 12 deletions(-) diff --git a/public/css/styles.css b/public/css/styles.css index d121625..0ecd5ef 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -27,3 +27,9 @@ .collection-item:hover {background: #EEE} .datepicker-day-button {color: #000} + +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} diff --git a/public/index.html b/public/index.html index c869d1a..fff7fa0 100644 --- a/public/index.html +++ b/public/index.html @@ -58,14 +58,13 @@
-
- - -
-
+
+
+ +
@@ -79,11 +78,6 @@
-
-
- -
-
diff --git a/public/js/index.js b/public/js/index.js index 4584bc6..e016d1a 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -111,7 +111,6 @@ Litedom({ save() { // capture quick form entry let calories = document.getElementById('calories'); - let name = document.getElementById('name'); // source of calories let source = (calories) => { @@ -126,7 +125,7 @@ Litedom({ // add new entry db.entries.add({ - name: String(name.value), + name: '', target: 'calorie', type: source(calories), value: Number(calories.value),