From 86c51181764701546d0e2ae8328eee5b4e3f6b80 Mon Sep 17 00:00:00 2001 From: fioreale Date: Tue, 29 Aug 2023 23:27:14 +0200 Subject: [PATCH 1/4] adpated to bootstrap v5 + DARK MODE --- app/public/assets/JS/fillPage.js | 15 +- app/public/assets/JS/modifySerie.js | 5 +- app/public/index.html | 641 +++++++++++++++------------- 3 files changed, 347 insertions(+), 314 deletions(-) diff --git a/app/public/assets/JS/fillPage.js b/app/public/assets/JS/fillPage.js index 0768480..4576979 100644 --- a/app/public/assets/JS/fillPage.js +++ b/app/public/assets/JS/fillPage.js @@ -66,13 +66,14 @@ function fillExercise(name, serie) { function completeElement(name, num, carico, reps) { let nameToPlace = name.replace(/[^a-zA-Z0-9]+/g, ""); let exElement = - '
' + - '
' + - '' + + '
' + + '
' + + '' + - '
" + - '
'; + "
" + + '
'; return exElement; } @@ -95,7 +96,7 @@ function fillButtons(json) { json.schede.forEach((scheda) => { let name = scheda.name; let button = - '"; diff --git a/app/public/assets/JS/modifySerie.js b/app/public/assets/JS/modifySerie.js index e4be1f0..49f9597 100644 --- a/app/public/assets/JS/modifySerie.js +++ b/app/public/assets/JS/modifySerie.js @@ -10,8 +10,9 @@ function modifySerie() { elements.forEach((el) => { el.onclick = (event) => { weightMOD = - event.target.parentElement.firstElementChild.firstElementChild - .nextElementSibling.firstElementChild; + event.target.parentElement.parentElement.firstElementChild + .firstElementChild.firstElementChild.nextElementSibling + .firstElementChild; repsMOD = weightMOD.nextElementSibling; diff --git a/app/public/index.html b/app/public/index.html index 7d5528d..62daf91 100644 --- a/app/public/index.html +++ b/app/public/index.html @@ -1,275 +1,306 @@ - + + + + + + myFitnessAPP - + + + + + + - - myFitnessAPP -
-
-

- - logo - - myFitnessAPP -

- -
+
+
+ -
-
- - - -
- -
-
+ + + -
-
-
-
- - - - - +
+
+
+ + + +
+
+
-
01:00
-
- -
-
-
-
-
00:00
-
+ -
-
-
    -
  • -
    Esercizio 1
    -
    - - -
    -
    - - -
    -
    - -
  • +
+ -
  • -
    Esercizio 2
    -
    - - -
    -
    - - -
    -
    - - -
    -
  • - -
    -
    +
    +
    + 00:00 +
    +
    -
    -
    - -
    - + + +
    +
    +
      +
    • +
      Esercizio 1
      +
      + + +
      +
      + + +
      +
      + + +
      +
    • + +
    • +
      Esercizio 2
      +
      + + +
      +
      + + +
      +
      + + +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    +

    + Made with + + + by Alessio Fiorentino +

    + +
    + +
    @@ -557,7 +564,7 @@
    Nuovo Workout
    display.textContent = "TIME!"; } }, 1000); - + intervals.push(refreshSecond); }