-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
99 lines (95 loc) · 4.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Bookshelf Apps</title>
<!-- font awesome icon -->
<script src="https://kit.fontawesome.com/d66a7a980c.js" crossorigin="anonymous"></script>
<!-- css -->
<link rel="stylesheet" href="style/style.css" />
</head>
<body>
<header class="head_bar">
<h1 class="head_bar_title">Bookshelf Apps</h1>
<i class="fa-solid fa-book-open-reader fa-3x"></i>
</header>
<main>
<section class="input_section">
<h2>Masukkan Buku Baru</h2>
<form id="inputBook">
<div class="input">
<label for="inputBookTitle">Judul</label>
<input id="inputBookTitle" type="text" required />
</div>
<div class="input">
<label for="inputBookAuthor">Penulis</label>
<input id="inputBookAuthor" type="text" required />
</div>
<div class="input">
<label for="inputBookYear">Tahun Terbit</label>
<input id="inputBookYear" type="number" min="1990" value="2022" required />
</div>
<div class="input_inline">
<label for="inputBookIsComplete">Selesai dibaca</label>
<input id="inputBookIsComplete" type="checkbox" />
</div>
<button id="bookSubmit" type="submit" class="btn-green">Tambahkan Buku Ke Rak</button>
</form>
</section>
<section class="search_section">
<h2>Cari Buku pada Rak</h2>
<form id="searchBook">
<label for="searchBookTitle">Judul</label>
<input id="searchBookTitle" type="text" placeholder="masukkan judul buku" />
<button id="searchSubmit" type="submit" class="btn-green"><i class="fa-solid fa-magnifying-glass"></i> Cari</button>
</form>
</section>
<section class="book_shelf_container">
<button id="resetRak" class="btn-red" onclick="resetRak()"><i class="fa-solid fa-trash"></i> Kosongkan Rak</button>
<div class="book_shelf book_read">
<h2>Belum selesai dibaca</h2>
<div id="incompleteBookshelfList" class="book_list">
<!-- element is the result of the showBook function -->
</div>
</div>
<div class="book_shelf">
<h2>Selesai dibaca</h2>
<div id="completeBookshelfList" class="book_list">
<!-- element is the result of the showBook function -->
</div>
</div>
</section>
<section class="input_section input_edit_section">
<form id="editData">
<div class="input">
<label for="inputEditTitle">Judul</label>
<input id="inputEditTitle" type="text" required />
</div>
<div class="input">
<label for="inputEditAuthor">Penulis</label>
<input id="inputEditAuthor" type="text" required />
</div>
<div class="input">
<label for="inputEditYear">Tahun Terbit</label>
<input id="inputEditYear" type="number" value="2022" required />
</div>
<button id="bookEditCancel">Batal</button>
<button id="bookEditSubmit" type="submit" class="btn-green">Simpan</button>
</form>
</section>
</main>
<footer>
<div class="social-media">
<a href="http://github.com/KadekDwiki" target="_blank"><i class="fa-brands fa-github fa-xl"></i></a>
<a href="http://instagram.com/kadek.dwiki_" target="_blank"><i class="fa-brands fa-instagram fa-xl"></i></a>
</div>
<p>created with <i class="fa-solid fa-heart"></i> by Kadek Dwiki</p>
</footer>
<!-- sweetalert cdn -->
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!-- js -->
<script src="js/main.js"></script>
</body>
</html>