-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (81 loc) · 3.2 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Konversi Suhu</title>
<meta name="color-scheme" content="light dark">
<link rel="stylesheet" href="./css/style.css">
<style>
body {
box-sizing: border-box;
min-width: 200px;
max-width: 980px;
margin: 0 auto;
padding: 45px;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #0d1117;
}
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css">
<script src="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> <!-- LaTeX for math thing -->
</head>
<body>
<article class="markdown-body">
<h1><a id="user-content-h1" class="anchor" href="#kalkulator-konversi-suhu" aria-hidden="true"><span class="octicon octicon-link"></span></a>Kalkulator Konversi Suhu</h1>
<p style="font-size: 17px;">Masukkan suhu derajat ke kotak dibawah, lalu pilih jenis konversinya dan tekan tombol konversi untuk mendapatkan hasil konversi sesuai yang di inginkan.</p>
<div class="container">
<div class="row">
<div class="box">
<label for="input-suhu">Input Suhu:</label>
<br>
<textarea type="text" id="input-suhu"></textarea>
</div>
<div class="box">
<label for="jenis-konversi">Pilih Jenis Konversi:</label>
<br>
<select id="jenis-konversi">
<option value="celsius-to-fahrenheit">Celsius ke Fahrenheit</option>
<option value="fahrenheit-to-celsius">Fahrenheit ke Celsius</option>
<option value="celsius-to-kelvin">Celsius ke Kelvin</option>
<option value="kelvin-to-celsius">Kelvin ke Celsius</option>
<option value="fahrenheit-to-kelvin">Fahrenheit ke Kelvin</option>
<option value="kelvin-to-fahrenheit">Kelvin ke Fahrenheit</option>
</select>
<button onclick="reverseKonversi()">Reverse</button>
<button onclick="konversi()">Konversi</button>
<br><br>
<blockquote>
<p>
Hasil akan muncul setelah memasukkan angka pada inputan dan menekan tombol konversi atau "enter".
</p>
</blockquote>
</div>
</div>
<div class="row">
<div class="box">
<label for="output-suhu">Hasil Konversi:</label>
<br>
<textarea type="text" id="output-suhu" readonly></textarea>
</div>
<div class="box">
<label for="kalkulasi">Cara kalkulasi:</label>
<br>
<textarea id="kalkulasi" readonly></textarea>
</div>
</div>
</div>
<h2><a id="user-content-h1" class="anchor" href="#cara-konversi" aria-hidden="true"><span class="octicon octicon-link"></span></a>Cara Konversi</h2>
<div id="descRumus"></div>
<br>
<div id="rumus"></div>
<!-- menambahkan script untuk membuat elemen-elemen diatas bekerja -->
<script src="./js/script.js"></script>
</article>
</body>
</html>