summaryrefslogtreecommitdiff
path: root/app/static/js/record.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/static/js/record.js')
-rw-r--r--app/static/js/record.js18
1 files changed, 17 insertions, 1 deletions
diff --git a/app/static/js/record.js b/app/static/js/record.js
index 137786e..86d59fb 100644
--- a/app/static/js/record.js
+++ b/app/static/js/record.js
@@ -87,7 +87,7 @@ function onClickSetCheck(elem) {
function onClickAddSet(elem) {
// Create the new row
- let tableBody = elem.parentElement.parentElement.children[2].children[1];
+ let tableBody = elem.parentElement.parentElement.children[0].children[1];
let row = tableBody.children[0].cloneNode(true);
// Add new row to table
@@ -96,3 +96,19 @@ function onClickAddSet(elem) {
row.addEventListener('keydown', handleEnterKey)
tableBody.appendChild(row)
}
+
+function loadTimerTimes() {
+
+}
+
+function onClickPausePlayTimer(elem) {
+ if (elem.children[0].children[0].classList.contains('fa-play')) {
+ paused = false;
+ elem.children[0].children[0].classList.remove('fa-play');
+ elem.children[0].children[0].classList.add('fa-pause');
+ } else {
+ paused = true;
+ elem.children[0].children[0].classList.add('fa-play');
+ elem.children[0].children[0].classList.remove('fa-pause');
+ }
+}