-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPetrolCalc.html
39 lines (39 loc) · 1.22 KB
/
PetrolCalc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Petrol Calculator</title>
<link rel="stylesheet" href="style.css">
<script src="PetrolCalc.js"></script>
</head>
<body>
<nav>
<a class="title" href="index.html">← Back</a>
</nav>
<div class="container">
<p>
Welcome to my Petrol Price Calculator.
With this page you can calculte the cost of your car trip
<br><br>
Use "." instead of ","
</p>
<br>
<p>Current Petrol Price (€):</p>
<input type="text" name="petrolprice" id="petrolprice">
<br><br>
<p>Average Fuel Consumption (l/100km):</p>
<input type="text" name="consumption" id="consumption">
<br><br>
<p>Distance (km) :</p>
<input type="text" name="distance" id="distance">
<br><br>
<p>There and back?</p>
<input type="checkbox" name="thereandback" id="thereandback" class="checkbox">
<br><br>
<button onclick="calculateCost()">Calculate Cost</button>
<br><br>
<p class="result" id="result"></p>
</div>
</body>
</html>