-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
116 lines (87 loc) · 4.25 KB
/
Copy pathindex.html
File metadata and controls
116 lines (87 loc) · 4.25 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
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
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Body Fat Calculator">
<meta name="keywords" content="body, fat, calculator,fit, fat loss, gym, diet">
<meta name="author" content="Szymon Trzepla">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BF Calculator</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans:400,700&subset=latin-ext" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div class="head">
<h1>Body Fat Calculator</h1>
</div>
</header>
<main>
<div id="wrap" class="container">
<!-- Metric/Imperial-->
<div class="radios">
<div id="select-system">
<div class="radio-wrap">
<input type="radio" name="system" id="metric" value="metric" aria-label="metric measure system" hidden checked>
<label for="metric" class="radio-inline"><span></span>Metryczny</label>
</div>
<div class="radio-wrap">
<input type="radio" name="system" id="imperial" value="us" aria-label="imperial measure system" hidden>
<label for="imperial" class="radio-inline"><span></span>Imperialny</label>
</div>
</div>
<!--sex-->
<div id="select-sex">
<div class="radio-wrap">
<input type="radio" name="sex" id="male" value="male" aria-label="male" hidden checked>
<label for="male" class="radio-inline"><span></span>Mężczyzna</label>
</div>
<div class="radio-wrap">
<input type="radio" name="sex" id="female" value="female" aria-label="female" hidden>
<label for="female" class="radio-inline">
<span></span>Kobieta</label>
</div>
</div>
</div>
<!-- InputForms US Navy Method-->
<form id="input-form">
<div class="form-group">
<label for="height" id="labelH">Wzrost [cm] : </label>
<input type="number" class="form-control" step="0.5" min='1' name="height" id="height">
</div>
<div class="form-group">
<label for="weight" id="labelW">Waga [kg] : </label>
<input type="number" class="form-control" step="0.5" min='1' name="weight" id="weight">
</div>
<div class="form-group">
<label for="neck" id="labelN">Kark [cm] : </label>
<input type="number" class="form-control" step="0.5" min='1' name="neck" id="neck">
</div>
<div class="form-group">
<label for="waist" id="labelWa">Talia [cm] : </label>
<input type="number" class="form-control" step="0.5" min='1' name="waist" id="waist">
</div>
<div class="form-group">
<label for="hip" id="labelHi">Biodra [cm] : </label>
<input type="number" class="form-control" step="0.5" min='1' name="hip" id="hip">
</div>
<button id="btn" class="btn btn-default btn-lg btn-block" type="button">Przelicz</button>
</form>
<div id="alert"></div>
<!-- MODAL -->
<div id="modal" class="modal">
<!-- content -->
<div class="modal-content">
<span class="close">×</span>
<canvas id="myChart"></canvas>
<div id="bf"></div>
</div>
</div>
</main>
<footer></footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.4/Chart.min.js"></script>
<script src="modal.js"></script>
<script src="script.js"></script>
</body>
</html>