mirror of https://github.com/espruino/BangleApps
commit
f6432ef7b9
|
@ -3,3 +3,4 @@
|
||||||
0.03: Fix BG/FG Color if e.g. theme background is black
|
0.03: Fix BG/FG Color if e.g. theme background is black
|
||||||
0.04: Get time zone from settings for showing the clock
|
0.04: Get time zone from settings for showing the clock
|
||||||
0.05: Minor code improvements
|
0.05: Minor code improvements
|
||||||
|
0.06: Adjust format of title, save counter before leaving help screen
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Tea Timer app
|
# Tea Timer app
|
||||||
|
|
||||||
A simple timer. You can easyly set up the time. The initial time is 2:30
|
A simple timer. You can easily set up the time. The initial time is 2:30
|
||||||
|
|
||||||
On the first screen, you can
|
On the first screen, you can
|
||||||
- tap to get help
|
- tap to get help
|
||||||
|
|
|
@ -18,7 +18,7 @@ E.setTimeZone(setting.timezone);
|
||||||
|
|
||||||
// Title showing current time
|
// Title showing current time
|
||||||
function appTitle() {
|
function appTitle() {
|
||||||
return "Tea Timer " + currentTime();
|
return "Tea Timer\n" + currentTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
function currentTime() {
|
function currentTime() {
|
||||||
|
@ -28,7 +28,7 @@ function currentTime() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function timeFormated(sec) {
|
function timeFormated(sec) {
|
||||||
var min = Math.floor(sec / 60);
|
let min = Math.floor(sec / 60);
|
||||||
sec = sec % 60;
|
sec = sec % 60;
|
||||||
if (sec < 10) sec = "0" + sec;
|
if (sec < 10) sec = "0" + sec;
|
||||||
return min + ":" + sec;
|
return min + ":" + sec;
|
||||||
|
@ -223,6 +223,7 @@ function showHelp() {
|
||||||
}
|
}
|
||||||
// return to start
|
// return to start
|
||||||
else if (state == states.help) {
|
else if (state == states.help) {
|
||||||
|
counterStart = counter;
|
||||||
initTimer();
|
initTimer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -233,4 +234,4 @@ initDragEvents();
|
||||||
Bangle.on('touch', function(button, xy) { showHelp(); });
|
Bangle.on('touch', function(button, xy) { showHelp(); });
|
||||||
// event handling for button1
|
// event handling for button1
|
||||||
setWatch(buttonPressed, BTN1, {repeat: true});
|
setWatch(buttonPressed, BTN1, {repeat: true});
|
||||||
initTimer();
|
initTimer();
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"id": "teatimer",
|
"id": "teatimer",
|
||||||
"name": "Tea Timer",
|
"name": "Tea Timer",
|
||||||
"version": "0.05",
|
"version": "0.06",
|
||||||
"description": "A simple timer. You can easyly set up the time.",
|
"description": "A simple timer. You can easily set up the time.",
|
||||||
"icon": "teatimer.png",
|
"icon": "teatimer.png",
|
||||||
"type": "app",
|
"type": "app",
|
||||||
"tags": "tool",
|
"tags": "tool",
|
||||||
|
|
Loading…
Reference in New Issue