forked from Polcompballvalues/polcompballvalues.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.html
58 lines (55 loc) · 3.01 KB
/
gallery.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
<!DOCTYPE html>
<html lang="en-US">
<head>
<link href='stylesheets/style.css' rel='stylesheet' type='text/css'>
<link rel="icon" type="x-icon" href="assets/icon.png">
<link rel="shortcut icon" type="x-icon" href="assets/icon.png">
<title>PolcompballValues</title>
<meta property="og:ttl" content="600">
<meta property="og:site_name" content="polcompballvalues.github.io">
<meta property="og:title" content="PolcompballValues">
<meta property="og:type" content="website">
<meta property="og:description" content="PolcompballValues a quiz aimed at members of the Polcompball community, specially the official Discord server">
<meta property="og:url" content="https://polcompballvalues.github.io/">
<meta property="og:image" content="https://polcompballvalues.github.io/assets/previcon.png">
<meta property="og:image:width" content="1024">
<meta property="og:image:height" content="1024">
<meta name="theme-color" content="#000000" data-react-helmet="true">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
</head>
<body>
<h1>PolcompballValues</h1>
<h2>User Gallery</h2>
<select name="user" id="userdropdown" onchange="userdropdownChanged()"></select>
<br>
<img src="" id="banner">
<br style="margin-bottom: 1vw">
<button class="button" onclick="goBack()" id="back-button">Back</button><br>
<button class="button" onclick="location.href='credits.html'" id="credits-button">Credits</button> <br>
<script type="application/javascript" src="scripts/axes.js"></script>
<script type="application/javascript" src="scripts/users.js"></script>
<script type="application/javascript" src="scripts/canvas.js"></script>
<script>
userdropdown = document.getElementById("userdropdown")
function goBack() {
window.history.back();
}
function userdropdownChanged() {
i = userdropdown.selectedIndex
makeUserCanvas(users[i].stats.spos, users[i].stats.alle, users[i].stats.expr, users[i].stats.pers, users[i].stats.horn, users[i].stats.fame, users[i].stats.shwr, users[i].stats.sani, users[i].stats.rela, users[i].stats.fedp, users[i].stats.actn, users[i].stats.purp, users[i].stats.perc, users[i].stats.cmdy, true, false, darkmode, users[i].name)
}
window.onload = function() {
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
darkmode = true
} else {
darkmode = false
}
for(let i = 0;i < users.length;i++) {
userdropdown.innerHTML += "<option value=\"" + i + "\">" + users[i].name + "</option>"
}
userdropdownChanged(1)
}
</script>
</body>
</html>