-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (37 loc) · 1 KB
/
index.html
File metadata and controls
38 lines (37 loc) · 1 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
<html>
<head>
<title>Sarch</title>
<link href="../../index.css" rel="stylesheet" />
</head>
<body>
<div className="App">
<header>
<img />
<span>Gmail</span>
</header>
<div>
<div>
<div class="logo"></div>
<div class="input">
<img class="search-icon" src="../../search.svg">
<input id="search-text" value="abc"/>
</div>
<div class="buttons">
<button id="search-button">Google Search</button>
<button>I'm Feeling Lucky</button>
</div>
</div>
</div>
<div>
<h2>Results for <span id="search-text-results"></span></h2>
</div>
</div>
<script>
document.getElementById('search-button').onclick = (event) => {
event.preventDefault()
const searchText = document.getElementById('search-text').value
document.getElementById('search-text-results').innerText = searchText
}
</script>
</body>
</html>