From dde852faf823bd219d8eec09da0ea60f8a5a4c32 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Thu, 17 Aug 2023 15:48:38 +0200 Subject: Updated 3 files (automated) --- web/apps/alarms.html | 10 ++++++++++ web/apps/alarms.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ web/src/appmanager.js | 2 +- 3 files changed, 55 insertions(+), 1 deletion(-) diff --git a/web/apps/alarms.html b/web/apps/alarms.html index 0471abd..a0b3cca 100644 --- a/web/apps/alarms.html +++ b/web/apps/alarms.html @@ -40,6 +40,16 @@ color: var(--text-color); opacity: .5; } + + select { + background: transparent; + border: none; + font-size: inherit; + width: max-content; + outline: none; + -webkit-appearance: media-slider; + display: inline-block; + } diff --git a/web/apps/alarms.js b/web/apps/alarms.js index e69de29..8a6b4d6 100644 --- a/web/apps/alarms.js +++ b/web/apps/alarms.js @@ -0,0 +1,44 @@ +window.alarms = window.parent.alarms; + +while (window.alarms.length < 5) { + window.alarms.push({ + enabled: false, + time: 0, + repeat: 0, + alarm: 3 + }); +} + +document.getElementById("alarms").innerHTML = window.alarms.map(i => ` +
+
+
+ : +
+
+ +
+
+
S
+
M
+
T
+
W
+
T
+
F
+
S
+
+
+`).join(""); \ No newline at end of file diff --git a/web/src/appmanager.js b/web/src/appmanager.js index 3f0b027..999e265 100644 --- a/web/src/appmanager.js +++ b/web/src/appmanager.js @@ -23,6 +23,6 @@ function openApp(title, url, external) { document.getElementById("app").classList.add("show-native"); window.engine.startApp(url); } else { - document.getElementById("app-frame").src = url; + document.getElementById("app-frame").src = url + "?_=" + Math.random(); } } \ No newline at end of file -- cgit