Update crsclock.js
parent
cdaea15658
commit
dfde5c8ffb
|
|
@ -610,7 +610,7 @@ function calibrateBT() {
|
||||||
Bangle.setUI(uiOpts);
|
Bangle.setUI(uiOpts);
|
||||||
});
|
});
|
||||||
})(d);
|
})(d);
|
||||||
m["−" + d + "h"] = (() => () => {
|
m["-" + d + "h"] = (() => () => {
|
||||||
S.phaseOffset -= d;
|
S.phaseOffset -= d;
|
||||||
saveSettings();
|
saveSettings();
|
||||||
E.showAlert("Offset now: " + (S.phaseOffset>=0? "+"+S.phaseOffset : S.phaseOffset) + "h").then(() => {
|
E.showAlert("Offset now: " + (S.phaseOffset>=0? "+"+S.phaseOffset : S.phaseOffset) + "h").then(() => {
|
||||||
|
|
@ -711,7 +711,7 @@ function setBioTimeReference() {
|
||||||
E.showMenu(m);
|
E.showMenu(m);
|
||||||
|
|
||||||
function promptRefTime() {
|
function promptRefTime() {
|
||||||
E.showPrompt("Hour (0–23)?").then(h => {
|
E.showPrompt("Hour (0-23)?").then(h => {
|
||||||
if (h===undefined || h<0 || h>23) {
|
if (h===undefined || h<0 || h>23) {
|
||||||
E.showAlert("Invalid hour").then(() => {
|
E.showAlert("Invalid hour").then(() => {
|
||||||
drawClock();
|
drawClock();
|
||||||
|
|
@ -720,7 +720,7 @@ function setBioTimeReference() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
S.bioTimeRefHour = h;
|
S.bioTimeRefHour = h;
|
||||||
E.showPrompt("Minute (0–59)?").then(m => {
|
E.showPrompt("Minute (0-59)?").then(m => {
|
||||||
if (m===undefined || m<0 || m>59) {
|
if (m===undefined || m<0 || m>59) {
|
||||||
E.showAlert("Invalid minute").then(() => {
|
E.showAlert("Invalid minute").then(() => {
|
||||||
drawClock();
|
drawClock();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue