-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.html
More file actions
46 lines (43 loc) · 1.89 KB
/
game.html
File metadata and controls
46 lines (43 loc) · 1.89 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BMI Calculator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<form name="bmiForm">
<div class="bmi-calculator">
<h1 style="margin-bottom: 1em;">Calculate your BMI</h1>
<div class="bmi-calculator-weight">
<input class="weight-slider" name="realweight" id="myWeight" type="range" min="25" max="180" value="60" />
<p style="margin-top: 1.8em;">
WEIGHT:
<input name="Teža" id="inputWeight" type="number" value="60" min="25" max="180" oninput="showValWeight(this.value)" />
<span id="weight"></span> kg
</p>
</div>
<div class="bmi-calculator-height">
<input class="height-slider" name="realheight" id="myHeight" type="range" min="100" max="220" value="160">
<p style="margin-top: 1.8em;">
HEIGHT:
<input name="Višina" id="inputHeight" type="number" value="160" min="100" max="220" oninput="showValHeight(this.value)" />
<span id="height"></span> cm
</p>
</div>
<input class="gumb" type="button" value="Calculate" onclick="calculateBmi()" style="margin-top: 0.5em">
<p style="margin-top: 1em;font-size: 1.2em;">
<strong>Your BMI:</strong>
<span id="yourbmi" style="font-size: 1.2em;margin-left: 8px;"></span>
</p>
<p></p>
<p>
<span id="evaluationMessage"></span>
</p>
</div>
</form>
<script src="script.js"></script>
</body>
</html>