-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (60 loc) · 2.42 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Library</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='reset.css'>
<link rel='stylesheet' type='text/css' media='screen' href='style.css'>
<script src='script.js' defer></script>
</head>
<body>
<div id="main">
<form id="addForm">
<span id="closeAddForm">X</span>
<div id="titlePrompt">
<label for="titleInput">Title</label>
<input type="text" id="titleInput" name="title" class="textInput">
</div>
<div id="authorPrompt">
<label for="authorInput">Author</label>
<input type="text" id="authorInput" name="author" class="textInput">
</div>
<div id="pagesPrompt">
<label for="pagesInput">Number of pages</label>
<input type="number" id="pagesInput" name="pages">
</div>
<div id="readPrompt">
<label for="readInput">Read?</label>
<label for="yes"> Yes</label>
<input type="radio" id="yes" name="read" value="true">
<label for="no"> No</label>
<input type="radio" id="no" name="read" value="false">
</div>
<button type="submit" id="submitAdd">Add to library</button>
</form>
<div id="deletePrompt">
<p>Delete?</p>
<div id="options">
<button type="button" class="deletePrompt" value="yes">Yes</button>
<button type="button" class="deletePrompt" value="no">No</button>
</div>
</div>
<div id="bookInfoDisplay">
<p id="closeInfo">X</p>
<p id="bookInfoText"></p>
<p id="toggleRead">
<label for="readInfo">Read</label>
<input id="readInfo" type="checkbox">
</p>
</div>
<div id="bookshelf"></div>
<div id="controls">
<button type="button" id="addBook" class="ctrlBtn">Add new book</button>
<button type="button" id="bookInfo" class="ctrlBtn">Show book info</button>
<button type="button" id="removeBook" class="ctrlBtn">Remove selected</button>
</div>
</div>
</body>
</html>