-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
174 lines (161 loc) · 7.62 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
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Weather application for indians by an indian">
<title>Weather</title>
<!-- <script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script> -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="images/site.webmanifest">
</head>
<script>
</script>
<body>
<div id="loader" style="position: absolute; top:25%; left:10%">
<img src="images/load-gif.gif" alt="">
</div>
<div class="contentWrapper">
<section class="content">
<div class="top_bar">
<a id="favourites" href="#" onclick="storeCity()"><i class="fa fa-heart-o" id="favIcon"
style="font-size: 18px; font-weight: 100;"></i></a>
<div class="searchBar" action="">
<input spellcheck="false" type="text" id="searchBox" placeholder="Search City...">
<a href="#" onclick="searchCity()" id="searchIcon"><img src="images/search.svg" alt="" width="18"></a>
</div>
<a id="currentLocation" href="#" onclick="getLocation()" title="My location"><i class="fa fa-map-marker"
style="font-size: 18px;"></i></a>
</div>
<div class="searchResults">
</div>
<div class="main_section">
<div class="weather">
<h5 id="placeName">Bareilly, Asia-Kolkata</h5>
<h1 id="temperature" style="position: relative;">31</h1>
<h5 id="feelsLike">Feels Like 29°</h5>
</div>
<div class="weatherIcon">
<img id="iconWeather" src="https://openweathermap.org/img/wn/[email protected]" alt="" width="95">
<h5 id="weatherText" style="text-align: center;">Clear</h5>
</div>
</div>
<div class="emptySection">
</div>
<div class="bottom_section">
<div class="chartContainer">
<canvas id="myAreaChart"></canvas>
</div>
</div>
</section>
<section class="secondSection" style="position: relative;">
<div class="details" style="margin-top: 5px;">
<div class="TableHeading" style="border-bottom:1px solid white; padding-bottom:5px;">
Details
</div>
<div class="contentRow">
<div class="rowContent" style="border-right: 1px solid white; border-bottom: 1px solid white;">
<div>
<h6>Wind Speed</h6>
<h5>5.34 Km/h</h5>
</div>
<img src="images/wind.svg" alt="" width="20">
</div>
<div class="rowContent" style=" border-bottom: 1px solid white;">
<div>
<h6>Humidity</h6>
<h5>10%</h5>
</div>
<img src="images/humidity.svg" alt="" width="18">
</div>
</div>
<div class="contentRow">
<div class="rowContent" style="border-right: 1px solid white; border-bottom:1px solid white;">
<div>
<h6>UV Index</h6>
<h5 id="uv">1</h5>
</div>
<img src="images/uv-index.svg" alt="" width="20">
</div>
<div class="rowContent" style="border-bottom:1px solid white;">
<div>
<h6>Pressure</h6>
<h5>1000hpa</h5>
</div>
<img src="images/barometer.svg" alt="" width="20">
</div>
</div>
<div class="contentRow">
<div class="rowContent" style="border-right: 1px solid white; border-bottom: 1px solid white;">
<div>
<h6>Clouds</h6>
<h5>90%</h5>
</div>
<img src="images/cloud.svg" alt="" width="20">
</div>
<div class="rowContent" style="border-bottom:1px solid white;">
<div>
<h6>Precipitation</h6>
<h5 id="pop">0%</h5>
</div>
<img src="images/cloudy.svg" alt="" width="20">
</div>
</div>
<div class="contentRow">
<div class="rowContent" style="border-right:1px solid white ;">
<div>
<h6>Sunrise</h6>
<h5>6:25 AM</h5>
</div>
<img src="images/sun.svg" alt="" width="20" style=" border-bottom: 1px solid white;">
</div>
<div class="rowContent">
<div>
<h6>Sunset</h6>
<h5>5:46 PM</h5>
</div>
<img src="images/sunrise.svg" alt="" width="20">
</div>
</div>
</div>
<div class="dailyForecast" style="margin-top:10px;">
<div class="TableHeading" style=" padding-bottom:10px;">
7-day Forecast
</div>
<!-- all the data inside rowcontainer would be injected by js -->
<div class="rowContainer">
</div>
</div>
<div class="siteFooter">
<h5>Site Created By : <a href="https://www.linkedin.com/in/himalayagupta03/" target="_blank">Himalaya
Gupta</a> </h5>
</div>
<!-- Trigger/Open The Modal -->
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<h2>Details</h2>
</div>
<div class="modal-body" style="color: black;">
</div>
</div>
</div>
</section>
</div>
<div id="showBigScreen">
<h2 class="text-align:center">This site is available only for mobile user. We sincerely apologize for the
inconveniance caused.</h2>
</div>
<script src="js/main2.js"></script>
<script src="js/favourites.js"></script>
</body>
</html>