-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathuser.js
121 lines (116 loc) · 3.05 KB
/
user.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
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
let cards = [
// Add your card in this section
// Follow this example format:
// ["Your Name", "Image URL(./img/username.png)", "Bio", "Your Github Link"],
// Bio should no longer than 50 characters, avoid using quotes(") to guarantee the format remains the same.
[
"Meghal Bisht",
"./img/MeghalBisht.png",
"Developer",
"https://github.com/MeghalBisht",
],
[
"Your Name",
"./img/username.png",
"Your Bio",
"https://github.com/letskhabar",
],
[
"Steven Burrows",
"img/slack.jpg",
"Junior DEveloper",
"https://github.com/stevenjburrows",
],
[
"Your Name",
"./img/username.png",
"Your Bio",
"https://github.com/MasterBrian99",
],
[
"Mohammad Reza",
"./img/mohammadreza.png",
"I build responsive website and E-commerce site ",
"https://github.com/rzadev",
],
[
"Irvin",
"./img/irvine09.png",
"I support enterprise applications.",
"https://github.com/irvine09",
],
[
"Tahirih",
"./img/ctahirih.jpg",
"Hello, I'm frontend web developer from Perú",
"https://github.com/ctahirih",
],
[
"Courtney",
"./img/Courtney.png",
"Hello, I am an associate software engineer from the United States",
"https://github.com/courtneyoverby",
],
[
"Rishav",
"./img/Courtney.png",
"Hello, I am Software Developer from India",
"https://github.com/rishavjaiss",
],
[
"Femakin",
"./img/femakin.jpg",
"Hello, I am Software Developer from Nigeria",
"https://github.com/femakin",
],
[
"Victor",
"./img/soyvikman.jpg",
"Hello, I am Software Developer from Peru",
"https://github.com/soyvikman",
],
[
"Ousainu",
"./img/username.png",
"Hello, I'm a Software Engineer from United States",
"https://github.com/ousainu",
],
[
"Bruce",
"./img/bruce.jpg",
"Web developer from Edinburgh",
"https://github.com/bruceyboy86"
],
[
"Divij Chhabra",
"./img/username.jpg",
"Front End Developer from India",
"https://github.com/Divijcode"
],
];
// +--------------------------------------------------------------------------------+
// + +
// + YOU DO NOT NEED TO CHANGE ANYTHING BELOW THIS +
// + +
// +--------------------------------------------------------------------------------+
let contents = [];
Shuffle(cards).forEach((c) => {
contents.push([
`<li class="card">` +
`<img class="user-image" src='${c[1]}' alt='${c[0]}' />` +
`<div class="flex-content">` +
`<h3 class="bio">${c[2]}</h3>` +
`<h3 class='user'><a href="${c[3]}" target="_blank"><i class="fab fa-github"></i> ${c[0]}</a> </h3>` +
`</div>` +
`</li>`,
]);
});
document.getElementById("users").innerHTML = contents;
function Shuffle(o) {
for (
var j, x, i = o.length;
i;
j = parseInt(Math.random() * i), x = o[--i], o[i] = o[j], o[j] = x
);
return o;
}