-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstats.html
88 lines (76 loc) · 4.01 KB
/
stats.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
<!DOCTYPE html>
<html lang="de" dir="ltr">
<head>
<meta charset="utf-8">
<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">
<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="Einige Statistiken über das verzweifelte Klickverhalten eurer Komilitonen!">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="stylesheet" href="/styles/betterstyle.css">
<link rel="stylesheet" href="/styles/charts.css">
<link rel="stylesheet" href="/styles/Chart.min.css">
<title>Statistiken für verzweifelte Physiker</title>
<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">
<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>
<a href="/" id="zurucklink" class="hoverline">zurück</a>
<div class="chartsCont" id="showOnlineUsers">Loading online user data...</div>
<div class="chartsCont" id="latest-clicks">Loading clicks data...</div>
<div class="chartsCont" id="latest-events">Loading events data...</div>
<div class="largeSpacer"></div>
<canvas class="jsChartsCont" id="hourChart" width="400" height="400"></canvas>
<canvas class="jsChartsCont" id="eventChart" width="400" height="400"></canvas>
<div class="largeSpacer"></div>
<div class="chartsCont" id="showUsers">Loading user data...</div>
<div id="versionData">Loading frontend version...</div>
<div id="api-version">Loading API version...</div>
<h4>Icon based on a svg made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a>
from
<a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></h4>
<h4>Hier findet ihr unsere <a href="/datenschutz.html" title="Datenschutz">Datenschutzerklärung</a>
sowie unser <a href="/datenschutz.html" title="Impressum">Impressum</a></h4>
</body>
<script src="/scripts/storage.js"></script>
<script src="/scripts/utils.js"></script>
<script src="/scripts/display-stats.js"></script>
<script src="/scripts/stats.js"></script>
<script src="/scripts/Chart.min.js"></script>
</html>