update with first js vars

This commit is contained in:
2021-11-27 13:15:28 +01:00
parent 51b53e2911
commit 8c6a2bc657
2 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
function calculate(){
let aromaamount = document.getElementById("aromaamount").value
let aromaconc = document.getElementById("aromaconc").value
let vg = document.getElementById("vg").value
let pg = document.getElementById("pg").value
let other = document.getElementById("other").value
let nicdose = document.getElementById("nicdose").value
let nicshotamount = document.getElementById("nicshotamount").value
let nicshotnicppm = document.getElementById("nicshotnicppm").value
let nicshotvg = document.getElementById("nicshotvg").value
let nicshotpg = document.getElementById("nicshotpg").value
}

View File

@@ -1,3 +1,4 @@
<!DOCTYPE html>
<html>
<head>
<body>
@@ -55,7 +56,7 @@
</td>
</table>
<button name="calculate" type="button">Berechne</button>
<table>
<table style="display:none" id="results">
<caption>Ergebnisse:</caption>
<tr>
<td><label for="volume"> Gesamtmenge:</label></td>
@@ -78,6 +79,8 @@
<td><input type="text" id="amountothers" name="amountothers"></td>
</tr>
</table>
<script src="aromacalc.js">
</script>
</body>
</head>
</html>