-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (29 loc) · 1006 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css" />
<title> Fuel Calculator</title>
</head>
<!-- created with passion for coding by Luc <<https://accolades.dev>> -->
<body>
<div id="container"> </div>
<h1>Fuel Calculator </h1>
<form>
<label for="distance">Distance (km):</label>
<input type="number" id="distance" required>
<label for="price">Price per liter (€):</label>
<input type="number" id="price" step=".01" required>
<label for="consumption">Fuel consumption (liters/100km):</label>
<input type="number" id="consumption" required>
<div>
<button id="calculate" disabled>Calculate</button>
</div>
</form>
<div id="result"></div>
<button type="button" id="reset" style="display:none;">Reset</button>
<script src="script.js"></script>
</body>
</html>