-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathforecast.html
101 lines (93 loc) · 3.36 KB
/
forecast.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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://use.fontawesome.com/b6fb767c8e.js"></script>
<meta charset="utf-8">
<title>
Weather App - Forecast
</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<nav class="navbar navbar-default" id="nav_bar">
<div class="container">
<div class="navbar-header">
<a href="index.html" class="navbar-brand navbar-link weather">
<img src="images/logo.png" class="img-responsive" id="logo" alt="Logo"><strong>Weather App</strong>
</a>
<button class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navcol">
<span class="sr-only">
Toggle Navigation
</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="navcol">
<ul class="nav navbar-nav navbar-right" id="nav_list">
<li>
<a href="current.html">Current</a>
</li>
<li>
<a href="forecast.html">Forecast</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="jumbotron" style="margin-bottom: 0px; background-color:#534151; color: white;">
<h2 class="text-center" style="font-size: 50px; font-weight: 600; font-family: Trebuchet MS, Verdana;">Weather Forecast
</h2>
</div>
<div class="container" style="max-height: 80%;">
<div class="row">
<div class="col-md-12">
<h3 class="text-center" style="color: #534151; padding-top: 20px;">Enter City Name: </h3>
<span id="error" class="text-center"></span>
</div>
<div class="row form-group form-inline" id="cityDiv">
<input type="text" name="city" id="city" class="form-control" placeholder="Enter city name">
<input type="text" name="days" id="days" class="form-control" placeholder="No. of Days (1 to 16)">
<button id="submitForecast" class="btn btn-primary">Search</button>
</div>
</div>
<div class="row text-center" style="font-size: 20px;margin-top: 20px;">
<table class="table table-border">
<div id="header" class="text-center">
</div>
<thead>
<tr>
<th>Icon</th>
<th>Weather</th>
<th>Description</th>
<th>Morning Temp.</th>
<th>Night Temp.</th>
<th>Min Temp.</th>
<th>Max Temp.</th>
<th>Pressure</th>
<th>Humidity</th>
<th>Wind Speed</th>
<th>Wind Direction</th>
</tr>
</thead>
<tbody id="forecastWeather">
</tbody>
</table>
</div>
<div class="footer">
<div class="container">
<div class="row text-center" style="padding-top: 30px;">
<p>Made with <i class="fa fa-heart-o" aria-hidden="true"></i>
by <a href="http://www.nachiket.me" target="blank" style="color:#f2dbd2"> Nachiket Dhamankar</a></p>
</div>
</div>
</div>
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Bootstrap library -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="forecast.js"></script>
</body>
</html>