-
Notifications
You must be signed in to change notification settings - Fork 1
/
list.html
226 lines (195 loc) · 8.67 KB
/
list.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>List</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.1/css/all.css"
integrity="sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf" crossorigin="anonymous" />
<link href="https://fonts.googleapis.com/css?family=Open+Sans&display=swap" rel="stylesheet" />
<link href="./list.css" rel="stylesheet">
</head>
<body>
<!-- Header and navbar specific for the mobile viewport -->
<div id="isMobile">
<header class="mobile-header-brand">
<h1><span class="bookIcon"><i class="fas fa-book-reader"></i></span> Book<span class="worm">worm</span></h1>
<p>a book lover's best friend</p>
</header>
<nav class="mobile-navbar">
<div class="nav-link-container">
<a class="nav-link" href="home.html">Home</a>
</div>
<div class="nav-link-container">
<a class="nav-link" href="search.html">Search</a>
</div>
<div class="nav-link-container">
<a class="current-page-link nav-link" href="list.html">My List</a>
</div>
</nav>
</div>
<!-- Header and navbar specific to desktop viewport -->
<div class="desktopContainer" id="is-desktop">
<div class="brand">
<h1><span class="bookIcon"><i class="fas fa-book-reader"></i></span> Book<span class="worm">worm</span></h1>
<p>a book lover's best friend</p>
</div>
<nav class="desktop-navbar">
<div class="nav-link-container">
<a class="nav-link" href="home.html">Home</a>
</div>
<div class="nav-link-container">
<a class="nav-link" href="search.html">Search</a>
</div>
<div class="nav-link-container">
<a class="current-page-link nav-link" href="list.html">My List</a>
</div>
</nav>
</div>
<main>
<div class="list-container">
<!-- Headings -->
<div class="list-grid-container" id="list-headers">
<div class="list-grid-item">
Details
</div>
<div class="list-grid-item">
<div id="list-header-date-full">Target read date</div>
<div id="list-header-date-TRD">TRD</div>
</div>
<div class="list-grid-item">
Info
</div>
<div class="list-grid-item">
Delete
</div>
</div>
<div class="list-grid-container listed-book" data-id="1o7D0m_osFEC">
<div class="list-grid-item book-details">
<p class="book-title">Harry Potter and the Chamber of Secrets</p>
<p class="book-author">J.K.Rowling</p>
</div>
<div class="list-grid-item target-read-date">
<p class="static-date">01/07/2020</p>
</div>
<div class="list-grid-item">
<i class="fas fa-info-circle"></i>
</div>
<div class="list-grid-item">
<i class="fas fa-trash-alt"></i>
</div>
</div>
<div class="list-grid-container listed-book" data-id="zGswDQAAQBAJ">
<div class="list-grid-item book-details">
<p class="book-title">Harry Potter and the Prisoner of Askaban</p>
<p class="book-author">J.K.Rowling</p>
</div>
<div class="list-grid-item target-read-date">
<p class="static-date">01/06/2020</p>
</div>
<div class="list-grid-item">
<i class="fas fa-info-circle"></i>
</div>
<div class="list-grid-item">
<i class="fas fa-trash-alt"></i>
</div>
</div>
</div>
<!-- 'Save', 'cancel changes' and 'clear all' buttons container -->
<div class="buttons-container">
<div class="clearButton">
<button id="clearBtn">Clear list</button>
</div>
</div>
<!-- Change Date modal -->
<div id="change-date-modal" class="display-none">
<!-- Modal content -->
<div id="date-modal-content" data-date="">
<div class="title-close-container">
<span id="date-modal-title">placeholder title</span>
<span id="date-modal-close">×</span>
</div>
<div id="new-date-container">
<p id="select-date-guidance">
Enter a new target read date in the format DD/MM/YYYY:
</p>
</div>
<div id="date-entry-save-container">
<textarea id="select-date">01/07/2020</textarea>
<div id="save-button-container">
<button id="saveBtn">Save</button>
</div>
</div>
<p id="select-date-warning" class="display-none">The date you entered is not of the format DD/MM/YYYY
</p>
<p id="no-change-warning" class="display-none">The date you entered is the same as the date you
previously set</p>
<p id="confirm-save" class="display-none">Your new target read date has been saved</p>
</div>
</div>
<!-- Clear List modal -->
<div id="clear-list-modal" class="display-none">
<!-- Modal content -->
<div id="clear-modal-content" data-id="">
<div class="title-close-container">
<span id="clear-modal-title">Delete my read list</span>
<span id="clear-modal-close">×</span>
</div>
<div id="clear-modal-guidance">
<p>When you delete your read list, you cannot retrieve it</p>
<p>Are you sure you want to delete your read list?</p>
<p>Click 'Yes' to accept or 'No' to cancel</p>
</div>
<div class="modal-buttons-container">
<div class="yes-button-container">
<button class="yesBtn">Yes</button>
</div>
<div class="no-button-container">
<button class="noBtn">No</button>
</div>
</div>
</div>
</div>
<!-- Delete book from list modal -->
<div id="delete-book-modal" class="display-none">
<!-- Modal content -->
<div id="delete-modal-content" data-id="">
<div class="title-close-container">
<span id="delete-modal-title">Placeholder title</span>
<span id="delete-modal-close">×</span>
</div>
<div id="delete-modal-guidance">
<p>When you delete a book from your read list, you cannot retrieve it</p>
<p>Are you sure you want to delete this book from your read list?</p>
<p>Click 'Yes' to accept or 'No' to cancel</p>
</div>
<div class="modal-buttons-container">
<div class="yes-button-container">
<button class="yesDeleteBtn">Yes</button>
</div>
<div class="no-button-container">
<button class="noBtn">No</button>
</div>
</div>
</div>
</div>
<div id="infoModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
<div class="new-modal-content">
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer id="sticky-footer" class="footer">
<small>Copyright © 2020 - N.Witharana, H.Raoof, J.Dodgson, D.Phillips</small>
</footer>
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="script.js"></script>
</body>
</html>