-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
231 lines (197 loc) · 6.93 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
<!doctype html>
<html>
<head lang="de">
<meta charset="utf-8">
<title>DHBW Redirect</title>
<meta name="Nickels Witte" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome-->
<link rel="stylesheet" href="lib/font-awesome/css/all.min.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="lib/bootstrap-4.3.1-dist/css/bootstrap.min.css">
<!-- Set Favicon -->
<link rel="shortcut icon" href="img/favicon.ico">
<!-- Favicon -->
<link rel="icon" type="image/png" href="img/favicon.ico" sizes="32x32">
<link rel="icon" type="image/png" href="img/favicon.ico" sizes="96x96">
<!-- The different css stylings -->
<link rel="stylesheet" href="css/style.css">
<link id="css-dark" rel="stylesheet" href="css/theme-dark.css">
<link id="css-light" rel="stylesheet" href="css/theme-light.css">
<script>
// When the local storate is set to dark theme, disable the light theme quickly in order to supress the transition
var theme = localStorage.getItem('theme');
if (theme == "dark") {
document.getElementById("css-light").rel = "stylesheet alternate";
}
</script>
</head>
<body class="body">
<div class="container">
<!-- Theme button -->
<div id="themeSwitchLink" onclick="toggleTheme();" class="float">
<i id="themeSwitchButton" style="font-size: 1.5rem;" class="fas fa-moon"></i>
</div>
<!-- Title -->
<div class="row top-buffer">
<div class="col">
<h1>DHBW Redirect</h1>
<h6>Direkte Links zu allen Plänen des Studiengangs Informatik</h6>
<br />
<div id="top-info-alert" class="alert alert-dark alert-dismissible fade show">
Klicke auf eine Karte um an den aktuellen Plan zu gelangen oder kopiere den Direktlink für später.
</div>
</div>
</div>
<br />
<div class="row top-buffer">
<div class="col">
<p class="h4">Jahrgang '17</p>
</div>
</div>
<!-- First deck of cards -->
<div class="row top-buffer">
<div class="col-md">
<div class="card-deck">
<div class="card shadow-animation" onclick="raplaRedirect('TIT17');" style="cursor: pointer;">
<div class="card-color-top" style="background-color: #005baa;">
<h5 class="card-title">
<i class="fas fa-external-link-alt"></i>
TIT 17
</h5>
</div>
<div class="card-body">
<p class="card-text">
Der aktuelle Wochenplan von <b>Informationstechnik 2017</b>.
</p>
<input class="form-control top-buffer" id="input_tit17" type="text"
onclick="event.stopPropagation();this.select();" readonly>
</div>
</div>
<div class="card shadow-animation" onclick="raplaRedirect('TIM17');" style="cursor: pointer;">
<div class="card-color-top" style="background-color: #0079e2;">
<h5 class="card-title">
<i class="fas fa-external-link-alt"></i>
TIM 17
</h5>
</div>
<div class="card-body">
<p class="card-text">
Der aktuelle Wochenplan von <b>Mobile Informatik 2017</b>.
</p>
<input class="form-control top-buffer" id="input_tim17" type="text"
onclick="event.stopPropagation();this.select();" readonly>
</div>
</div>
<div class="card unavailable" onclick="" style="cursor: pointer;">
<div class="card-color-top" style="background-color: #1c96ff;">
<h5 class="card-title">
<i class="fas fa-external-link-alt"></i>
TIT & TIM 17
</h5>
</div>
<div class="card-body">
<p class="card-text">
Der aktuelle Wochenplan von <b>Informationstechnik & Mobile Informatik 2017</b>.
</p>
<input class="form-control top-buffer" type="text" onclick="event.stopPropagation();this.select();"
value="Currently unavaliable" readonly>
</div>
</div>
</div>
</div>
</div>
<br />
<div class="row top-buffer">
<div class="col">
<p class="h4">Jahrgang '18</p>
</div>
</div>
<!-- Second deck of cards -->
<div class="row top-buffer">
<div class="col">
<div class="card-deck">
<div class="card unavailable" onclick="" style="cursor: pointer;">
<div class="card-color-top" style="background-color: #143503;">
<h5 class="card-title">
<i class="fas fa-external-link-alt"></i>
TIT 18
</h5>
</div>
<div class="card-body">
<p class="card-text">
Der aktuelle Wochenplan von <b>Informationstechnik 2018</b>.
</p>
<input class="form-control top-buffer" type="text" onclick="event.stopPropagation();this.select();"
value="Currently unavaliable" readonly>
</div>
</div>
<div class="card unavailable" onclick="" style="cursor: pointer;">
<div class="card-color-top" style="background-color: #296a06;">
<h5 class="card-title">
<i class="fas fa-external-link-alt"></i>
TIM 18
</h5>
</div>
<div class="card-body">
<p class="card-text">
Der aktuelle Wochenplan von <b>Mobile Informatik 2018</b>.
</p>
<input class="form-control top-buffer" type="text" onclick="event.stopPropagation();this.select();"
value="Currently unavaliable" readonly>
</div>
</div>
<div class="card unavailable" onclick="" style="cursor: pointer;">
<div class="card-color-top" style="background-color: #53d50c;">
<h5 class="card-title">
<i class="fas fa-external-link-alt"></i>
TIS 18
</h5>
</div>
<div class="card-body">
<p class="card-text">
Der aktuelle Wochenplan von <b>IT Security 2018</b>.
</p>
<input class="form-control top-buffer" type="text" onclick="event.stopPropagation();this.select();"
value="Currently unavaliable" readonly>
</div>
</div>
</div>
</div>
</div>
<div class="row top-buffer bottom-buffer">
<div class="col-sm-4">
<div class="card-deck">
<div class="card unavailable" onclick="" style="cursor: pointer;">
<div class="card-color-top" style="background-color: #0cd515;">
<h5 class="card-title">
<i class="fas fa-external-link-alt"></i>
TIT & TIM & TIS 18
</h5>
</div>
<div class="card-body">
<p class="card-text">
Der aktuelle Wochenplan von <b>TIT, TIM und TIS 2018</b>.
</p>
<input class="form-control top-buffer" type="text" onclick="event.stopPropagation();this.select();"
value="Currently unavaliable" readonly>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
function setTextOfInputField(id, course) {
document.getElementById(id).setAttribute("value", `${window.location.host}/redirect.php?course=${course}`);
}
setTextOfInputField("input_tim17", "TIM17");
setTextOfInputField("input_tit17", "TIT17");
</script>
<!-- Load the custom rapla js for redirection -->
<script src="js/rapla_utils.js"></script>
<script src="js/theme.js"></script>
<script type="text/javascript" src="js/clipboard.js"></script>
</body>
</html>