1
0
Fork 0

Update settings.js

Added CAL_ROWS_PRIOR
master
dormio 2024-12-17 23:12:54 -05:00 committed by GitHub
parent a633a9f4ba
commit e46bdcb922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

View File

@ -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",