commit
1add0622b7
|
|
@ -0,0 +1,2 @@
|
||||||
|
0.01: New app!
|
||||||
|
0.02: Fixed interaction with recorder UI listeners
|
||||||
|
|
@ -252,6 +252,7 @@ var _a, _b, _c;
|
||||||
};
|
};
|
||||||
var init = function () {
|
var init = function () {
|
||||||
g.clear();
|
g.clear();
|
||||||
|
layout_1.setUI();
|
||||||
drawRep_1();
|
drawRep_1();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -233,7 +233,7 @@ class State {
|
||||||
currentRepIndex() {
|
currentRepIndex() {
|
||||||
const elapsed = this.getElapsedTotal();
|
const elapsed = this.getElapsedTotal();
|
||||||
let ent;
|
let ent;
|
||||||
for(let i = 0; ent = reps[i]; i++)
|
for(let i = 0; (ent = reps[i]); i++)
|
||||||
if(elapsed < ent.accDur)
|
if(elapsed < ent.accDur)
|
||||||
return i;
|
return i;
|
||||||
return null;
|
return null;
|
||||||
|
|
@ -316,6 +316,7 @@ const buzzNewRep = () => {
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
g.clear();
|
g.clear();
|
||||||
|
layout.setUI();
|
||||||
drawRep();
|
drawRep();
|
||||||
|
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
|
|
|
||||||
|
|
@ -59,8 +59,8 @@ function renderRep(rep) {
|
||||||
}
|
}
|
||||||
buttonDelete.appendChild(iconDelete);
|
buttonDelete.appendChild(iconDelete);
|
||||||
buttonDelete.onclick = (e => {
|
buttonDelete.onclick = (e => {
|
||||||
reps = reps.filter(a => a !== alarm);
|
reps = reps.filter(a => a !== rep);
|
||||||
document.getElementById("events").removeChild(tr);
|
document.getElementById("repsTable").removeChild(tr);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
tdInfo.appendChild(buttonDelete);
|
tdInfo.appendChild(buttonDelete);
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"id": "rep",
|
"id": "rep",
|
||||||
"name": "Rep",
|
"name": "Rep",
|
||||||
"version":"0.01",
|
"version":"0.02",
|
||||||
"description": "Time running reps, using a rep schedule/program uploaded via the app loader",
|
"description": "Time running reps, using a rep schedule/program uploaded via the app loader",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "run,running,fitness,outdoors",
|
"tags": "run,running,fitness,outdoors",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue