forked from marcospgp/college-schedule-maker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
198 lines (140 loc) · 9.91 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html lang="en" ng-app="scheduleMaker">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Allows the user to try different schedule configurations so they can make a better choice.">
<meta name="author" content="Marcos Pereira & Vítor Castro">
<title>Schedule Maker</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
<link href="" rel="stylesheet">
<link href="styles.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[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 ng-controller="scheduleMakerController as ctrl">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">Horário maker</a>
</div>
</div>
</nav>
<div class="container main-container">
<h2>Usa esta página para criar o teu horário.</h2>
<p class="lead">Clica num turno para o selecionares. Conflitos entre turnos serão assinalados a vermelho.</p>
</div>
<table>
<thead>
<tr>
<th colspan="5">Hora</th>
<th colspan="30">Segunda</th>
<th colspan="30">Terça</th>
<th colspan="30">Quarta</th>
<th colspan="30">Quinta</th>
<th colspan="30">Sexta</th>
</tr>
</thead>
<tbody>
<tr>
<th colspan="5">09:00</th>
<td colspan="30"></td>
<td colspan="10" rowspan="2" class="{{ctrl.schedule[1][0][0][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[1][0][0], $event)">{{ctrl.schedule[1][0][0][0]}}</td>
<td colspan="10" rowspan="2" class="{{ctrl.schedule[1][0][1][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[1][0][1], $event)">{{ctrl.schedule[1][0][1][0]}}</td>
<td colspan="10"></td>
<td colspan="15" rowspan="2" class="{{ctrl.schedule[2][0][0][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[2][0][0], $event)">{{ctrl.schedule[2][0][0][0]}}</td>
<td colspan="15" rowspan="2" class="{{ctrl.schedule[2][0][1][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[2][0][1], $event)">{{ctrl.schedule[2][0][1][0]}}</td>
<td colspan="15" rowspan="2" class="{{ctrl.schedule[3][0][0][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[3][0][0], $event)">{{ctrl.schedule[3][0][0][0]}}</td>
<td colspan="15" rowspan="2" class="{{ctrl.schedule[3][0][1][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[3][0][1], $event)">{{ctrl.schedule[3][0][1][0]}}</td>
<td colspan="30"></td>
</tr>
<tr>
<th colspan="5">10:00</th>
<td colspan="30"></td>
<td colspan="10" rowspan="2" class="{{ctrl.schedule[1][1][0][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[1][1][0], $event)">{{ctrl.schedule[1][1][0][0]}}</td>
<td colspan="30"></td>
</tr>
<tr>
<th colspan="5">11:00</th>
<td colspan="30"></td>
<td colspan="20"></td>
<td colspan="15" rowspan="2" class="{{ctrl.schedule[2][1][0][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[2][1][0], $event)">{{ctrl.schedule[2][1][0][0]}}</td>
<td colspan="15" rowspan="2" class="{{ctrl.schedule[2][1][1][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[2][1][1], $event)">{{ctrl.schedule[2][1][1][0]}}</td>
<td colspan="30"></td>
<td colspan="30"></td>
</tr>
<tr>
<th colspan="5">12:00</th>
<td colspan="30"></td>
<td colspan="30"></td>
<td colspan="30"></td>
<td colspan="30"></td>
</tr>
<tr>
<th colspan="5">13:00</th>
<td colspan="30" rowspan="2" class="{{ctrl.schedule[0][0][0][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[0][0][0], $event)">{{ctrl.schedule[0][0][0][0]}}</td>
<td colspan="30" rowspan="2" class="{{ctrl.schedule[1][2][0][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[1][2][0], $event)">{{ctrl.schedule[1][2][0][0]}}</td>
<td colspan="30"></td>
<td colspan="30" rowspan="1" class="{{ctrl.schedule[3][1][0][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[3][1][0], $event)">{{ctrl.schedule[3][1][0][0]}}</td>
<td colspan="30" rowspan="1" class="{{ctrl.schedule[4][0][0][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[4][0][0], $event)">{{ctrl.schedule[4][0][0][0]}}</td>
</tr>
<tr>
<th colspan="5">14:00</th>
<td colspan="30"></td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[3][2][0][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[3][2][0], $event)">{{ctrl.schedule[3][2][0][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[3][2][1][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[3][2][1], $event)">{{ctrl.schedule[3][2][1][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[3][2][2][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[3][2][2], $event)">{{ctrl.schedule[3][2][2][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[3][2][3][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[3][2][3], $event)">{{ctrl.schedule[3][2][3][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[3][2][4][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[3][2][4], $event)">{{ctrl.schedule[3][2][4][0]}}</td>
<td colspan="30" rowspan="1" class="{{ctrl.schedule[4][1][0][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[4][1][0], $event)">{{ctrl.schedule[4][1][0][0]}}</td>
</tr>
<tr>
<th colspan="5">15:00</th>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[0][1][0][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[0][1][0], $event)">{{ctrl.schedule[0][1][0][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[0][1][1][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[0][1][1], $event)">{{ctrl.schedule[0][1][1][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[0][1][2][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[0][1][2], $event)">{{ctrl.schedule[0][1][2][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[0][1][3][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[0][1][3], $event)">{{ctrl.schedule[0][1][3][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[0][1][4][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[0][1][4], $event)">{{ctrl.schedule[0][1][4][0]}}</td>
<td colspan="30" rowspan="1" class="{{ctrl.schedule[1][3][0][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[1][3][0], $event)">{{ctrl.schedule[1][3][0][0]}}</td>
<td colspan="30"></td>
<td colspan="30" rowspan="1" class="{{ctrl.schedule[4][2][0][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[4][2][0], $event)">{{ctrl.schedule[4][2][0][0]}}</td>
</tr>
<tr>
<th colspan="5">16:00</th>
<td colspan="30" rowspan="1" class="{{ctrl.schedule[1][4][0][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[1][4][0], $event)">{{ctrl.schedule[1][4][0][0]}}</td>
<td colspan="30"></td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[3][3][0][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[3][3][0], $event)">{{ctrl.schedule[3][3][0][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[3][3][1][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[3][3][1], $event)">{{ctrl.schedule[3][3][1][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[3][3][2][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[3][3][2], $event)">{{ctrl.schedule[3][3][2][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[3][3][3][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[3][3][3], $event)">{{ctrl.schedule[3][3][3][0]}}</td>
<td colspan="6" rowspan="2" class="{{ctrl.schedule[3][3][4][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[3][3][4], $event)">{{ctrl.schedule[3][3][4][0]}}</td>
<td colspan="30"></td>
</tr>
<tr>
<th colspan="5">17:00</th>
<td colspan="10" rowspan="2" class="{{ctrl.schedule[0][2][0][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[0][2][0], $event)">{{ctrl.schedule[0][2][0][0]}}</td>
<td colspan="10" rowspan="2" class="{{ctrl.schedule[0][2][1][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[0][2][1], $event)">{{ctrl.schedule[0][2][1][0]}}</td>
<td colspan="10" rowspan="2" class="{{ctrl.schedule[0][2][2][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[0][2][2], $event)">{{ctrl.schedule[0][2][2][0]}}</td>
<td colspan="15" rowspan="2" class="{{ctrl.schedule[1][5][0][1]}}" ng-click="ctrl.onSelect(ctrl.schedule[1][5][0], $event)">{{ctrl.schedule[1][5][0][0]}}</td>
<td colspan="15" rowspan="2" class="{{ctrl.schedule[1][5][1][1]}} last-of-the-hour" ng-click="ctrl.onSelect(ctrl.schedule[1][5][1], $event)">{{ctrl.schedule[1][5][1][0]}}</td>
<td colspan="30"></td>
<td colspan="30"></td>
</tr>
<tr>
<th colspan="5">18:00</th>
<td colspan="30"></td>
<td colspan="30"></td>
<td colspan="30"></td>
</tr>
</tbody>
</table>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="./script.js"></script>
</body>
</html>