Skip to content

Commit

Permalink
Fixed "start" funcion to wait for button click
Browse files Browse the repository at this point in the history
  • Loading branch information
edualvess committed Sep 27, 2022
1 parent ca2c2d1 commit 09f4dea
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ function start() {
var buttonCalc = document.querySelector('#buttonCalc');
buttonCalc.addEventListener('click', handleButtonClick);

var inputWeight = document.querySelector('#in-weight');
var inputHeight = document.querySelector('#in-height');

inputWeight.addEventListener('input', handleButtonClick);
inputHeight.addEventListener('input', handleButtonClick);

handleButtonClick();
}

Expand Down

0 comments on commit 09f4dea

Please sign in to comment.