Skip to content

Commit

Permalink
fj;a
Browse files Browse the repository at this point in the history
  • Loading branch information
tipubandlapalli committed Apr 22, 2024
1 parent 457c096 commit 78aa7c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ function calAns (){
let final = parseInt(final_input.value);
let initial = parseInt(initial_input.value);

if(final < 0 ){final = 0; }
if(final > 10 ){final = 10; }

if (initial < 0) { initial = 0 ;}
if (initial > 10) { initial = 10 ;}

if (eu.value == 'J') {

ans_e = (-2.18) * (Math.pow(final , -2 ) - Math.pow(initial , -2 )) ;
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<form action="#">
<label for="final">
<p>final state</p>
<input type="number" id="final" min="1" max="10">
<input type="number" id="final" min="1" >
</label>
<label for="final">
<p>initial state</p>
<input type="number" id="initial" min="1" max="10">
<input type="number" id="initial" min="1" >
</label>
<div class="result_board">
<button type="submit" id="submit">&nbsp;Submit&nbsp;</button>
Expand Down

0 comments on commit 78aa7c8

Please sign in to comment.