-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexplore.html
94 lines (84 loc) · 2.72 KB
/
explore.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>State Selector</title>
</head>
<style>
body {
background-image: url('explore.jpg'); /* Add your background image URL here */
background-size: cover;
background-repeat: no-repeat;
font-family: Arial, sans-serif;
text-align: center;
margin: 0;
padding: 0;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
label, select, button {
margin: 10px;
font-size: 18px;
}
select {
padding: 5px;
border: none;
border-radius: 5px;
}
button {
padding: 10px 20px;
background-color: #007BFF;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
</style>
<body>
<label for="stateSelect"><b></b>Select a State:</b></label>
<select id="stateSelect">
<option value="assam">Assam</option>
<option value="bihar">Bihar</option>
<option value="jharkhand">Jharkhand</option>
<option value="nagaland">Nagaland</option>
<option value="manipur">Manipur</option>
<option value="chattisgarh">chattisgarh</option>
<option value="meghalaya">Meghalaya</option>
<option value="odisha">Odisha</option>
<option value="tripura">Tripura</option>
</select>
<button onclick="goToSelectedPage()">Go</button>
<script>
function goToSelectedPage() {
var selectElement = document.getElementById("stateSelect");
var selectedValue = selectElement.value;
// Define the URLs for each state
var stateURLs = {
assam: "assam.html",
bihar: "bihar.html",
jharkhand: "jharkhand.html",
nagaland: "nagaland.html",
manipur: "manipur.html",
chattisgarh: "chattisgarh.html",
meghalaya: "meghalaya.html",
odisha: "odhisa.html",
tripura: "tripura.html"
};
// Get the URL for the selected state
var selectedURL = stateURLs[selectedValue];
// Redirect to the selected URL
if (selectedURL) {
window.location.href = selectedURL;
}
}
</script>
</body>
</html>