From e46bdcb922131a77b00847fb5e26224d1cf53dc1 Mon Sep 17 00:00:00 2001 From: dormio <82835287+dormio@users.noreply.github.com> Date: Tue, 17 Dec 2024 23:12:54 -0500 Subject: [PATCH] Update settings.js Added CAL_ROWS_PRIOR --- apps/clockcal/settings.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/clockcal/settings.js b/apps/clockcal/settings.js index ddacb4a16..7af0e797c 100644 --- a/apps/clockcal/settings.js +++ b/apps/clockcal/settings.js @@ -2,6 +2,7 @@ var FILE = "clockcal.json"; const defaults={ CAL_ROWS: 4, //number of calendar rows.(weeks) Shouldn't exceed 5 when using widgets. + CAL_ROWS_PRIOR: 0, //number of calendar rows.(weeks) that show above the current week BUZZ_ON_BT: true, //2x slow buzz on disconnect, 2x fast buzz on connect. Will be extra widget eventually MODE24: true, //24h mode vs 12h mode FIRSTDAY: 6, //First day of the week: mo, tu, we, th, fr, sa, su @@ -39,6 +40,14 @@ writeSettings(); } }, + '#Cal Rows Prior': { + value: settings.CAL_ROWS_PRIOR, + min: 0, max: 4, + onchange: v => { + settings.CAL_ROWS_PRIOR = v; + writeSettings(); + } + }, 'Clock mode': { value: settings.MODE24, format: v => v ? "24h" : "12h",