-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconverter.html
48 lines (33 loc) · 1.36 KB
/
converter.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
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Converter</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body class="converter-body">
<div class="converter-container">
<h1 id="converter-title">Converter</h1>
<!-- CUPS AND QUARTS -->
<div class="converter-input-and-buttons">
<input class="converter-input" placeholder="0" type="text" onchange="setX(this.value)">
<button onclick="cupsToQuarts()">Cups to Quarts</button>
<button onclick="quartsToCups()">Quarts to Cups</button>
</div>
<!-- METERS AND YARDS -->
<div class="converter-input-and-buttons">
<input class="converter-input" placeholder="0" type="text" onchange="setY(this.value)">
<button onclick="metersToYards()">Meters To Yards</button>
<button onclick="yardsToMeters()">Yards To Meters</button>
</div>
<!-- FARENHEIT AND CELSIUS -->
<div class="converter-input-and-buttons">
<input class="converter-input" placeholder="0" type="text" onchange="setZ(this.value)">
<button onclick="farenheitToCelsius()">Farenheit to Celsius</button>
<button onclick="celsiusToFarenheit()">Celsius to Farenheit</button>
</div>
</div>
<script src="js/converter.js"></script>
</body>
</html>