-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
210 lines (198 loc) · 11.8 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
<!DOCTYPE html>
<html lang="de" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-title" content="Verzweifelte Physiker">
<meta name="application-name" content="Verzweifelte Physiker">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-config" content="/images/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<meta name="description" content="Eine Website für Kommilitonen um ihren Frust abzubauen.">
<meta name="viewport" content="width=device-width, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="stylesheet" href="styles/betterstyle.css">
<title>Verzweifelte Physiker</title>
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="194x194" href="/images/favicon-194x194.png">
<link rel="icon" type="image/png" sizes="192x192" href="/images/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#000000">
<link rel="shortcut icon" href="/images/favicon.ico">
<link href="/images/iphone5_splash.png"
media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="/images/iphone6_splash.png"
media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="/images/iphoneplus_splash.png"
media="(device-width: 621px) and (device-height: 1104px) and (-webkit-device-pixel-ratio: 3)"
rel="apple-touch-startup-image" />
<link href="/images/iphonex_splash.png"
media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3)"
rel="apple-touch-startup-image" />
<link href="/images/iphonexr_splash.png"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="/images/iphonexsmax_splash.png"
media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3)"
rel="apple-touch-startup-image" />
<link href="/images/ipad_splash.png"
media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="/images/ipadpro1_splash.png"
media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="/images/ipadpro3_splash.png"
media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<link href="/images/ipadpro2_splash.png"
media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2)"
rel="apple-touch-startup-image" />
<script type="text/javascript">
var theme = "light";
function detectColorScheme() {
//don't use the storage object, this has to happen in the header and we want to minimize loading times!!!!!!
if (localStorage.getItem("theme") == "dark") {
theme = "dark";
document.documentElement.setAttribute("data-theme", theme);
console.log("automatically set darkmode to " + theme)
} else if (localStorage.getItem("theme") == "light") {
theme = "light";
document.documentElement.setAttribute("data-theme", theme);
console.log("automatically set darkmode to " + theme)
} else if (!window.matchMedia) {
//matchMedia method not supported
console.log("matchMedia method not supported")
document.documentElement.setAttribute("data-theme", theme);
console.log("automatically set darkmode to " + theme)
} else if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
//OS theme setting detected as dark
theme = "dark";
console.log("matchMedia color set ", theme);
}
}
detectColorScheme();
</script>
</head>
<body>
<main id="wrapper" class="wrapper">
<nav id="statsCont" class="statsCont">
<table>
<tr>
<th>gesamt</th>
<th>heute</th>
<th>sitzung</th>
<th>online</th>
</tr>
<tr>
<td id="total">--</td>
<td id="today">--</td>
<td id="session">0</td>
<td id="online">--</td>
</tr>
</table>
</nav>
<div class="mainBtnCont" id="mainButtonCont">
<button onclick="verzweifle()" id="mainButton" tabindex="0" class="bigButton" accesskey="f">ich
verzweifle</button>
<div class="ringStart"></div>
</div>
<nav class="tinyWrapper">
<span style="display: flex; flex-direction: row;" class="hoverline">
<input id="nameInput" maxlength="15" tabindex="1" pattern=".{1,15}" onkeypress="process(event, this)"
title="Wähle einen bis zu 15 Zeichen langen Namen" type="text" name="name_input" placeholder="Gast"
class="nameInput" autocomplete="off" />
<button id="commentButton" class="hide" onclick="openComment(this)" tabindex="2">
<svg viewBox="0 0 100 100" height="2em" width="2em">
<path id="commentExpandPath" d="m 0,25 L 50,75 L 100,25"
style="stroke:var(--font-color);stroke-width:8;fill: none; " />
</svg>
</button>
</span>
<div class="spacer">
</div>
<span style="width: 100%;" class="hoverline hide">
<textarea id="commentInput" maxlength="75" pattern=".{0,75}" tabindex="3" onkeypress="process(event, this)"
title="Kommentare dürfen nur 75 Zeichen lang sein" type="text" name="comment_input" value=""
class="nameInput commentInput hide" autocomplete="off"></textarea>
</span>
</nav>
<div id="popupAnker">
<div class="fu" id="offlineMessage" style="top: 15%; display:none;">
OFFLINE
</div>
</div>
<div id="toastAnker" class="toastAnker"> </div>
<div class="spacer">
<div class="iconCont">
<div class="iconButtonWrapper">
<a id="charts" type="button" name="Charts Button" href="/stats.html" tabindex="3" class="iconButton">
<svg aria-hidden="true" focusable="false" data-icon="charts" role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512" class="adjust">
<path fill="var(--font-color)"
d="M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"
class=""></path>
</svg></a><span class="bigScreenVisibleText">Statistiken</span>
</div>
<div class="iconButtonWrapper">
<a id="githubButton" name="Link to GitHub" href="https://github.com/timephy/frust-web" tabindex="4"
class="iconButton">
<svg aria-hidden="true" focusable="false" data-icon="github" role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 496 512" class="github">
<path fill="var(--font-color)"
d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"
class=""></path>
</svg></a><span class="bigScreenVisibleText">GitHub</span>
</div>
</div>
<div class="iconCont rightCont">
<div class="iconButtonWrapper">
<span class="bigScreenVisibleText">Help</span>
<a id="help" type="button" name="Help Button" onclick="alert(HELP_MESSAGE)" tabindex="5" class="iconButton">
<svg aria-hidden="true" focusable="false" data-icon="adjust" role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512" class="adjust">
<path fill="var(--font-color)"
d="M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"
class=""></path>
</svg></a>
</div>
<div class="iconButtonWrapper">
<span class="bigScreenVisibleText">Toggle Darkmode</span>
<a id="adjustButton" type="button" name="Theme Button" onclick="toggleDarkmode()" tabindex="6"
class="iconButton">
<svg aria-hidden="true" focusable="false" data-icon="adjust" role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512" class="adjust">
<path fill="var(--font-color)"
d="M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"
class=""></path>
</svg></a>
</div>
</div>
</div>
</main>
<!-- <div class="snowflakes" aria-hidden="true" style="display: none;">
<div class="snowflake">❅</div>
<div class="snowflake">GOP</div>
<div class="snowflake">😪</div>
<div class="snowflake">JNF</div>
<div class="snowflake">❆</div>
<div class="snowflake">❅</div>
<div class="snowflake">😭</div>
<div class="snowflake">❆</div>
<div class="snowflake">S<sup>-1</sup>AS</div>
<div class="snowflake">❆</div>
<div class="snowflake">❆</div>
<div class="snowflake">😥</div>
</div> -->
</body>
<script src="scripts/socket.io.js"></script>
<script src="scripts/utils.js"></script>
<script src="scripts/anime.min.js"></script>
<script src="scripts/storage.js"></script>
<script src="scripts/display.js"></script>
<script src="scripts/script.js"></script>
</html>