-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (81 loc) · 3.67 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>freeCodeCamp: Weather App</title> <!-- TITLE -->
<meta name="author" content="Michele Peghini">
<meta name="description" content="This is a widget developed for the freeCodeCamp Front End Certificate. It uses Open Weather API to display local weather information."> <!-- DESCRIPTION -->
<meta name="keywords" content="HTML5,CSS3,JSON,JavaScript,jQuery,Bootstrap,freeCodeCamp,weatherApp,Open Weather Map API"> <!-- TAGS, CSV -->
<!-- CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.9/css/weather-icons.min.css">
<!-- LOCALS -->
<script src="openWeatherKey.js"></script>
<script src="main.js"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1 id="top_header" class="text-center">freeCodeCamp: Weather App</h1>
<div class="jumbotron text-center">
<div id="temp" class="panel panel-default text-center">
<div class="panel-heading">
<h2 id="location"></h2>
</div>
<div class="panel-body">
<div id="main_temp">
<span id="currT" class="big_text"></span>
<div class="temp_box">
<span id="maxT" class="red"></span>
<span id="minT" class="blue"></span>
</div>
<span class="big_text left_pad"> °</span>
<span id="switchTemp" class="temp_scale big_text" role="button">C</span>
</div>
<div class="row">
<div class="col-xs-12">
<img id="mainI" src="" class="img" title="" alt="">
</div>
<div class="col-xs-12">
<span>Today in </span><b id="place"></b><span> there will be </span><b id="descrW"></b>
</div>
</div>
</div>
<div class="panel-footer text-center">
<div class="row">
<div class="col-xs-12 col-sm-3" title="Clouds percentage">
<i class="wi wi-cloudy"> : </i><span id="clouds"></span><span> %</span>
</div>
<div class="col-xs-12 col-sm-3" title="Wind speed">
<i class="wi wi-strong-wind"> : </i><span id="wind"></span><span> m/s</span>
</div>
<div class="col-xs-12 col-sm-3" title="Humidity percentage">
<i class="wi wi-humidity"> : </i><span id="hum"></span><span> %</span>
</div>
<div class="col-xs-12 col-sm-3" title="Pressure in hectopascals">
<i class="wi wi-barometer"> : </i><span id="press"></span><span> hPa</span>
</div>
</div>
</div>
</div>
</div>
<footer id="credits" class="text-center">
<h2>Credits:</h2>
<div class="row">
<div class="col-xs-12 col-sm-6">
<p><a href="https://openweathermap.org/" title="Weather Data Map" target="_blank">Open Weather API</a></p>
</div>
<div class="col-xs-12 col-sm-6">
<p><a href="https://erikflowers.github.io/weather-icons/" title="Erik Flowers" target="_blank">Weather Icons</a></p>
</div>
</div>
<h2>Author: Michele Peghini</h2>
<div class="row">
<p class="col-sm-4"><a href="https://codepen.io/michele_peghini/pens/public/" target="_blank">CodePen</a></p>
<p class="col-sm-4"><a href="https://github.com/michelepeghini" target="_blank">GitHub</a></p>
<p class="col-sm-4"><a href="https://www.freecodecamp.org/michelepeghini" target="_blank">freeCodeCamp</a></p>
</div>
</footer>
</body>
</html>