-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (48 loc) · 1.58 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Blosxom Fanatics</title>
<link rel="stylesheet" href="/css/style.css">
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<h1><a href="https://github.com/blosxom-fanatics">Blosxom Fanatics</a></h1>
<div id="members"></div>
<p class="join"><a href="https://github.com/blosxom-fanatics/blosxom-fanatics.github.com/issues/1" class="button">Join</a></p>
<script>
var listMembers = function (res) {
var ul = [
'<ul>'
];
res.data = shuffleArray(res.data);
for (var i = 0, l = res.data.length; i < l; i+=1) {
var member = res.data[i],
angle = 30 * i;
ul.push(
'<li>',
'<a href="https://github.com/' + member.login + '" style="background-image:url(' + member.avatar_url + '&s=48)">',
member.login,
'</a>',
'</li>'
);
}
ul.push('</ul>');
document.getElementById('members').innerHTML = ul.join('');
};
var shuffleArray = function (a) {
var i = a.length;
while (--i) {
var j = Math.floor(Math.random() * (i + 1));
if (i == j) continue;
var k = a[i];
a[i] = a[j];
a[j] = k;
}
return a;
};
</script>
<script src="https://api.github.com/orgs/blosxom-fanatics/members?callback=listMembers"></script>
</body>
</html>