forked from sdgniser/timetable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
158 lines (145 loc) · 4.22 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="style.css" rel="stylesheet">
<title>
Timetable Generator
</title>
</head>
<body>
<h1>NISER Timetable Generator</h1>
<div id="wrapper">
<!-- Left pane starts -->
<div id="controls">
<h2>Select Courses</h2>
<div id="school-tabs" class="buttons">
</div>
<div id="school-list">
</div>
<div class="buttons">
<div>
<input type="checkbox" id="color" checked>
<label for="color">Add Colors?</label><br>
</div>
<button type="button" id="gen-code">Generate with Codes</button>
<button type="button" id="gen-nick">Generate with Nicknames</button>
<button id="reset">Reset</button>
<button type="button" id="pdf">Download PDF</button>
</div>
</div>
<!-- Left pane ends here -->
<!-- Right pane starts -->
<div id="preview">
<h2>Generated Timetable</h2>
<div id="tab">
<!--K1, K2 and J1, J2 used for SHSS courses. Hence they also have J and K class for non SHSS cources.-->
<table>
<tr>
<th scope="col">Day</th>
<th scope="col">08:30</th>
<th scope="col">09:30</th>
<th scope="col">10:30</th>
<th scope="col">11:30</th>
<th scope="col">12:30</th>
<th scope="col">13:30</th>
<th scope="col">14:30</th>
<th scope="col">15:30</th>
<th scope="col">16:30</th>
<th scope="col">17:30</th>
<th scope="col">18:30</th>
</tr>
<tr>
<th scope="row">Monday</th>
<td class="A">A</td>
<td class="B">B</td>
<td class="C">C</td>
<td class="D">D</td>
<td class="lunch">Lunch Break</td>
<td class="E">E</td>
<td class="G">G</td>
<td class="H">H</td>
<td class="I">I</td>
<td class="J1 J">J</td>
<td class="K1 K">K</td>
</tr>
<tr>
<th scope="row">Tuesday</th>
<td class="F">F</td>
<td class="A">A</td>
<td class="B">B</td>
<td class="C">C</td>
<td class="lunch">Lunch Break</td>
<td class="D">D</td>
<td class="G">G</td>
<td class="H">H</td>
<td class="I">I</td>
<td class="K2 K">K</td>
<td class="J2 J">J</td>
</tr>
<tr>
<th scope="row">Wednesday</th>
<td class="E">E</td>
<td class="F">F</td>
<td class="A">A</td>
<td class="B">B</td>
<td class="lunch">Lunch Break</td>
<td class="C">C</td>
<td class="G">G</td>
<td class="H">H</td>
<td class="I">I</td>
<td class="J1 J">J</td>
<td class="K1 K">K</td>
</tr>
<tr>
<th scope="row">Thursday</th>
<td class="D">D</td>
<td class="E">E</td>
<td class="F">F</td>
<td class="A">A</td>
<td class="lunch">Lunch Break</td>
<td class="B">B</td>
<td class="G">G</td>
<td class="H">H</td>
<td class="I">I</td>
<td class="K2 K">K</td>
<td class="J2 J">J</td>
</tr>
<tr>
<th scope="row">Friday</th>
<td class="C">C</td>
<td class="D">D</td>
<td class="E">E</td>
<td class="F">F</td>
<td class="lunch">Lunch Break</td>
<td class="">No Class</td>
<td class="">No Class</td>
<td class="">No Class</td>
<td class="">No Class</td>
<td class="">No Class</td>
<td class="">No Class</td>
</tr>
</table>
</div>
<h2 id="h2leg" class="hidden">Legend</h2>
<ul id="legend">
</ul>
</div>
<!-- Right pane ends here -->
</div>
<footer>
<ul>
<li><a href="https://github.com/sdgniser/timetable/issues/new">Report Issue/Error</a></li>
<li><a href="https://www.github.com/sdgniser/timetable">Source Code</a></li>
<li><a href="https://sdgniser.github.io">NISER SDG</a></li>
</ul>
</footer>
<script src="scripts/jspdf.umd.min.js"></script>
<script src="scripts/jspdf.plugin.autotable.js"></script>
<script src="scripts/html2canvas.min.js"></script>
<script src="scripts/data_fall.js"></script>
<!-- <script src="scripts/data_spring.js"></script> -->
<script src="scripts/main.js"></script>
</body>
</html>