-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (60 loc) · 2.09 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ClimaSense</title>
<link rel="icon" href="weather-icon.png" type="image/png">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Main Content Container -->
<div class="container">
<h1>ClimaSense</h1>
<form id="weatherForm">
<input type="text" id="locationInput" placeholder="Enter a city" aria-label="Enter city">
<button id="searchButton" aria-label="Search">Search</button>
</form>
<div class="weather-info">
<h2 id="location"></h2>
<p id="temperature"></p>
<p id="description"></p>
<p id="humidity"></p>
<p id="wind"></p>
<p id="feels-like"></p>
<p id="pressure"></p>
<p id="visibility"></p>
<p id="sunrise"></p>
<p id="sunset"></p>
<p id="uv-index"></p>
</div>
<!-- Loading or Error Messages -->
<p id="p1"></p>
<div id="loadingSpinner" class="spinner"></div>
</div>
<!-- Chatbot Icon -->
<div id="chatbot-container">
<button id="chatbotButton" aria-label="Open Chatbot">
<img src="chatbot-icon.png" alt="Chatbot Icon" id="chatbotIcon">
</button>
</div>
<<!-- Chatbot Icon -->
<div id="chatbot-container">
<button id="chatbotButton" aria-label="Open Chatbot" onclick="openWeatherBot()">
<img src="chatbot-icon.png" alt="Chatbot Icon" id="chatbotIcon">
</button>
</div>
<!-- Script to open the weather bot -->
<script>
function openWeatherBot() {
window.open('https://kweatherapp.streamlit.app/', '_blank');
}
</script>
<!-- Footer Section -->
<footer>
<p id="pMe">© 2024 <a href="https://linktr.ee/Keshabkjha" aria-label="Keshab Kumar's profile"> Keshabkjha </a>All rights reserved.</p>
</footer>
<!-- JavaScript File -->
<script src="script.js"></script>
</body>
</html>