forked from splitline/NCTUwU
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
243 lines (228 loc) · 10.1 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
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-51534833-6"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-51534833-6');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NCTUwU | 交大選課模擬器</title>
<meta property="og:title" content="NCTUwU | 交大選課模擬器" />
<meta property="og:description" content="就,又一個交大選課模擬器" />
<meta property="og:image" content="img/logo.png" />
<meta property="og:url" content="https://splitline.github.io/NCTUwU/" />
<link rel="preload" href="course-data/1091-data.json" as="fetch" crossorigin>
<link rel="preload" href="course-data/department.json" as="fetch" crossorigin>
<script src="js/config.js"></script>
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jsbi@3.1.3/dist/jsbi-umd.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.0/css/bulma.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="navbar is-light is-fixed-top" role="navigation">
<div class="container">
<div class="navbar-brand">
<a class="navbar-item" href="https://splitline.github.io/NCTUwU/">
<img src="img/brand.png">
</a>
<a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div class="navbar-menu" id="navMenu">
<div class="navbar-end">
<a class="navbar-item" id="user-status"></a>
</div>
</div>
</div>
</nav>
<div class="container is-widescreen">
<div class="columns is-desktop">
<div class="column is-one-quarter-desktop sidebar">
<div class="field">
<p class="control has-icons-left has-icons-right">
<input class="input" type="text" placeholder="載入課程資料中" disabled>
<span class="icon is-small is-left">
<i class="fas fa-search"></i>
</span>
</p>
</div>
<div class="field select is-fullwidth">
<select class="department" data-level="1"></select>
</div>
<div class="field select is-fullwidth is-hidden">
<select class="department" data-level="2"></select>
</div>
<div class="field select is-fullwidth is-hidden">
<select class="department" data-level="3"></select>
</div>
<div class="result course-panel course-list"></div>
<div class="course-panel">
<span class="tag is-info credits">0 學分</span>
<div class="selected course-list"></div>
</div>
</div>
<div class="column">
<div class="columns is-marginless">
<div class="column">
<div class="field chips" id="search-period">
</div>
</div>
<div class="column has-text-right ">
<button id="download" class="button is-small">
<span class="icon is-small">
<i class="fas fa-download"></i>
</span>
<span>下載圖片</span>
</button>
<button id="copy-link" class="button is-small">
<span class="icon is-small">
<i class="fas fa-share-square"></i>
</span>
<span>複製分享連結</span>
</button>
<button id="import" class="button is-small is-hidden">
<span class="icon is-small">
<i class="fas fa-file-import"></i>
</span>
<span>匯入此課表</span>
</button>
<div class="dropdown is-right is-hoverable">
<div class="dropdown-trigger">
<button class="button is-small" aria-haspopup="true" aria-controls="setting">
<span class="icon is-small">
<i class="fas fa-cog" aria-hidden="true"></i>
</span>
</button>
</div>
<div class="dropdown-menu" id="setting" role="menu">
<div class="dropdown-content has-text-left">
<div class="dropdown-item">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="table-container">
<table class="timetable" id="timetable">
<thead>
<tr>
<th></th>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
<th>Fri</th>
<th class="weekend">Sat</th>
<th class="weekend">Sun</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
<footer class="footer has-text-centered">
<p>Designed By @splitline</p>
<a href="https://github.com/splitline/NCTUwU" target="_blank">
<span class="icon">
<i class="fab fa-github"></i>
</span>
</a>
<a href="https://www.facebook.com/NCTUwU.simulator/" target="_blank">
<span class="icon">
<i class="fab fa-facebook"></i>
</span>
</a>
<a href="https://t.me/NCTUwU_simulator" target="_blank">
<span class="icon">
<i class="fab fa-telegram"></i>
</span>
</a>
</footer>
<template id="courseTemplate">
<div class="course">
<p>
<b class="modal-launcher" id="name"></b>
<span class="tag is-rounded" id="type"></span>
</p>
<div class="chips"></div>
<p id="detail"></p>
<a class="toggle-course">
<span class="icon">
<i class="toggle-icon fas fa-plus"></i>
</span>
</a>
</div>
</template>
<div class="modal">
<div class="modal-background"></div>
<div class="modal-content">
<div class="card">
<header class="card-header">
<p class="card-header-title"></p>
<a href="#" class="card-header-icon">
<span class="icon">
<i class="fas fa-times" aria-hidden="true"></i>
</span>
</a>
</header>
<div class="card-content">
<div class="content">
<dl class="dl-horizontal">
<dt>課號</dt>
<dd></dd>
<dt>學分</dt>
<dd></dd>
<dt>教師</dt>
<dd></dd>
<dt>上課時間 / 教室</dt>
<dd></dd>
</dl>
</div>
</div>
<footer class="card-footer">
<a href="#" target="_blank" id="outline" class="card-footer-item">課程綱要</a>
</footer>
</div>
</div>
</div>
<style id="custom-style"></style>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
<script src="https://cdn.jsdelivr.net/npm/dom-to-image@2.6.0/src/dom-to-image.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.19.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.19.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.19.1/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.19.1/firebase-analytics.js"></script>
<script src="js/app.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
if ($navbarBurgers.length > 0) {
$navbarBurgers.forEach(el => {
el.addEventListener('click', () => {
const target = el.dataset.target;
const $target = document.getElementById(target);
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
});
</script>
</body>
</html>