-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
169 lines (144 loc) · 5.02 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WeatherNow</title>
<script src="https://kit.fontawesome.com/b26051f063.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="style2.css">
</head>
<body>
<header>
<div class="head">
<h1>WeatherNow</h1>
</div>
</header>
<section class="section">
<!-- Home Page Input Box -->
<div class="display">
<!-- Weather Information Page Back to Home page button -->
<div class="display-nav" style="display: none">
<span id="backimg"><img src="img/back.svg" alt="backBtn"></span>
<p id="nav">Search Another Location</p>
</div>
<!-- Display status message for requested weather information -->
<div class="display-msg" style="display: none">
<p id="status">Fetching Weather Information...</p>
</div>
<!-- Home page Input methods -->
<div class="display-input" style="display: flex">
<form action="#" style="display: inline-flex;">
<input type="text" name="CityName" id="CityName" placeholder="Enter the City name">
<span id="Search"><img src="img/search.svg" alt="searchBtn"></span>
</form>
<p>--------- or ---------</p>
<button id="CurrLocation">Current Location</button>
</div>
<!-- Weather information Box -->
<div class="infoItems" style="display: none">
<!-- Current Weather information Box -->
<div class="maininfoItem">
<div id="currTitle">Current Weather</div>
<div id="icon"></div>
<div id="temp">
<span id="temp_icon">
<i class="fa-solid fa-temperature-full fa-2xl"></i>
</span>
<span id="temp_val">
<p>0<sup>o</sup>C</p>
</span>
</div>
<div id="weath">
<span>Null</span>
</div>
<div id="loc">
<span id="loc_icon"><i class="fa-solid fa-location-dot"></i></span>
<span id="loc_name">Null</span>
</div>
<div id="oth">
<div id="feels">
<span id="feels_icon">
<i class="fa-solid fa-temperature-three-quarters fa-xl"></i>
</span>
<span id="feels_val">
<p>0<sup>o</sup>C</p>
<p>Feels like</p>
</span>
</div>
<div id="hum">
<span id="hum_icon"><i class="fa-solid fa-droplet fa-xl"></i></span>
<span id="hum_val">
<p>0</p>
<p>Humidity</p>
</span>
</div>
</div>
</div>
<!-- 5-days weather forecast information box -->
<div class="otherinfoItems">
<div id="otherInfoTitle">5-Days Forecast</div>
<div class="otherinfoItem">
<div class="fore" id="fore1">
<div id="day"></div>
<div id="icon"></div>
<div id="temp"></div>
<div id="weath"></div>
</div>
<div class="fore" id="fore2">
<div id="day"></div>
<div id="icon"></div>
<div id="temp"></div>
<div id="weath"></div>
</div>
<div class="fore" id="fore3">
<div id="day"></div>
<div id="icon"></div>
<div id="temp"></div>
<div id="weath"></div>
</div>
<div class="fore" id="fore4">
<div id="day"></div>
<div id="icon"></div>
<div id="temp"></div>
<div id="weath"></div>
</div>
<div class="fore" id="fore5">
<div id="day"></div>
<div id="icon"></div>
<div id="temp"></div>
<div id="weath"></div>
</div>
</div>
</div>
</div>
</div>
<!-- AboutUs info markup -->
<div class="display-AboutUs-items" style="display:none;">
<div class="AboutUsNav" style="display:flex;">
<span id="AboutUsBackimg"><img src="img/back.svg" alt="backBtn"></span>
<p>Back to Home</p>
</div>
<div class="AboutUsMsg">
<h3>A minor project by -</h3>
<ul>
<li>Swapnil</li>
<li>Mohit</li>
<li>Ashvini</li>
<li>Reetu</li>
</ul>
<h3>Contact Us at -</h3>
<div id="Email"><i>Swapnil@skylinksolutions.onmicrosoft.com</i></div>
</div>
</div>
</section>
<footer>
<div class="foot">
<h3>ContactUs</h3>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="app.js"></script>
</body>
</html>