-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (36 loc) · 1.74 KB
/
index.html
File metadata and controls
45 lines (36 loc) · 1.74 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>More JavaScript and Forms</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"/>
<link rel="stylesheet" href="css/main.css"/>
</head>
<body>
<main class="container">
<header class="page-header">
<h1>Age Calculator</h1>
<p class="lead">Let me calculate your current age given your birthdate</p>
</header>
<form id="age-form" role="form">
<div class="form-group">
<label for="name-input" class="required-field">Your Name</label>
<input type="text" id="name-input" name="name" class="form-control" placeholder="your name" autofocus/>
</div>
<div class="form-group">
<label for="dob-input" class="required-field">Your Birthdate</label>
<input type="date" id="dob-input" name="dob" class="form-control" placeholder="your birthdate"/>
</div>
<div class="form-group text-right">
<button type="button" class="btn btn-default" id="exit-button">Get Me Out of Here!</button>
<button type="reset" class="btn btn-warning" id="reset-button">Start Over</button>
<button type="submit" class="btn btn-success">Calculate My Age</button>
</div>
</form>
<p id="age-message" class="lead"></p>
</main>
<script src="js/moment.js"></script>
<script src="js/app.js"></script>
</body>
</html>