-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (46 loc) · 1.81 KB
/
index.html
File metadata and controls
48 lines (46 loc) · 1.81 KB
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 lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Temperature convertor</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Temperature convertor</h1>
<form action="" method="post" id="form">
<h2 >Type of conversion</h2>
<div class="btn-section">
<button type="button"
class="Celsius"
onclick="getTypeTemperatureInput('Celsius');">Celsius</button>
<button
class="Fahrenheit"
type="button" onclick="getTypeTemperatureInput('Fahrenheit');">Fahrenheit </button>
<button
class="Kelvin"
type="button" onclick="getTypeTemperatureInput('Kelvin');">Kelvin </button>
</div>
<div class="input-section">
<label for="response">Temperature</label>
<input type="text" name="response" id="response" placeholder="12">
</div>
<div class="btn-section">
<button type="button"
class="Celsius_output"
onclick="getTypeTemperatureOutput('Celsius');">Celsius</button>
<button
class="Fahrenheit_output"
type="button" onclick="getTypeTemperatureOutput('Fahrenheit');">Fahrenheit </button>
<button
class="Kelvin_output"
type="button" onclick="getTypeTemperatureOutput('Kelvin');">Kelvin </button>
</div>
<button id="btn-submit" type="button" onclick="getSentenceResult();">Submit</button>
<section id="element_result" style="font-size: larger;">
</section>
</form>
</body>
<script src="./main.js"></script>
</html>