-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
67 lines (51 loc) · 1.75 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
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://s3.amazonaws.com/codecademy-content/projects/bootstrap.min.css" rel="stylesheet" />
<link href="css/main.css" rel="stylesheet" />
<!-- Include the AngularJS library -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.5/angular.min.js"></script>
</head>
<body ng-app="ForecastApp">
<div class="main" ng-controller="MainController">
<div class="container">
<div class="row">
<div class="col-sm-5 col-sm-offset-7">
<h1>{{ fiveDay.city_name }}</h1>
<h2>5-day forecast</h2>
<div class="forecast" ng-repeat="day in fiveDay.days">
<div class="day row">
<!-- datetime -->
<div class="weekday col-xs-4">
<p>{{ day.datetime | date }}</p>
</div>
<!-- icon -->
<div class="weather col-xs-3">
<img ng-src="{{ day.icon }}">
</div>
<div class="col-xs-1"></div>
<!-- high -->
<div class="high col-xs-2">
<p>{{ day.high }}</p>
</div>
<!-- low -->
<div class="low col-xs-2">
<p>{{ day.low }}</p>
</div>
</div>
</div>
</div>
</div>
</ul>
</div>
</div>
<!-- Modules -->
<script src="js/app.js"></script>
<!-- Controllers -->
<script src="js/controllers/MainController.js"></script>
<!-- Services -->
<script src="js/services/forecast.js"></script>
<!-- Directives -->
</body>
</html>