瀏覽代碼

Create button on workout menu to view workout history.

Lee Morgan 1 年之前
父節點
當前提交
8cf07c4187
共有 3 個文件被更改,包括 7 次插入0 次删除
  1. 1 0
      .gitignore
  2. 0 0
      build.html
  3. 6 0
      views/js/pages/workoutMenu.js

+ 1 - 0
.gitignore

@@ -2,3 +2,4 @@ node_modules/
 views/build/
 *.swp
 *.swo
+build.html

文件差異過大導致無法顯示
+ 0 - 0
build.html


+ 6 - 0
views/js/pages/workoutMenu.js

@@ -25,6 +25,12 @@ export default {
         });
         container.appendChild(start);
 
+        const history = document.createElement("button");
+        history.classList.add("button");
+        history.textContent = "Workout History";
+        history.addEventListener("click", ()=>{changePage("sessionHistory", workout)});
+        container.appendChild(history);
+
         const edit = document.createElement("button");
         edit.classList.add("button");
         edit.textContent = "Edit Workout";

部分文件因文件數量過多而無法顯示