-
Notifications
You must be signed in to change notification settings - Fork 2
/
volunteers.js
81 lines (77 loc) · 1.69 KB
/
volunteers.js
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
const volunteers = {
"Hosts": [
"voiceofautumn",
"Searo",
],
"Stream Team": [
"starblades",
"TimeCrush",
"RaphMec",
"Wimpyfox",
"freezestar",
"Prota",
"AmazingBaha",
"theelkspeaks",
"Homuki",
],
"Referee Team": [
"Amir96lx",
"Kiutgh",
"xClawz",
"Retrokaiser",
],
"Game Testers": [
"Adenothe",
"GalacticSpear",
"Nickyy",
"r0ach3d",
"Tayadaoc",
"Zexerous",
"HardSonicStorm",
"Mindez",
"RetroGameMaster",
],
"Leaderboard Devs": [
"Bartis1989",
"clymax",
"s0uth",
"kmpers",
],
"Web Team": [
"drisc",
"MonkeyBug",
"Daisey",
"amine456",
"falsepopsky",
"Joncky",
"Rooksie",
],
"Media Team": [
"PrinnyPrinny",
"ChocoMilk",
"Nydaxn",
"TheoVellum",
],
"Event Support": [
"Zegjita",
],
};
function shuffle(array) {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
}
const container = document.querySelector("main");
let output = "";
for (const [team, members] of Object.entries(volunteers)) {
output += `<div class="team"><h1>${team}</h1><hr><div class="memberlist">`;
if (team != "Hosts") {
shuffle(members);
}
for (const member of members) {
output += `<div class="member"><ra-userpic>${member}</ra-userpic><p>${member}</p></div>`;
}
output += `</div></div>`;
}
container.innerHTML += output;