-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (47 loc) · 1.79 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
<!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>Books API</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<style>
*{
margin: 0%;
padding: 0%;
box-sizing: border-box;
}
body{
background-image: url("library-11.jpg");
}
.error-message{
color: red;
}
.bookCount{
color: tomato;
margin-bottom: 20px;
}
</style>
</head>
<body>
<main class="container my-4 text-center ">
<h1 class="text-center text-warning">Search Your Book</h1>
<!-- Book Search Area -->
<div class="input-group mb-3 mt-3 w-50 mx-auto">
<input id="input" type="text" class="form-control" placeholder="Search the book you want">
<button onclick="searchBook()" class="btn btn-secondary" type="button" id="button-search">Search</button>
</div>
<!-- Book Search Result Count -->
<section id="count">
</section>
<!-- Search Result Display -->
<section id="display" class="row row-cols-1 row-cols-md-3 g-4 ">
</main>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>
<!-- Main JS -->
<script src="js/app.js"></script>
</body>
</html>