From d61d21d483d729b27211e5457874bdd828600ba5 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Mon, 9 Dec 2024 03:01:27 +0300 Subject: [PATCH] move stats to left column --- src/app.js | 4 ++-- src/index.html | 34 ++++++++++++++++++++++------------ 2 files changed, 24 insertions(+), 14 deletions(-) diff --git a/src/app.js b/src/app.js index ae484e2..b0af3b9 100644 --- a/src/app.js +++ b/src/app.js @@ -138,8 +138,8 @@ function updateStats(breaths) { totalBreathInMonth += value.length; daysCount += 1; } - breathMonth.value = totalBreathInMonth; - breathAverage.value = Math.ceil(totalBreathInMonth / daysCount); + breathMonth.innerText = totalBreathInMonth; + breathAverage.innerText = Math.ceil(totalBreathInMonth / daysCount); } /* Внешний HTML Tooltip | Потом изменить */ diff --git a/src/index.html b/src/index.html index 2160802..153d4f4 100644 --- a/src/index.html +++ b/src/index.html @@ -32,22 +32,32 @@ + +

Статистика

+
+ + +
+

График

-
- -
-

Статистика

-
- Вдыханий за месяц - -
-
- Среднее количество вдыханий за сутки - -
+