-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
133 lines (122 loc) · 4.51 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<link rel="icon" href="/img/app.svg" type="image/x-icon">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<title>Weather App</title>
<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.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.css" rel="stylesheet"
type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.9/css/weather-icons.min.css">
<script>
var myVar;
function loader() {
myVar = setTimeout(showPage, 3000);
}
function showPage() {
document.getElementById("clouds").style.display = "none";
document.getElementById("myDiv").style.display = "block";
}
</script>
</head>
<body onload="loader()" style="margin:0;">
<div id='clouds' class='weather clouds '>
<div id='lil-cloud' class='cloud'>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div id='big-cloud' class='cloud'>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<h1 style=" position: relative;top: 200px">Loading...</h1>
</div>
<div style="display:none;" id="myDiv" class="app">
<div id="top-menu-info">
<p clasa="location">
<i class="fa fa-map-marker"></i>
<span id="location"></span>
</p>
</div>
<div id="temp-div" class="">
<div id="icon-temp">
<p id="main"></p>
<i class="default"></i>
</div>
<p id="current-temp-big">
<span id="temp"></span>
<span id="ctbicon">ºC</span>
</p>
</div>
<div class="weatherContent">
<div class="atmospher">
<p>Atmospher Condition</p>
<div class="humidity">
<i class="wi wi-humidity"></i>
<span>Humidity</span>
<span id="humidity"></span>
</div>
<div class="pressue">
<i class="wi wi-barometer"></i>
<span>Pressure</span>
<span id="pressure"></span>
</div>
<div class="visiablity">
<i class="wi wi-day-cloudy-windy"></i>
<span>Visiablity</span>
<span id="visiablity"></span>
</div>
</div>
<div class="sun">
<p>Sunrise/Sunset</p>
<div class="sunrise">
<i class="wi wi-sunrise"></i>
<span>Sunrise</span>
<span id="sunrise"></span>
</div>
<div class="daylight">
<i class="wi wi-time-4"></i>
<span>Daylight</span>
<span id="daylight"></span>
</div>
<div class="sunset">
<i class="wi wi-sunset"></i>
<span>Sunset</span>
<span id="sunset"></span>
</div>
</div>
<div class="wind">
<p>Wind Condition</p>
<div class="chill">
<i class="wi wi-thermometer-exterior" aria-hidden="true"></i>
<span>Feels Like</span>
<span id="cd"></span>
</div>
<div class="direction">
<i class="wi wi-wind from-270-deg" aria-hidden="true"></i>
<span>Direction</span>
<span id="dd"></span>
</div>
<div class="speed">
<i class="wi wi-strong-wind" aria-hidden="true"></i>
<span>Speed</span>
<span id="sd"></span>
</div>
</div>
<p id="copyright">Made by <strong><a href="http://www.pirasanth.com" target="_blank"
rel="noopener">Pirasanth</a></strong><br><br>
</p>
</div>
</div>
</body>
<script src="js/app.js"></script>
</html>