-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathweather.html
More file actions
64 lines (43 loc) · 1.54 KB
/
Copy pathweather.html
File metadata and controls
64 lines (43 loc) · 1.54 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
<!DOCTYPE html>
<html ng-app="mainApp">
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<!--
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
-->
<!-- SCROLLS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.0/css/font-awesome.css" />
<!-- SPELLS
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular.min.js"></script> -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.25/angular-route.js"></script>
<script src="jsfileweather.js"></script>
</head>
<body ng-controller="mainController">
<p>{{ message }}</p>
<div id="weather">
<table class="table">
<tr>
<td>{{currentweather.base}}</td>
<td>{{currentweather.id}}</td>
<td>{{currentweather.name}}</td>
<td>{{currentweather.dt}}</td>
<td>{{currentweather.code}}</td>
</tr>
</table>
<div>
<h1>{{currentweather.sys.message}}</h1>
</div>
<table class="table">
<tr ng-repeat="x in currentweather.weather">
<td>{{x.id}}</td>
<td>{{x.main}}</td>
<td>{{x.description}}</td>
<td>{{x.icon}}</td>
</tr>
</table>
</body>
</html>