-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculatePage.html
95 lines (89 loc) · 3.76 KB
/
calculatePage.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="./css/bootstrap.css">
<link rel="stylesheet" href="css/colors.css">
<link rel="stylesheet" href="css/calculatorPage.css">
<title>Title</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="index.html">BAC Calculator</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="calculatePage.html">Calculate</a>
</li>
<li class="nav-item">
<a class="nav-link" href="information.html">BAC Levels</a>
</li>
<li class="nav-item">
<a class="nav-link" href="links.html">More Information</a>
</li>
</ul>
</div>
</nav>
<div class="row">
<div class="col-md-4">
<img src="images/jack_daniels.jpg" class="img-responsive" width="100%" height="100%">
</div>
<div class="col-4">
<h1 class="text">Calculator</h1>
<div class="text">
1 unit of alcohol equals 50g of spirits or 500ml of beer or 150ml of wine
</div>
<div class="container">
<form class="form-horizontal" id="form1" action="result.html" method="get">
<div class="form-group row">
<label for="gender" class="col-6 col-form-label">Gender</label>
<div class="col-6">
<select class="form-control" id="gender">
<option>Male</option>
<option>Female</option>
</select>
</div>
</div>
<div class="form-group row">
<label for="weight" class="col-6 col-form-label">Weight</label>
<div class="col-6">
<input class="form-control" type="number" value="30" id="weight">
</div>
</div>
<div class="form-group row">
<label for="numberOfBeverages" class="col-6 col-form-label">Number of units</label>
<div class="col-6">
<input class="form-control" type="number" value="0" id="numberOfBeverages">
</div>
</div>
<div class="form-group row">
<label for="time" class="col-6 col-form-label">Hours since you started drinking</label>
<div class="col-6">
<input class="form-control" type="number" value="0" id="time">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default" onclick="Calculate();">Submit</button>
</div>
</div>
<input type="hidden" name="result" id="result"/>
</form>
</div>
</div>
<div class="col-md-4">
<img src="images/jack_daniels.jpg" class="img-responsive" width="100%" height="100%">
</div>
</div>
<script src="./js/jquery-3.2.1.js"></script>
<script src="./js/bootstrap.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./js/calculate.js"></script>
</body>
</html>