-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·87 lines (77 loc) · 2.81 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
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
<!DOCTYPE html>
<html>
<head>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css">
<link href="css/styles.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.11.0.js"></script>
<script src="js/scripts.js"></script>
<title>Address book</title>
</head>
<body>
<div class="container">
<h1>Address book</h1>
<div class="row">
<div class="col-md-6">
<h2>Add a contact:</h2>
<form id="new-contact">
<div class="form-group">
<label for="new-first-name">First name</label>
<input type="text" class="form-control" id="new-first-name">
</div>
<div class="form-group">
<label for="new-last-name">Last name</label>
<input type="text" class="form-control" id="new-last-name">
</div>
<div id="new-addresses">
<div class="new-address">
<div class="form-group">
<label for="new-street">Street</label>
<input type="text" class="form-control new-street">
</div>
<div class="form-group">
<label for="new-city">City</label>
<input type="text" class="form-control new-city">
</div>
<div class="form-group">
<label for="new-state">State</label>
<input type="text" class="form-control new-state">
</div>
<div class="form-group">
<label for="new-zip-code">Zip Code</label>
<input type="text" class="form-control new-zip-code">
</div>
</div>
</div>
<div id="new-phone-numbers">
<div class="new-phone-number">
<div class="form-group">
<label for="new-number">Phone Number</label>
<input type="text" class="form-control new-number">
</div>
</div>
</div>
<span class="btn btn-primary" id="add-address">Another address</span>
<span class="btn btn-primary" id="add-phone-number">Another Phone #</span>
<button type="submit" class="btn">Add</button>
</form>
<h2>Contacts:</h2>
<ul id="contacts">
</ul>
</div>
<div class="col-md-6">
<div id="show-contact">
<h2></h2>
<p>First name: <span class="first-name"></span></p>
<p>Last name: <span class="last-name"></span></p>
<p>Address(es):</p>
<ul id="addresses">
</ul>
<p>Phone Number(s):</p>
<ul id="phone-numbers">
</ul>
</div>
</div>
</div>
</div>
</body>
</html>