-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
121 lines (109 loc) · 3.28 KB
/
index.html
File metadata and controls
121 lines (109 loc) · 3.28 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
117
118
119
120
121
<!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://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.css">
<style>
.success, .error {
color: white;
padding: 5px;
margin: 5px 0 15px 0px;
}
.success {
background: green;
}
.error {
background: red;
}
.modal{
width: 80%;
margin:20px;
display: none;
}
.modalshow{
display: block;
position: absolute;
width: 100%;
height: 100%;
z-index: 10;
background-color: rgba(0,0,0,0.8);
padding: 20px;
left: 0;
top:0 ;
}
.modalshow form{
/* width: 80%; */
margin:10px;
background-color: white;
border-radius: 10px;
padding: 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
</style>
<title>Book List</title>
</head>
<body>
<div class="container">
<!-- Add Form -->
<div class="addformdiv">
<form id="book-form">
<h1>Add Book</h1>
<div>
<label for="title">Title</label>
<input type="text" id="title" class="u-full-width">
</div>
<div>
<label for="author">Author</label>
<input type="text" id="author" class="u-full-width">
</div>
<div>
<label for="isbn">ISBN</label>
<input type="text" id="isbn" class="u-full-width">
</div>
<div>
<input type="submit" value="ADD BOOK" class="u-full-width">
</div>
</form>
</div>
<!-- Edit Form -->
<div class="modal">
<form id="mform">
<h3>EDIT BOOK</h3>
<div>
<label for="mtitle">Title</label>
<input type="text" id="mtitle" class="u-full-width">
</div>
<div>
<label for="author">Author</label>
<input type="text" id="mauthor" class="u-full-width">
</div>
<div>
<label for="isbn">ISBN</label>
<input type="text" id="misbn" class="u-full-width" disabled>
</div>
<div>
<input type="submit" value="EDIT BOOK" class="u-full-width">
</div>
</form>
</div>
<table class="u-full-width">
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>ISBN</th>
<th></th>
</tr>
</thead>
<tbody id="book-list">
</tbody>
</table>
</div>
<script src="appes6.js"></script>
</body>
</html>