-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
105 lines (98 loc) · 4.13 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="format-detection" content="telephone=no,address=no,email=no">
<meta name="viewport" content="width=device-width">
<meta name="robots" content="ALL">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kalkulator BMI</title>
<meta name="description" content="Kalkulator BMI sederhana untuk menghitung indeks massa tubuh Anda. Cari tahu berat badan ideal Anda untuk menjaga kesehatan tubuh.">
<meta name="keywords" content="kalkulator bmi, indeks massa tubuh, berat badan ideal, kesehatan tubuh">
<meta name="author" content="Diona Katzlein">
<meta name="author" content="Azwar Anas">
<meta name="robots" content="all">
<link rel="icon" type="image/png" sizes="16x16" href="./img/logo-1-t.png">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- Header and Menu Bar -->
<div class="header">
<a href="#default" class="logo">KaBMI</a>
<div class="header-right">
<a href="#play-store-co.revou.bmi"><img class="img-app" src="./img/google-play.png"></a>
<a href="#app-store-revou-bmi"><img class="img-app" src="./img/apple-store.jpg"></a>
</div>
</div>
<!-- End Header and Menu Bar -->
<!-- Main -->
<main>
<!-- HOME FORM -->
<section id="home" class="container">
<header>
<h1 class="title">KALKULATOR INDEX MASSA TUBUH</h1>
<p class="paragraph">
Berat badan ideal adalah impian semua orang. Tidak hanya memiliki bentuk tubuh yang menunjang penampilan, berat badan ideal juga menandakan kondisi tubuh yang sehat. Bagaimana denganmu? <br> Yuk, hitung sekarang di kalkulator BMI.
</p>
</header>
<div>
<form id="form" class="form" aria-label="Kalkulator BMI" onsubmit="return validasiForm()">
<div class="radio-button">
<label>Jenis Kelamin</label>
<ul>
<li>
<input type="radio" name="ygen" id="ymale" value="Pria" checked required>
<label for="male">Pria</label>
</li>
<li>
<input type="radio" name="ygen" id="yfemale" value="Wanita" required>
<label for="female">Wanita</label>
</li>
</ul>
</div>
<div class="text-input">
<label for="umur">Umur</label>
<input type="number" name="yage" id="yage" class="form-input" min="1" required>
</div>
<div class="text-input">
<label for="berat-badan">Berat Badan (kg)</label>
<input type="number" name="ybb" id="ybb" class="form-input" min="1" required>
</div>
<div class="text-input">
<label for="tinggi">Tinggi (cm)</label>
<input type="number" name="yting" id="yting" class="form-input" min="1" required>
</div>
<div class="text-input">
<button type="button" class="btn" onclick="hitungBMI()">Hitung BMI</button>
<button type="button" class="btn" onclick="resetForm()">Reset</button>
</div>
</form>
</div>
</section>
<!-- END HOME FORM -->
<!-- HASIL HITUNG BMI -->
<section id="result" class="container d-hidden">
<div class="sub-container mb-1">
<h3 id="result-title" class="result-title"></h3>
<div id="result-bmi" class="result-bmi"></div>
<p id="result-desc" class="result-desc"></p>
<button class="btn" onclick="backToForm()">Hitung Lagi</button>
</div>
</section>
<!-- END HASIL BMI -->
</main>
<!-- END MAIN -->
<!-- FOOTER -->
<footer>
<div class="footer-content">
<h3>KaBMI</h3>
<p>Berat badan ideal adalah impian semua orang. Tidak hanya memiliki bentuk tubuh yang menunjang penampilan, berat badan ideal juga menandakan kondisi tubuh yang sehat.</p>
</div>
<div class="footer-bottom">
<p>copyright © 2023 <a href="https://github.com/diona-katzleib">Isekai.ID | Diona Katzlein</a> | IDN GAZA#FREEDOM </p>
</div>
</footer>
<!-- END FOOTER -->
<script src="./js/script.js"></script>
</body>
</html>