-
Notifications
You must be signed in to change notification settings - Fork 0
/
ref.html
83 lines (72 loc) · 1.53 KB
/
ref.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
<!DOCTYPE html>
<html>
<head>
<title>BOOK ORGANIZER</title>
<link rel="stylesheet" type="text/css" href="style/style.css">
<style>
#head {
padding-left: 400px;
color: white;
}
h1, h2 {
font-size: 60px;
text-shadow: 0px 0px 10px grey;
text-transform: capitalize;
text-align: center;
}
#search {
padding-left: 400px;
width: 700px;
}
#b {
width: 600px;
margin-bottom: 20px;
height: 25px;
border-radius: 20px;
padding-left: 10px;
box-shadow: 0px 0px 10px grey;
}
#sbtn {
border-radius: 10px;
}
#section_result {
padding-left: 300px;
margin: 20px 300px;
background-color: rgb(74,22,5);
border-radius: 20px;
padding-top: 20px;
color: white;
display:none;
}
</style>
</head>
<body>
<header id="head">
<h2>book search</h2>
</header>
<div id="search">
<!-- <form id="demo-2"> -->
<!-- <div class="input-field"> -->
<input type="search" id="b">
<!-- </div> -->
<br>
<input type="button" onclick="abc()" value="Search" id="sbtn">
<!-- </form> -->
</div>
<section id="section_result">
<div id="result">
</div>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="main.js"></script>
<script>
var input = document.getElementById("b");
input.addEventListener("keyup", function(event) {
event.preventDefault();
if (event.keyCode === 13) {
document.getElementById("sbtn").click();
}
});
</script>
</body>
</html>