-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.html
More file actions
41 lines (38 loc) · 1.27 KB
/
Copy pathcode.html
File metadata and controls
41 lines (38 loc) · 1.27 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic Website with Search Bar</title>
<link rel="stylesheet" href="styles.css">
<script>
function handleSearch(event) {
event.preventDefault(); // Prevent form submission
const searchValue = document.getElementById('search').value.trim().toLowerCase();
if (searchValue === 'delhi' || searchValue === '') {
window.location.href = 'map/index.html'; // Redirect to the 3D model viewer page
} else {
alert('Location not found');
}
}
</script>
</head>
<body>
<header>
<div class="header-content">
<img src="logo.png" alt="Logo" class="header-image">
</div>
</header>
<div class="search-container">
<form onsubmit="handleSearch(event)">
<input type="text" placeholder="Search Walmart Store by Location..." id="search">
<button type="submit">Search</button>
</form>
</div>
<!-- Footer -->
<footer>
<p>Designed by Team MapmyMart</p>
<p>Akash Verma. Yash Pandey. Srija Shukla</p>
</footer>
</body>
</html>