-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (58 loc) · 1.93 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
61
62
63
64
65
66
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>steingrd@github</title>
<meta name="author" content="Steingrim Dovland">
<link rel="stylesheet" href="styles.css" type="text/css" media="screen">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
var limit = 20
var login = 'steingrd'
$.getJSON('http://github.com/api/v1/json/' + login + '?callback=?',
function(data) {
var repos = $.grep(data.user.repositories, function() {
return !this.fork
})
repos.sort(function(a, b) {
return b.watchers - a.watchers
})
$.each(repos.slice(0, limit), function() {
$('#repos').append('» <a href="' + this.url + '">' +
this.name + '</a><br>')
})
})
});
</script>
</head>
<body>
<a href="http://github.com/steingrd"><img style="position: absolute; top: 0;
left: 0; border: 0; height: 149px;"
src="http://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png"
alt="Fork me on GitHub" /></a>
<table cellspacing="0" cellpadding="0">
<tr>
<td style="background-color: #225378;">
</td>
<td style="background-color: #1695a3;">
</td>
<td style="background-color: #acf0f2;">
</td>
<td style="background-color: #f3ffe2; padding: 0 0.5em;">
<span class="header">steingrd@github</span><br><br>
<br>
<span class="subheader">Repos</span><br>
<span id="repos">
</span>
</td>
<td style="background-color: #eb7f00;">
</td>
</tr>
</table>
</body>
</html>