update with first js vars
This commit is contained in:
13
aromacalc.js
13
aromacalc.js
@@ -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
|
||||
}
|
||||
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user