-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (37 loc) · 1.18 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
<!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>BMI 計算器</title>
<link rel="stylesheet" href="styles/normalize.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet">
<link rel="stylesheet" href="styles/style.css">
</head>
<body>
<section class="calculator">
<section class="fields">
<h1>BMI 計算機</h1>
<h2>想要健康嗎?趕快動起來!</h2>
<div>
<label for="bodyHeight">身高</label>
<input type="number" id="bodyHeight" min="0">公分
</div>
<div>
<label for="bodyWeight">體重</label>
<input type="number" id="bodyWeight" min="0">公斤
</div>
<input type="submit" value="計算" onclick="calculateBMI();">
<p id="remind">提醒</p>
<div class="clearfix"></div>
</section>
<section class="result">
<h2>計算結果:</h2>
<p id="resultText">0</p>
</section>
<div class="clearfix"></div>
</section>
<script src="scripts/script.js"></script>
</body>
</html>