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