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>
|
<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>
|
||||||
|
Reference in New Issue
Block a user