-
Notifications
You must be signed in to change notification settings - Fork 172
/
index.html
164 lines (114 loc) · 4.3 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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<html ng-app="inspire">
<head>
<meta charset="UTF-8">
<title>Inspire</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/css/style.css">
</head>
<body ng-controller="ImageController as ic" style="background: url({{ic.imageData.url}}) no-repeat center center fixed; background-size: cover;">
<div class="row">
<!--<img ng-src="{{ic.imageData.large_url}}" id="bgImg">-->
<div class="col-md-4" id="weather">
<div class="container">
<div ng-controller="WeatherController as wc">
<nav class="navbar navbar-inverse">
<h1>
<div class="row"><div class="col-md-4">{{wc.weather.name}}</div></div>
<div class="row"><div class="col-md-4">{{wc.weather.main.temp * 1.8 - 459.67 | number:2}}°</div></div>
<div class="row"><div class="col-md-4">{{wc.weather.weather[0].description}}</div></div>
</h1>
</nav>
</div>
</div>
</div>
</div>
<div class="col-md-8">
<div class="container" id="tasks">
<div ng-controller="TodoController as tc">
<nav class="navbar navbar-inverse">
<h1>TO DO</h1>
<!--<input type="text" class="form-control" placeholder="Text input" ng-model="tc.nTask.>-->
<form ng-submit="tc.addTodo(tc.newTask)" class="form-horizontal">
<div class="form-group">
<div class="col-md-12"><input type="text" class="form-control" placeholder="New Item" ng-model="tc.newTask.title">
</div></div>
<div class="form-group">
<div class="col-md-12"><input type="text" class="form-control" placeholder="assgnd to"ng-model="tc.newTask.responsibleParty">
</div></div>
<div class="form-group">
<div class="col-md-12"><input type="date" class="form-control" placeholder="due date" ng-model="tc.newTask.dueBy">
</div></div>
<div class="col-md-12"><div class="btn-group">
<button type="button" class="btn btn-outline btn default" ng-click="tc.addTask(tc.newTask)">Add New Task</button>
<button type="reset" class="btn btn-outline btn-danger">Clear Form</button>
</div></div>
</nav>
<div class="col-md-3" ng-repeat="task in tc.todos">
<div class="container" id="todoLi">
<nav class="navbar navbar-inverse">
<form class="form-horizontal">
<div class="row">
<div class="col-md-12">
Task Item:<h3>{{task.title}}</h3>
</div>
</div>
<div class="row">
<div class="col-md-12">
Person assgined to: <h3>{{task.responsibleParty}}</h3>
</div>
</div>
<div class="row">
<div class="col-md-12">
Due date: <h3>{{task.dueBy}}</h3>
</div>
</div>
<div class="checkbox">
<label><input type="checkbox" value="">Mark Finished</label>
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="row" id="center">
<div class="col-md-6">
<div class="container" height="20%">
<div class="row" id="clock">
<div class="col-md-6" height="50px">
{{t.time}}
</div>
</div>
<div class="row" id="quotes">
<div class="col-md-6">
<div ng-controller="QuoteController as qc">
<div class="panel panel-warning">
<div class="panel-heading">
{{qc.quote.quote}}
</div>
<div class="panel-body" background-color="black" color="aqua">
{{qc.qoute.author}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
<script src="app/init.js"></script>
<script src="app/components/weather/weather-service.js"></script>
<script src="app/components/image/image-service.js"></script>
<script src="app/components/quote/quote-service.js"></script>
<script src="app/components/todo/todo-service.js"></script>
<!--Load your scripts below-->
<script src="app/components/weather/weather-controller.js"></script>
<script src="app/components/image/image-controller.js"></script>
<script src="app/components/quote/quote-controller.js"></script>
<script src="app/components/todo/todo-controller.js"></script>
</body>
</html>