-
Notifications
You must be signed in to change notification settings - Fork 0
/
dom.html
64 lines (63 loc) · 2.07 KB
/
dom.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css"
integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous"
/>
<title>Item Lister</title>
</head>
<body>
<header id="main-header" class="bg-success text-white p-4 mb-3">
<div class="container">
<div class="row">
<div class="col-md-6">
<h1 id="header-title">Item Lister</h1>
</div>
<div class="col-md-6 align-self-center">
<input
type="text"
class="form-control"
id="filter"
placeholder="Search Items..."
/>
</div>
</div>
</div>
</header>
<div class="container">
<div id="main" class="card card-body">
<h2 class="title">Add Items</h2>
<form id="addForm" class="form-inline mb-3">
<input type="text" class="form-control mr-2" id="item" />
<input type="submit" class="btn btn-dark" value="Submit" />
</form>
<h2 class="title">Items</h2>
<ul id="items" class="list-group">
<li class="list-group-item">
Item 1
<button class="btn btn-danger btn-sm float-right delete">X</button>
</li>
<li class="list-group-item">
Item 2
<button class="btn btn-danger btn-sm float-right delete">X</button>
</li>
<li class="list-group-item">
Item 3
<button class="btn btn-danger btn-sm float-right delete">X</button>
</li>
<li class="list-group-item">
Item 4
<button class="btn btn-danger btn-sm float-right delete">X</button>
</li>
</ul>
</div>
</div>
<script src="main.js"></script>
</body>
</html>