-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustom_size.html
105 lines (84 loc) · 2.84 KB
/
custom_size.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
95
96
97
98
99
100
101
102
103
104
105
<html lang="en">
<head>
<meta charset="utf-8">
<title>Custom Image Search</title>
<meta name="viewport" content="width=device-width, inital-scale=1">
<link rel="stylesheet" href="css/style.css">
<style>
.size{
margin-top: 1rem;
display: flex;
flex-direction: row;
justify-content: center;
}
.size input{
padding:7px 15px 7px 15px;
width:9rem;
border-radius:15px;
border:none;
outline:none;
background:#366ba877;
color:rgba(230,230,230,1);
box-shadow: 1px 1px 3px rgba(250,250,250,0.6);
text-align: center;
}
.size input:nth-child(1){
margin-right:10px;
}
.submit #submit{
padding:11px 22px 11px 22px;
}
</style>
</head>
<body>
<script>/*function addSpecs()document.getElementsByName("tbs")[0].value = "isz:ex,iszw:" + document.getElementById("w").value + ",iszh:" + document.getElementById("h").value;}*/</script>
<div class="main">
<div class="container">
<div class="logo">
<img src="images/witch.png">
</div>
<div class="search-form">
<form method="get" autocomplete="off">
<input type="hidden" value="isch" id="tbm"/>
<div class="search"><img src="images/loupe.svg">
<input id="q" size="35" type="text" placeholder="Search image">
</div>
<div class="size">
<input type="text" id="w" placeholder="Width eg. 1920" /><br />
<input type="text" id="h" placeholder="Height eg. 1280" /><br />
</div>
<div class="submit" onclick="myFunction();">
<input type="button" id="submit" value="Find Images">
</div>
</form>
</div>
<div class="serach-for">
<p>or search for</p>
<div class="links">
<span>
<a href="4k.html">4K images</a> |
<a href="index.html">8K images</a> |
<a href="10k.html">10K images</a> </span> <span id="hide"> | </span>
<span>
<a href="16k.html">16K images</a> |
<a href="64.html">64 × 64 sized images</a> </span></span> <span id="hide"> | </span>
<span><a href="mobile_images.html">mobile walpapers</a></span>
</div>
<div class="links links-2">
<a href="custom_size.html">
or search images with your own height and width</a>
</div>
</div>
</div>
</body>
</html>
<script>
function myFunction()
{
var tbm = "tbm="+ document.getElementById("tbm").value;
var tbs = tbm + "&tbs=isz:ex,iszw:" + document.getElementById("w").value+ ",iszh:" +
document.getElementById("h").value + "&q=" + document.getElementById("q").value;
var action = "https://www.google.com/search?" + tbs;
window.location.href = action;
}
</script>