-
Notifications
You must be signed in to change notification settings - Fork 0
/
imagesearch.html
94 lines (87 loc) · 1.99 KB
/
imagesearch.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
background: #39297b;
color: #fff;
}
h1{
text-align: center;
margin: 100px auto 50px;
font-weight: 600;
}
form{
width: 90%;
max-width: 600px;
margin: auto;
height: 70px;
border-radius: 9px;
background: #434989;
display: flex;
align-items: center;
}
form input{
flex: 1;
height: 100%;
border: none;
outline: none;
background: transparent;
font-size: 19px;
color: #fff;
font-weight: 600;
padding: 0 30px;
}
form button{
height: 100%;
padding: 0px 40px;
background: #ff3929;
color: #fff;
cursor: pointer;
font-size: 18px;
border: none;
outline: none;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
}
::placeholder{
color: #fff;
font-size: 18px;
}
#show-more{
background: #ff3929;
color: #fff;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
border: none;
outline: none;
margin: 10px auto 100px;
display: none;
}
</style>
</head>
<body>
<h1>Image Search Engine</h1>
<form id="search-form">
<input type="text" id="search-box" placeholder="Search any thing here">
<button>Search</button>
</form>
<div id="search-result"></div>
<button id="show-more">Show more</button>
<script>
const searchForm = document.getElementById("search-form");
const searchBox = document.getElementById("search-box");
const searchResult = document.getElementById("search-result");
const searchMore = document.getElementById("show-more");
</script>
</body>
</html>