1
0
Fork 0

Update settings.js

master
Giles Booth 2022-08-19 17:48:05 +01:00 committed by GitHub
parent 23f2a6dbdb
commit fddcf5f45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@
E.showMenu({
"" : { "title" : "Seaside Watch" },
"< Back" : () => back(),
'High or low?': {
'Tide type': {
value: "high"|settings.nextTideType, // !! converts undefined to false
format: v => v?"high":"low ",
onchange: v => {
@ -23,15 +23,15 @@
writeSettings();
}
},
'Hour?': {
'Hour': {
value: 0|settings.nextTideHour, // 0| converts undefined to 0
min: 0, max: 23,
onchange: v => {
settings.nextTideHour = v;
writeSettings();
}
},
'Minutes?': {
},
'Minutes': {
value: 0|settings.nextTideMin, // 0| converts undefined to 0
min: 0, max: 59,
onchange: v => {