-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (64 loc) · 2.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>todo list</title>
<!-- css -->
<link rel="stylesheet" href="./css/style.css">
<!-- sweatallert -->
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!-- font awosome -->
<script src="./icon/js/all.min.js"></script>
</head>
<body>
<!-- header start -->
<header class="header">
<h1 id="headerTitle">BookShelf Apps</h1>
</header>
<!-- header end -->
<!-- main start -->
<main class="wrapper" id="main1">
<div class="header">
<div class="search">
<input id="search" type="text" onkeyup="search()"
placeholder="Search Book" spellcheck="false" maxlength="20">
</div>
<div class="btn">
<button id="btnShowForm" onclick="showForm('true')">add</button>
<button id="btnReset" onclick="syncData('reset')">Reset</button>
</div>
</div>
<section>
<details open>
<summary>Belum Selesai Dibaca</summary>
<ul id="compleateRead"></ul>
</details>
<details open>
<summary>Selesai Dibaca</summary>
<ul id="inCompleateRead"></ul>
</details>
</section>
</main>
<!-- main end -->
<!-- form data start -->
<main class="wrapper hidden" id="main2">
<button id="btn-exit" onclick="showForm('false')"><i class="fa-solid fa-plus fa-2x"></i></button>
<form name="formBook">
<caption><h1 id="caption-farmBook">Masukan Buku Baru</h1></caption>
<label for="judul">Judul buku: </label>
<input id="judul" type="text" required maxlength="30" autocomplete="off">
<label for="penulis">Penulis: </label>
<input id="penulis" type="text" required maxlength="50" autocomplete="off">
<label for="tahun">Tahun: </label>
<input id="tahun" type="number" required
placeholder="YYYY" min="1000" max="3000">
<label for="dibaca">Selesai dibaca <input id="dibaca" type="checkbox"></label>
<input type="submit" value="tambahkan buku" id="editSubmit">
</form>
</main>
<!-- form data end -->
<!-- script -->
<script src="./script/script.js"></script>
</body>
</html>