-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
109 lines (107 loc) · 4.27 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
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bookshelf</title>
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<header>
<h1>Bookshelf App</h1>
</header>
<main>
<section class="input-section">
<div>
<h2>Masukan Buku Baru</h2>
<form id="input-buku">
<div class="input judul">
<label for="inputJudulBuku">Judul</label>
<input id="inputJudulBuku" type="text" placeholder="Harry Potter" required>
</div>
<div class="flex-row">
<div class="input penulis">
<label for="inputPenulisBuku">Penulis</label>
<input id="inputPenulisBuku" type="text" placeholder="J. K. Rowling" required>
</div>
<div class="input tahun">
<label for="inputTahunBuku">Tahun</label>
<input id="inputTahunBuku" type="number" placeholder="1997" required>
</div>
</div>
<div class="flex-row">
<div class="input-checkbox">
<label for="dibaca">Selesai dibaca</label>
<input id="dibaca" type="checkbox">
</div>
<div class="button">
<button id="input-submit" type="submit">Tambah</button>
</div>
</div>
</form>
<div class="cari-buku">
<h3>Cari Buku</h3>
<form id="cari-buku">
<input id="inputCariBuku" type="text" placeholder="Judul Buku">
<button id="cari" type="button">Cari</button>
</form>
</div>
</div>
</section>
<section class="book-shelf">
<h2>Belum Selesai Dibaca</h2>
<div class="book-list" id="belumDibaca">
<!--
daftar buku
-->
</div>
</section>
<section class="book-shelf">
<h2>Selesai Dibaca</h2>
<div class="book-list" id="telahDibaca">
<!--
daftar buku
-->
</div>
</section>
<section class="edit-section" hidden>
<div class="edit-form">
<button id="closeForm">X</button>
<form id="edit-buku">
<h3>Edit Buku</h3>
<div class="input judul">
<label for="editJudulBuku">Judul</label>
<input id="editJudulBuku" type="text" required>
</div>
<div class="flex-row">
<div class="input penulis">
<label for="editPenulisBuku">Penulis</label>
<input id="editPenulisBuku" type="text" required>
</div>
<div class="input tahun">
<label for="editTahunBuku">Tahun</label>
<input id="editTahunBuku" type="number" required>
</div>
</div>
<div class="flex-row">
<div class="input-checkbox">
<label for="editBaca">Selesai dibaca</label>
<input id="editBaca" type="checkbox">
</div>
<div class="button">
<button id="edit-submit" type="button">Edit</button>
</div>
</div>
</form>
</div>
</section>
</main>
<footer>
<p>Copyright © 2021 Obscalion<br><span>Designed by Lario Tawakkal</span></p>
</footer>
<script src="./js/data.js"></script>
<script src="./js/dom.js"></script>
<script src="./js/script.js"></script>
</body>
</html>