This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgallery.html
311 lines (292 loc) · 12.6 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
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
<!DOCTYPE html>
<html lang="en-US">
<head>
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:400,700" rel="stylesheet">
<link href='style.css' rel='stylesheet' type='text/css'>
<link rel="icon" type="x-icon" href="icon.png">
<link rel="shortcut icon" type="x-icon" href="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/legacy/">
<meta property="og:image" content="https://polcompballvalues.github.io/legacy/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 charset="utf-8">
<script type="application/javascript" src="users.js"></script>
<script type="application/javascript" src="axis.js"></script>
<script type="application/javascript" src="version.js"></script>
</head>
<body>
<h1>PolcompballValues (legacy)</h1>
<hr>
<select name="user" id="userdropdown"
style="display:flex; font-size:30pt; margin:auto; text-align:center; width:50%"
onchange="userdropdownChanged()"></select>
<img src="" id="banner">
</hr>
<button class="button" onclick="goBack()" style="background-color: #2196f3;">Back</button><br>
<button class="button" onclick="location.href='credits.html';" style="background-color: #aaaaaa;">Credits</button>
<br>
<script>
function goBack() {
window.history.back();
}
function setLabel(val, ary) {
if (val > 100) return ""
if (val > 90) return ary[0]
if (val > 75) return ary[1]
if (val > 60) return ary[2]
if (val >= 40) return ary[3]
if (val >= 25) return ary[4]
if (val >= 10) return ary[5]
if (val >= 0) return ary[6]
return ""
}
var img_sincerity = new Image();
img_sincerity.src = "value_images/sincerity.svg";
var img_irony = new Image();
img_irony.src = "value_images/irony.svg";
var img_jannyphobe = new Image();
img_jannyphobe.src = "value_images/jannyphobe.svg";
var img_jannyphile = new Image();
img_jannyphile.src = "value_images/jannyphile.svg";
var img_casual = new Image();
img_casual.src = "value_images/casual.svg";
var img_serious = new Image();
img_serious.src = "value_images/serious.svg";
var img_wholesome = new Image();
img_wholesome.src = "value_images/wholesome.svg";
var img_edgy = new Image();
img_edgy.src = "value_images/edgy.svg";
var img_horny = new Image();
img_horny.src = "value_images/horny.svg";
var img_antihorny = new Image();
img_antihorny.src = "value_images/antihorny.svg";
var img_active = new Image();
img_active.src = "value_images/active.svg";
var img_lurker = new Image();
img_lurker.src = "value_images/lurker.svg";
var img_standard = new Image();
img_standard.src = "value_images/standard.svg";
var img_wacky = new Image();
img_wacky.src = "value_images/wacky.svg";
var img_schizo = new Image();
img_schizo.src = "value_images/schizo.svg";
var img_boring = new Image();
img_boring.src = "value_images/boring.svg";
var img_liked = new Image();
img_liked.src = "value_images/liked.svg";
var img_disliked = new Image();
img_disliked.src = "value_images/disliked.svg";
var img_inclusive = new Image();
img_inclusive.src = "value_images/inclusive.svg";
var img_discriminatory = new Image();
img_discriminatory.src = "value_images/discriminatory.svg";
var img_behaving = new Image();
img_behaving.src = "value_images/behaving.svg";
var img_misbehaving = new Image();
img_misbehaving.src = "value_images/misbehaving.svg";
function makeUserCanvas(user, sincerity, jannyphobe, casual, wholesome, horny, active, standard, schizo, liked, inclusive, behaving) {
sincerity = sincerity.toFixed(1)
irony = (100 - sincerity).toFixed(1)
jannyphobe = jannyphobe.toFixed(1)
jannyphile = (100 - jannyphobe).toFixed(1)
casual = casual.toFixed(1)
serious = (100 - casual).toFixed(1)
wholesome = wholesome.toFixed(1)
edgy = (100 - wholesome).toFixed(1)
horny = horny.toFixed(1)
antihorny = (100 - horny).toFixed(1)
active = active.toFixed(1)
lurker = (100 - active).toFixed(1)
standard = standard.toFixed(1)
wacky = (100 - standard).toFixed(1)
schizo = schizo.toFixed(1)
boring = (100 - schizo).toFixed(1)
liked = liked.toFixed(1)
disliked = (100 - liked).toFixed(1)
inclusive = inclusive.toFixed(1)
discriminatory = (100 - inclusive).toFixed(1)
behaving = behaving.toFixed(1)
misbehaving = (100 - behaving).toFixed(1)
const canvas = document.createElement("canvas")
const ctx = canvas.getContext("2d")
const dark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
canvas.width = 800;
canvas.height = 1500;
if (dark) {
ctx.fillStyle = "#141414" //Dark mode
} else {
ctx.fillStyle = "#EEEEEE"
} //Light mode
ctx.fillRect(0, 0, 800, 1500);
ctx.drawImage(img_sincerity, 20, 170, 100, 100)
ctx.drawImage(img_irony, 680, 170, 100, 100)
ctx.drawImage(img_jannyphobe, 20, 290, 100, 100)
ctx.drawImage(img_jannyphile, 680, 290, 100, 100)
ctx.drawImage(img_casual, 20, 410, 100, 100)
ctx.drawImage(img_serious, 680, 410, 100, 100)
ctx.drawImage(img_wholesome, 20, 530, 100, 100)
ctx.drawImage(img_edgy, 680, 530, 100, 100)
ctx.drawImage(img_horny, 20, 650, 100, 100)
ctx.drawImage(img_antihorny, 680, 650, 100, 100)
ctx.drawImage(img_active, 20, 770, 100, 100)
ctx.drawImage(img_lurker, 680, 770, 100, 100)
ctx.drawImage(img_standard, 20, 890, 100, 100)
ctx.drawImage(img_wacky, 680, 890, 100, 100)
ctx.drawImage(img_schizo, 20, 1010, 100, 100)
ctx.drawImage(img_boring, 680, 1010, 100, 100)
ctx.drawImage(img_liked, 20, 1130, 100, 100)
ctx.drawImage(img_disliked, 680, 1130, 100, 100)
ctx.drawImage(img_inclusive, 20, 1250, 100, 100)
ctx.drawImage(img_discriminatory, 680, 1250, 100, 100)
ctx.drawImage(img_behaving, 20, 1370, 100, 100)
ctx.drawImage(img_misbehaving, 680, 1370, 100, 100)
ctx.fillStyle = "#222222"
ctx.fillRect(120, 180, 560, 80)
ctx.fillRect(120, 300, 560, 80)
ctx.fillRect(120, 420, 560, 80)
ctx.fillRect(120, 540, 560, 80)
ctx.fillRect(120, 660, 560, 80)
ctx.fillRect(120, 780, 560, 80)
ctx.fillRect(120, 900, 560, 80)
ctx.fillRect(120, 1020, 560, 80)
ctx.fillRect(120, 1140, 560, 80)
ctx.fillRect(120, 1260, 560, 80)
ctx.fillRect(120, 1380, 560, 80)
ctx.fillStyle = "#008080"
ctx.fillRect(120, 184, 5.6 * sincerity - 2, 72)
ctx.fillStyle = "#0000FF"
ctx.fillRect(682 - 5.6 * irony, 184, 5.6 * irony - 2, 72)
ctx.fillStyle = "#FFFF00"
ctx.fillRect(120, 304, 5.6 * jannyphobe - 2, 72)
ctx.fillStyle = "#D061A6"
ctx.fillRect(682 - 5.6 * jannyphile, 304, 5.6 * jannyphile - 2, 72)
ctx.fillStyle = "#003890"
ctx.fillRect(120, 424, 5.6 * casual - 2, 72)
ctx.fillStyle = "#FF0000"
ctx.fillRect(682 - 5.6 * serious, 424, 5.6 * serious - 2, 72)
ctx.fillStyle = "#C000FF"
ctx.fillRect(120, 544, 5.6 * wholesome - 2, 72)
ctx.fillStyle = "#EE2436"
ctx.fillRect(682 - 5.6 * edgy, 544, 5.6 * edgy - 2, 72)
ctx.fillStyle = "#000000"
ctx.fillRect(120, 664, 5.6 * horny - 2, 72)
ctx.fillStyle = "#F5DD00"
ctx.fillRect(682 - 5.6 * antihorny, 664, 5.6 * antihorny - 2, 72)
ctx.fillStyle = "#FF0000"
ctx.fillRect(120, 784, 5.6 * active - 2, 72)
ctx.fillStyle = "#FFFFFF"
ctx.fillRect(682 - 5.6 * lurker, 784, 5.6 * lurker - 2, 72)
ctx.fillStyle = "#8B5320"
ctx.fillRect(120, 904, 5.6 * standard - 2, 72)
ctx.fillStyle = "#89001C"
ctx.fillRect(682 - 5.6 * wacky, 904, 5.6 * wacky - 2, 72)
ctx.fillStyle = "#7F3980"
ctx.fillRect(120, 1024, 5.6 * schizo - 2, 72)
ctx.fillStyle = "#F5DD00"
ctx.fillRect(682 - 5.6 * boring, 1024, 5.6 * boring - 2, 72)
ctx.fillStyle = "#52CE3C"
ctx.fillRect(120, 1144, 5.6 * liked - 2, 72)
ctx.fillStyle = "#F5A9B8"
ctx.fillRect(682 - 5.6 * disliked, 1144, 5.6 * disliked - 2, 72)
ctx.fillStyle = "#FB0000"
ctx.fillRect(120, 1264, 5.6 * inclusive - 2, 72)
ctx.fillStyle = "#32B5D4"
ctx.fillRect(682 - 5.6 * discriminatory, 1264, 5.6 * discriminatory - 2, 72)
ctx.fillStyle = "#7F00FF"
ctx.fillRect(120, 1384, 5.6 * behaving - 2, 72)
ctx.fillStyle = "#429B7D"
ctx.fillRect(682 - 5.6 * misbehaving, 1384, 5.6 * misbehaving - 2, 72)
if (dark) {
ctx.fillStyle = "#DDDDDD" //Dark mode
} else {
ctx.fillStyle = "#222222"
} //Light mode
ctx.font = "700 50px Montserrat"
ctx.textAlign = "left"
ctx.fillText("PolcompballValues", 20, 90)
ctx.font = "30px Montserrat"
usermatch = user
ctx.fillText(usermatch, 20, 140)
ctx.font = "50px Montserrat"
ctx.textAlign = "left"
ctx.fillStyle = "#222222"
ctx.fillStyle = "#222222"
if (sincerity > 30) { ctx.fillText(sincerity + "%", 130, 237.5) }
if (jannyphobe > 30) { ctx.fillText(jannyphobe + "%", 130, 357.5) }
ctx.fillStyle = "#DDDDDD"
if (casual > 30) { ctx.fillText(casual + "%", 130, 477.5) } //White font
ctx.fillStyle = "#222222"
if (wholesome > 30) { ctx.fillText(wholesome + "%", 130, 597.5) }
ctx.fillStyle = "#DDDDDD"
if (horny > 30) { ctx.fillText(horny + "%", 130, 717.5) } //White font
ctx.fillStyle = "#222222"
if (active > 30) { ctx.fillText(active + "%", 130, 837.5) }
if (standard > 30) { ctx.fillText(standard + "%", 130, 957.5) }
ctx.fillStyle = "#DDDDDD"
if (schizo > 30) { ctx.fillText(schizo + "%", 130, 1077.5) } //White font
ctx.fillStyle = "#222222"
if (liked > 30) { ctx.fillText(liked + "%", 130, 1197.5) }
if (inclusive > 30) { ctx.fillText(inclusive + "%", 130, 1317.5) }
if (behaving > 30) { ctx.fillText(behaving + "%", 130, 1437.5) }
ctx.textAlign = "right"
ctx.fillStyle = "#DDDDDD"
if (irony > 30) { ctx.fillText(irony + "%", 670, 237.5) } //White font
ctx.fillStyle = "#222222"
if (jannyphile > 30) { ctx.fillText(jannyphile + "%", 670, 357.5) }
if (serious > 30) { ctx.fillText(serious + "%", 670, 477.5) }
if (edgy > 30) { ctx.fillText(edgy + "%", 670, 597.5) }
if (antihorny > 30) { ctx.fillText(antihorny + "%", 670, 717.5) }
if (lurker > 30) { ctx.fillText(lurker + "%", 670, 837.5) }
ctx.fillStyle = "#DDDDDD"
if (wacky > 30) { ctx.fillText(wacky + "%", 670, 957.5) } //White font
ctx.fillStyle = "#222222"
if (boring > 30) { ctx.fillText(boring + "%", 670, 1077.5) }
if (disliked > 30) { ctx.fillText(disliked + "%", 670, 1197.5) }
if (discriminatory > 30) { ctx.fillText(discriminatory + "%", 670, 1317.5) }
if (misbehaving > 30) { ctx.fillText(misbehaving + "%", 670, 1437.5) }
if (dark) {
ctx.fillStyle = "#DDDDDD" //Dark mode
} else {
ctx.fillStyle = "#222222"
} //Light mode
ctx.font = "300 25px Montserrat"
ctx.fillText("polcompballvalues.github.io", 780, 40)
ctx.fillText(version, 780, 70)
ctx.fillText("Users Gallery", 780, 100)
ctx.textAlign = "center"
ctx.font = "30px Montserrat"
ctx.fillText("Seriousposting Axis: " + setLabel(sincerity, sposArray), 400, 175)
ctx.fillText("Allegiance Axis: " + setLabel(jannyphobe, alleArray), 400, 295)
ctx.fillText("Server Axis: " + setLabel(casual, servArray), 400, 415)
ctx.fillText("Personality Axis: " + setLabel(wholesome, persArray), 400, 535)
ctx.fillText("Hornyposting Axis: " + setLabel(horny, hornArray), 400, 655)
ctx.fillText("Fame Axis: " + setLabel(active, fameArray), 400, 775)
ctx.fillText("Shower Axis: " + setLabel(standard, showArray), 400, 895)
ctx.fillText("Sanity Axis: " + setLabel(schizo, saniArray), 400, 1015)
ctx.fillText("Relationship Axis: " + setLabel(liked, relaArray), 400, 1135)
ctx.fillText("Fedposting Axis: " + setLabel(inclusive, fedpArray), 400, 1255)
ctx.fillText("Actions Axis: " + setLabel(behaving, actiArray), 400, 1375)
document.getElementById("banner").src = canvas.toDataURL()
}
const userdropdown = document.getElementById("userdropdown")
function userdropdownChanged() {
const i = userdropdown.selectedIndex
makeUserCanvas(users[i].name, users[i].stats.spos, users[i].stats.alle, users[i].stats.serv, users[i].stats.pers, users[i].stats.horn, users[i].stats.fame, users[i].stats.show, users[i].stats.sani, users[i].stats.rela, users[i].stats.fedp, users[i].stats.acti)
}
window.onload = function () {
for (let i = 0; i < users.length; i++) {
userdropdown.innerHTML += "<option value=\"" + i + "\">" + users[i].name + "</option>"
}
userdropdownChanged(1)
}
</script>
</body>
</html>