mirror of https://github.com/espruino/BangleApps
multitimer: trim whitespace
parent
70ea8df149
commit
e6f61ccc6b
|
@ -6,6 +6,6 @@ With this app, you can set timers and chronographs (stopwatches) and watch them
|
|||
|
||||
## WARNING
|
||||
* Editing timers in another app (such as the default Alarm app) is not recommended. Editing alarms should not be a problem (in theory).
|
||||
* This app uses the [Scheduler library](https://banglejs.com/apps/?id=sched).
|
||||
* This app uses the [Scheduler library](https://banglejs.com/apps/?id=sched).
|
||||
* To avoid potential conflicts with other apps that uses sched (especially ones that make use of the data and js field), this app only lists timers and alarms that it created - any made outside the app will be ignored. GB alarms are currently an exception as they do not make use of the data and js field.
|
||||
* A keyboard app is only used for adding messages to timers and is therefore not strictly needed.
|
||||
|
|
|
@ -232,7 +232,7 @@ function editTimer(idx, a) {
|
|||
}
|
||||
var t = decodeTime(a.timer);
|
||||
|
||||
function editMsg(idx, a) {
|
||||
function editMsg(idx, a) {
|
||||
g.clear();
|
||||
idx < 0 ? msg = "" : msg = a.msg;
|
||||
require("textinput").input({text:msg}).then(result => {
|
||||
|
@ -385,7 +385,7 @@ function swMenu(idx, a) {
|
|||
}, 100 - (a.t % 100));
|
||||
}
|
||||
|
||||
function editMsg(idx, a) {
|
||||
function editMsg(idx, a) {
|
||||
g.clear();
|
||||
msg = a.msg;
|
||||
require("textinput").input({text:msg}).then(result => {
|
||||
|
@ -559,11 +559,11 @@ function editAlarm(idx, a) {
|
|||
else a = require("sched").newDefaultAlarm();
|
||||
}
|
||||
if (!a.data) {
|
||||
a.data = { hm: false, oneshot: false };
|
||||
a.data = { hm: false };
|
||||
}
|
||||
var t = decodeTime(a.t);
|
||||
|
||||
function editMsg(idx, a) {
|
||||
function editMsg(idx, a) {
|
||||
g.clear();
|
||||
idx < 0 ? msg = "" : msg = a.msg;
|
||||
require("textinput").input({text:msg}).then(result => {
|
||||
|
@ -659,7 +659,7 @@ Bangle.on("drag", e=>{
|
|||
if (layer < 0) return;
|
||||
if (!drag) { // start dragging
|
||||
drag = {x: e.x, y: e.y};
|
||||
}
|
||||
}
|
||||
else if (!e.b) { // released
|
||||
const dx = e.x-drag.x, dy = e.y-drag.y;
|
||||
drag = null;
|
||||
|
|
Loading…
Reference in New Issue