-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (179 loc) · 8.98 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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Add user</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="./lib/main.css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js">
</script>
</head>
<body>
<nav class="nav-extended col s9">
<div class="nav-wrapper">
<a href="./index.html" class="brand-logo center">Welcome to Your Library</a>
</div>
<div class="nav-content">
<ul id="nav-mobile" class="tabs tabs-transparent ">
<li class="tab to-show"><a href="#addBook">Add Book</a></li>
<li class="tab to-hide"><a href="#swich-register">Resister</a></li>
<li class="tab to-hide"><a href="#swich-login" class="active">Login</a></li>
<li class="tab to-show"><a href="#switch-search">Search Book</a></li>
<li class="tab to-show"><a href="#createLibrary">Create Library</a></li>
<li class="tab disabled">
<a href="#logger"></a>
</li>
</ul>
</div>
</nav>
<br>
<br>
<div class="row">
<div id="container" class="col s9">
<div id="addBook" class="col s12">
<div class="row">
<form class="col s10">
<div class="row">
<div class="input-field col s12">
Book Title:
<div class="input-field inline">
<input placeholder="Book title" id="book_title" type="text" class="validate">
<label for="book_title"></label>
</div>
</div>
</div>
<div class="row">
<div class="input-field col s12">
author:
<div class="input-field inline">
<input placeholder="author" id="book_author" type="text" class="validate">
<label for="author"></label>
</div>
</div>
</div>
<div class="row">
<div class="input-field col s12">
genre:
<div class="input-field inline">
<input placeholder="genre" id="book_genre" type="text" class="validate">
<label for="genre"></label>
</div>
</div>
</div>
<a class="waves-effect waves-light btn btn-action" id="add-book">Add Book</a>
</form>
</div>
</div>
<div id="swich-register" class="col s12">
<div class="row">
<form class="col s10">
<div class="row">
<div class="input-field col s12">
User name:
<div class="input-field inline">
<input placeholder="Choose account name" id="user_name" type="text" class="validate">
<label for="user_name"></label>
</div>
</div>
</div>
<div class="row">
<div class="input-field col s12">
Password:
<div class="input-field inline">
<input placeholder="Password" id="password" type="password" class="validate" autocomplete="user-password">
<label for="password"></label>
</div>
</div>
</div>
<a class="waves-effect waves-light btn btn-action" id="register">Register</a>
</form>
</div>
</div>
<div id="swich-login" class="col s12">
<div class="row">
<form class="col s10">
<div class="row">
<div class="input-field col s12">
User name:
<div class="input-field inline">
<input placeholder=" User name" id="login_name" type="text" class="validate">
<label for="user_name"></label>
</div>
</div>
</div>
<div class="row">
<div class="input-field col s12">
Password:
<div class="input-field inline">
<input placeholder="Password" id="login_password" type="password" class="validate" autocomplete="user-password">
<label for="password"></label>
</div>
</div>
</div>
<a class="waves-effect waves-light btn btn-action" id="login">Login</a>
</form>
</div>
</div>
<div id="switch-search" class="col s12">
<div class="row">
<form class="col s10">
<div class="row">
<div class="input-field col s12">
Search by Book Title:
<div class="input-field inline">
<input placeholder="book title:" id="search_book_title" type="text" class="validate">
<label for="search_book_title"></label>
</div>
</div>
</div>
<div class="row">
<div class="input-field col s12">
Search by Book Author:
<div class="input-field inline">
<input placeholder="book author:" id="search_book_author" type="text" class="validate">
<label for="search_book_author"></label>
</div>
</div>
</div>
<a class="waves-effect waves-light btn btn-action" id="search-book">Search</a>
<div class="card-panel #e57373 red lighten-4" id="search-result-container">Search results:</div>
</form>
</div>
</div>
<div id="createLibrary" class="col s12">
<div class="row">
<form class="col s10">
<div class="row">
<div class="input-field col s12">
Library Name:
<div class="input-field inline">
<input placeholder="Library Name" id="library_name" type="text" class="validate">
<label for="library_name"></label>
</div>
</div>
</div>
<div class="row">
<div class="input-field col s12">
Address:
<div class="input-field inline">
<input placeholder="Address" id="library_address" type="text" class="validate">
<label for="address"></label>
</div>
</div>
</div>
<a class="waves-effect waves-light btn btn-action" id="create-library">Create Library</a>
</form>
</div>
</div>
</div>
<div id="logs" class="col s3">
<textarea placeholder="Result here" class="form-control light-blue col-md-8 offset-2" id="result" rows="10"></textarea>
</div>
</div>
<script src="./dist/main.js"></script>
</body>
</html>