forked from Technigo/project-library
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
65 lines (58 loc) · 2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Book Library</title>
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<h1>Project Library</h1>
<!--FILTER & SORTING SYSTEM-->
<div class="sort-buttons">
<!--filter by genre-->
<div class="label-dropdown">
<label for="filter-genre">Filter by genre:</label>
<select class="dropdown-genre" id="filter-genre">
<option value="all">All</option>
<option value="adventure">Adventure</option>
<option value="dystopian">Dystopian</option>
<option value="fantasy">Fantasy</option>
<option value="fiction">Fiction</option>
<option value="horror">Horror</option>
<option value="mystery">Mystery</option>
<option value="science fiction">Science Fiction</option>
</select>
</div>
<!--filter by year-->
<div class="label-dropdown">
<label for="filter-year" filter-year>Filter by year:</label>
<select class="dropdown-genre" id="filter-year">
<option value="all">All Years</option>
<option value="19th">19th Century (1801-1900)</option>
<option value="20th">20th Century (1901-2000)</option>
<option value="post20th">After 20th Century</option>
</select>
</div>
<!--button for random book-->
<div class="label-dropdown">
<button id="random-book">Shuffle books</button>
</div>
<div class="label-dropdown">
<button>
<p>A - Z</p>
<img
id="sorting-button"
src="icons/absteigend-sortieren.png"
alt="sort"
/>
</button>
</div>
</div>
<!--button for sorting alphabetically-->
<div id="random-book-container"></div>
<!--container for books-->
<div id="library-container"></div>
<script src="./script.js"></script>
</body>
</html>