-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
33 lines (33 loc) · 1.46 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<script src="main.js"></script>
<title>Book Finder</title>
</head>
<body id="main">
<div class="booktit"><b>Book Finder</b></div>
<div class="frm">
<input type="search" class="form-control" id="query" placeholder="Search for Books" autocomplete="off" autofocus>
<input type="button" class="btn btn-success srcBtn" value="Search" name="btn" onclick="queryBooks()">
</div>
<div class = "results" id="res">
<!-- <div class="card col-md-6" style="width: 32rem;" id="results"></div> -->
<div id="query-display"></div>
<div class="loader" id="load"></div>
</div>
</body>
<script>
var loader = document.getElementById("load");
loader.setAttribute('style', 'display: none;');
document.getElementById("query").onkeypress = function(event){
if (event.keyCode == 13 || event.which == 13){
queryBooks();
}
};
</script>
</html>