-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
148 lines (130 loc) · 3.98 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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Untis DSB</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='/static/main.css'>
<script src='/static/main.js' defer></script>
<script src='/static/scroll.js' defer></script>
<style>
body {
--scrolling-font-size: 4vh;
}
/* Ensure iframes are displayed next to each other */
.iframe-container {
display: flex;
justify-content: space-between;
}
.timetable {
width: 50%;
/* Adjust width as needed */
height: 100vh;
/* Adjust height as needed */
border: none;
}
body {
margin: 0;
position: relative;
}
body:not(.adFullscreen) {
.bottom-right {
position: absolute;
bottom: 0;
right: 0;
background: rgba(255, 255, 255, 0.8);
border: 1px solid #ccc;
border-radius: 5px;
width: 50vw;
max-height: 50vh;
overflow: hidden;
}
.bottom-right .advertisement {
width: 50vw;
height: auto;
max-height: 50vh;
object-fit: contain;
position: relative;
}
}
body.fixedHight:not(.adFullscreen) .bottom-right .advertisement {
height: 50vh;
}
body.adFullscreen {
.bottom-right {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(0, 0, 0);
/* Optional: Semi-transparent background */
}
.bottom-right .advertisement {
max-width: 100%;
max-height: 100%;
height: 100vh;
object-fit: contain;
}
.bottom-right iframe.advertisement {
width: 100vw;
height: 100vh;
object-fit: contain;
}
}
#scrolling-text {
position: absolute;
top: 0;
left: 0;
width: 100%;
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 10px;
white-space: nowrap;
overflow: hidden;
box-sizing: border-box;
font-size: var(--scrolling-font-size);
height: 1.5em;
z-index: 999;
}
#scrolling-text span {
display: inline-block;
padding-left: 5em;
padding-right: 5em;
white-space: nowarp;
position: absolute;
left: 0;
top: 0;
transition: left 1s linear;
}
.scrolling-text-content::after,
.scrolling-text-content::before {
content: ' ✧ ✧ ✧ ';
/* Separator content */
color: white;
/* Adjust color as needed */
padding-left: 1em;
/* Space around the separator */
padding-right: 1em;
}
</style>
</head>
<body>
<div id="scrolling-text">
</div>
<div class="iframe-container">
<iframe id="iframe1" class="timetable"></iframe>
<iframe id="iframe2" class="timetable"></iframe>
</div>
<div id="bottom-right" class="bottom-right">
<img id="advertisement-image" class="advertisement"
style="display: none; ">
<iframe id="advertisement-iframe" class="advertisement"
style="display: none; border: none; height: fit-content;"></iframe>
</div>
</body>
</html>