-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (31 loc) · 1.09 KB
/
index.html
File metadata and controls
36 lines (31 loc) · 1.09 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
// This part of the code creates the HTML user interface
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Travel Near Bangalore</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Explore Destinations Near Bangalore</h1>
<div class="climate-question">
<p>Do you have a destination in mind?</p>
<button onclick="askDestination()">Yes</button>
<button onclick="suggestClimate()">No, suggest based on climate</button>
</div>
<div id="climate-options" style="display: none;">
<p>Select your preferred climate:</p>
<select id="climateSelect" onchange="showSuggestions()">
<option value="">--Select--</option>
<option value="hill">Hill Station</option>
<option value="sea">Sea</option>
<option value="cool">Cool</option>
<option value="breezy">Breezy</option>
<option value="sunny">Sunny</option>
</select>
</div>
<div id="destination-list" class="cards-container"></div>
<script src="script.js"></script>
</body>
</html>