-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
88 lines (81 loc) · 2.13 KB
/
index.html
File metadata and controls
88 lines (81 loc) · 2.13 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Quick Search</title>
<style>
body {
font-family: Arial, sans-serif;
}
#search-form {
display: flex;
justify-content: center;
margin-top: 50px;
}
input[type="text"] {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
width: 400px;
}
button {
padding: 10px 20px;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
#logo {
display: flex;
justify-content: center;
margin-bottom: 20px;
}
img {
width: 200px;
}
footer {
text-align: center;
margin-top: 50px;
}
select {
padding: 10px;
margin-right: 10px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
}
</style>
</head>
<body>
<div id="logo">
<img src="https://upload.wikimedia.org/wikipedia/commons/b/bc/Logo_2015_Quick.svg" alt="Quick">
</div>
<form id="search-form" action="https://www.google.com/search" method="GET">
<h2>You Selected:</h2>
<select id="search-engine">
<option value="https://www.google.com/search?q=">Google</option>
<option value="https://www.bing.com/search?q=">Bing</option>
<option value="https://in.search.yahoo.com/search?p=">Yahoo!</option>
<option value="https://duckduckgo.com/?q=">DuckDuckGo</option>
<option value="https://search.brave.com/search?q=">Brave</option>
<option value="https://www.youtube.com/results?search_query=">YouTube</option>
<option value="https://music.youtube.com/search?q=">YouTube Music</option>
</select>
<input type="text" name="q" placeholder="Search...">
<button type="submit">Search</button>
</form>
<script>
const form = document.getElementById('search-form');
const searchEngineSelect = document.getElementById('search-engine');
const queryInput = document.querySelector('input[name="q"]');
form.addEventListener('submit', function(event) {
const selectedEngine = searchEngineSelect.value;
form.action = selectedEngine + encodeURIComponent(queryInput.value);
});
</script>
<footer>
<p>© 2024 Powered by Quick Search</p>
</footer>
</body>
</html>