Skip to content

Commit

Permalink
updated app.js,
Browse files Browse the repository at this point in the history
  • Loading branch information
Benrobo committed Sep 12, 2021
1 parent 54d3453 commit 0023c56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions views/dashboard.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@
</div>
<div class="measurement-screen">
<div class="head">
<h2>HEIGHT (FT)</h2>
<h2>WEIGHT (lb)</h2>
<h2>HEIGHT (M)</h2>
<h2>WEIGHT (KG)</h2>
</div>
<div class="inputs">
<input
Expand Down
4 changes: 2 additions & 2 deletions views/statics/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ const BMI_ALGORITHM = function () {
} else {
calcbtn.classList.remove("inactive");

meter = Math.pow(height.value / 3.281, 2);
kg = weight.value / 2.205;
meter = Math.pow(height.value, 2);
kg = weight.value;
bmi = (kg / meter).toFixed(2);

//bmi data
Expand Down

0 comments on commit 0023c56

Please sign in to comment.