-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
82 lines (76 loc) · 4.07 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type='text/css' href="style.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<title>Electronic Library</title>
</head>
<body>
<div class='bkimage1'></div>
<div class='caption'>
<div class='mainTitle'>E-brary</div>
<p class='titleParagraph'>Your Electronic Library Book Collection</p>
</div>
<!--BOOKSHELF-->
<div id='bookshelf'>
<div class='genre card flex-row open'>
<!-- Title of genre and the button to add a book -->
<div class ='genre-name'>Unsorted Books
<button type='button' id='openModal' onclick='openModal()'>Add Book</button>
</div>
<div id='myModal' class='modal'>
<div class='modal-content'>
<div class="modal-header">
<span class='close'>×</span>
<p>Welcome</p>
</div>
<div class='modal-body'>
<p>Please enter a book you want to add</p><br>
<div class='text-container'>
<label for='title'>Title<sup>*</sup>: </label>
<input type='text' id='title' name='title' required><br>
<label for='author'>Author<sup>*</sup>: </label>
<input type='text' id='author' name='author' required><br>
<label for='page'>Page Number<sup>*</sup>: </label>
<input type='number' id='page' name='page' style='left: 66px' required><br>
<label for='Genre'>Genre: </label>
<input type='text' id='Genre' name='Genre' list="genreList"><br>
<datalist id='genreList'>
<option>Action</option>
<option>Adventure</option>
<option>Horror</option>
<option>Crime</option>
<option>Fantasy</option>
<option>Mystery</option>
<option>Fairy Tale</option>
<option>Comedy</option>
<option>Philosophical</option>
<option>Science Fiction</option>
<option>Urban</option>
</datalist>
<label for='read'>Read: </label>
<label class="switch">
<input type="checkbox" id='slider' onclick="haveReadState();">
<span class="slider round"></span>
</label>
<br><br>
<!-- <button type="button" id='test' onclick="changeSlider();">Change Slider</button> -->
<button type="button" id='submit' onclick="submitBook();">Submit</button><br>
</div>
</div>
</div>
</div>
<!-- //Container to keep all the book frames -->
<!-- <div class='triangle_container' id='unsorted_shelf'>
<img src='https://images-na.ssl-images-amazon.com/images/I/51DF6ZR8G7L._SX329_BO1,204,203,200_.jpg' class='book'>
</div> -->
<div class = 'book_container hidden' id='unsorted_shelf'>
</div>
</div>
</div>
<script src="scripts.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</body>
</html>