-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
125 lines (109 loc) · 4.62 KB
/
Copy pathindex.html
File metadata and controls
125 lines (109 loc) · 4.62 KB
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
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Swetha's Weather Channel</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<style>
.navbarBlue{
background-color: darkblue;
}
.jumbotron{
background-color: #F0F8FF;
}
.pearl{
background-color: #F0F8FF;
}
#mainWeather {
height: 1100px;
padding-top: 70px;
}
#hourlyWeather{
height: 1100px;
padding-top: 70px;
}
#dailyWeather{
height: 1100px;
padding-top: 70px;
}
</style>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target=".navbar-collapse">
<div class="navbar navbar-inverse navbarBlue navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">Swetha's Weather Channel</a>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse" aria-expanded="false">
<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">
<ul class="nav navbar-nav">
<li><a href="#mainWeather">Main</a></li>
<li><a href="#hourlyWeather">Hourly</a></li>
<li><a href="#dailyWeather">Daily</a></li>
</ul>
<form class="navbar-form navbar-right" id="weatherNew">
<div class="form-group">
<input type="text" id="newLocation" class="form-control" placeholder="Enter Location">
</div>
<button type="submit" class="btn btn-default">Get Weather</button>
</form>
</div>
</div>
</div>
<div class="container" id="mainWeather">
<div class="jumbotron">
<h3 id="location" style="text-align:center">Fetching your location</h3>
</div>
<div class="panel panel-info">
<div class="panel-heading">Details for <span id="thelocationdetails"></span></div>
<div class="panel-body">
<table class="table table-bordered table-striped">
<tr><td>Pressure</td><td id="currentPressure">NA</td></tr>
<tr><td>Humidity</td><td id="currentHumidity">NA</td></tr>
<tr><td>Min Temperature</td><td id="currentMin">NA</td></tr>
<tr><td>Max Temperature</td><td id="currentMax">NA</td></tr>
</table>
</div>
</div>
<div id="otherLocations"></div>
</div>
<div class="container" id="hourlyWeather">
<div class="panel panel-info">
<div class="panel-heading">Hourly weather for <span id="thelocationhour"></span></div>
<div class="panel-body">
<table class="table table-bordered table-striped" id="hourlyData">
</table>
</div>
</div>
</div>
<div class="container" id="dailyWeather">
<div class="panel panel-info">
<div class="panel-heading">Daily weather for <span id="thelocationdaily"></span></div>
<div class="panel-body">
<table class="table table-bordered table-striped" id="dailyData">
</table>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script type="text/javascript" src="location.js"></script>
</body>
</html>