forked from afzafri/UiTM-Timetable-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·246 lines (216 loc) · 8.15 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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<!--
Project : UiTM Timetable Generator
Description : Fetch and generate timetable from iCress
Created by : Afif Zafri & Mohd Shahril
Credit : Mohd Shahril (regex code and major code overhaul & improvement)
Created Date : 24/1/16
UPDATE 10/4/16
Add Timetable.js javascript plugin to create responsive timetable.
UPDATE 13/4/16
Major code overhaul and improvement
Design and touch up by : Syed Muhamad Danial
UPDATE 1/12/16
A little update to the frontend, now support mobile view. by - afif
-->
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<link href="favicon.ico" rel="shortcut icon">
<link rel="stylesheet" href="./styles/timetablejs.css">
<link rel="stylesheet" type="text/css" href="./styles/design.css">
<link rel="stylesheet" type="text/css" href="./styles/vex.css">
<link rel="stylesheet" type="text/css" href="./styles/vex-theme-os.css">
<link rel="stylesheet" type="text/css" href="./styles/blobselect.css">
<!-- scale down/resize page content to fix screen width, as for mobile view -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>UiTM Timetable Generator</title>
<meta name="description" content="Fetch and Create UiTM Courses Timetable">
<meta name="keywords" content="UiTM, timetable, iCress, generator, creator, timetable creator, open source">
<meta property="og:description" content="Fetch and Create UiTM Courses Timetable"/>
<meta property="twitter:title" content="UiTM Timetable Generator"/>
<meta property="og:image" content="http://uitmtimetable.com/img/uitm.jpg"/>
<meta property="og:title" content="UiTM Timetable Generator"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:site_name" content="UiTM Timetable Generator"/>
</head>
<body>
<a href="https://github.com/afzafri/UiTM-Timetable-Generator">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png">
</a>
<!-- start wrapper - use to fix the footer -->
<div class="wrapper">
<!--aku tambah design unter header bg nampak kemas dan lagi elok also link ke istudent portal dkt gmbar uitm-->
<table class="bannerapp">
<tr>
<td align="center" id="deslogouitm">
<a href="http://istudent.uitm.edu.my/nsp/home/main.asp" title="UiTM Student Portal" alt="UiTM Student Portal" target="blank">
<img src="./img/uitm.jpg" width="230px"/>
</a>
</td>
<td align="center" id="destitle">
<h1 id="project_title">
<a href="./index.html" title="Generate UiTM Class Timetable" style="color:white">
UiTM Timetable<br>
Generator <br>
</a>
<div style="padding-top: 10px">
<a href="./finalexam/" class="button -sm -purple" title="Generate UiTM Final Exam Timetable">
Generate Final Exam Timetable
</a>
</div>
</h1>
</td>
</tr>
</table>
<br><br>
<!-- experimental feature -->
<button type="button" class="button -dark login">Auto Fetch from i-Learn</button>
<pre>Select faculty/campus from list below</pre>
<div class='inputTimetable'>
<center>
<select name='fakulti' id="listfaculty">
<option value=''>Select Your Campus State Here</option>
<!-- amek data kt icress -->
<!-- js akan automatik update data kt sini tiap2 kali run -->
</select>
<br>
or
<br><br>
<div class="upload-btn-wrapper">
<button class="btn">Import Excel (.xlsx) file</button>
<input type="file" id="excelFile" onchange="return importExcel()"/>
</div>
</center>
</div>
<div id="select-table">
<table class='newtable'>
<tr>
<th>#</th>
<th>Subject</th>
<th></th>
<th>Group</th>
<th></th>
</tr>
<!-- js akan automatik tmbah new row kt sini -->
</table>
</div>
<!-- generate timetable -->
<div class='timetable' id='timetable'></div>
<!-- tools list -->
<div id="tools" style="display: none;">
<!-- change timetable event colours -->
<div id="changeColoursTool">
<center>
<fieldset style="display: inline;">
<legend><b><u>Customize colours</u></b></legend>
<table id="subjectColorTable" border="1px" style="border-collapse: collapse; text-align: center;">
<tr>
<th>Subject</th>
<th>Background</th>
<th>Border</th>
<th>Text</th>
</tr>
<tr>
<td>All</td>
<td><input id="change_bg_color" type="color" onchange="return changeColours()"></td>
<td><input id="change_border_color" type="color" onchange="return changeColours()"></td>
<td><input id="change_text_color" type="color" onchange="return changeColours()"></td>
</tr>
</table>
<br>
<a href="#" onclick="return changeColours('default')"><i>Reset default</i></a>
</fieldset>
</center>
<br><br>
</div>
<!-- download timetable as image (experimental) -->
<button onclick='return saveImg()' class='button -dark' title='Save timetable as PNG image'>Export Timetable to Image (Experimental)</button>
<!-- export timetable data to Excel spreadsheet -->
<button onclick='return saveExcel()' class='button -green' title='Save timetable as Excel spreadsheet'>Export Timetable to Excel</button>
<br><br>
</div>
<iframe id="excel_frame" style="display:none;"></iframe>
<textarea name="exportData" id="exportData" rows="8" cols="80" style="display:none"></textarea>
<br><br><br>
</div> <!-- end wrapper -->
<!--footer yg aku design skali dgn link to dev. team-->
<table class="bannerappfooter">
<tr>
<td align="center">
<table id="destabletodevteam">
<tr>
<td class="destd">
<a href="https://twitter.com/syedmdanial" target="blank">
<img alt="Twitter Icon" border="0" height="40" src="img/twitt.png" width="40" title="Syed Muhamad Danial">
</a>
</td>
<td class="destd">
<a href="https://twitter.com/mohd_shahril_96" target="blank">
<img alt="Twitter Icon" border="0" height="40" src="img/twitt.png" width="40" title="Mohd Shahril">
</a>
</td>
<td class="destd">
<a href="https://twitter.com/afzafri" target="blank">
<img alt="Twitter Icon" border="0" height="40" src="img/twitt.png" width="40" title="Afif Zafri">
</a>
</td>
</tr>
</table>
<table class="destb1">
<tr>
<td id="desneedhelp">
Have questions or need assistance?
</td>
</tr>
</table>
<table class="destb1">
<tr>
<td align="center">
<table class="destb2">
<tr>
<td style="font-size: 0; text-align: center;">
<div style="display: inline-block;">
<table class="destb1" width="182">
<tr>
<td id="tdgithub">
<a href="https://github.com/afzafri/UiTM-Timetable-Generator/issues" target="blank" id="desgithub">
<img alt="Github Icon" border="0" height="40" src="img/git.png" width="40">
<br>
Support
</a>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table class="destb1">
<tr>
<td align="center" class="desinfodevteam">
<span>
An Open Source Project<br>
© 2016 Afif, Mohd Shahril & Syed<br>
Diploma in Computer Science (CS110)<br>
UiTM Perlis
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="se-pre-con"></div>
<script src='./scripts/external/alertify.min.js'></script>
<script src='./scripts/external/timetable.js'></script>
<script src='./scripts/external/vex.combined.min.js'></script>
<script src='./scripts/external/html2canvas.min.js'></script>
<script src='./scripts/external/blobselect.min.js'></script>
<script src='./scripts/script.js'></script> <!-- main javascript code -->
</body>
</html>