Skip to content

Commit b8ed9cf

Browse files
committed
Update update.
<3 Twitter
1 parent 0f9b81b commit b8ed9cf

File tree

7 files changed

+94
-51
lines changed

7 files changed

+94
-51
lines changed

images/spinner.gif

1.81 KB
Loading

index.html

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,50 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
4-
<link href="stylesheets/reset.css" rel="stylesheet" />
5-
<link href="stylesheets/style.css" rel="stylesheet" />
64
<title>
75
jamietech on GitHub
86
</title>
7+
<link href="styles/reset.css" rel="stylesheet" />
8+
<link href="styles/style.css" rel="stylesheet" />
99
</head>
1010
<body>
1111
<div id="wrapper" class="grid clearfix">
12-
<div id="main" class="grid-1 nav">
13-
<h1>jamietech on GitHub</h1>
14-
<p><strong>Want to help?</strong> Submit a pull request to the appropriate repository!</p>
15-
<p>Visit <a href="https://soaringcats.github.com/">soaringcats.github.com</a> for more</p>
16-
</div>
1712

18-
<div class="grid grid-3">
19-
<div id="statistics" class="grid-1 alpha header">
20-
<h1>Statistics</h1>
21-
<p>
22-
<a href="https://github.com/jamietech/repositories"><span id="num-repos"><img src="assets/spinner.gif" /></span> public repos</a>
23-
</p>
24-
<p class="email"><a href="mailto:[email protected]">[email protected]</a></p>
13+
<div id="main" class="grid-1">
14+
<h1>jamietech on GitHub</h1>
15+
<p>Coding plugins for Minecraft using the Bukkit API, I also sometimes dabble in web development. Hi! I'm jamietech.</p>
16+
<br />
17+
<p>Want to help with code? Submit a pull request to the corresponding repository for &hearts;'s</p>
18+
<br />
19+
<p>Check out <a href="http://soaringcats.github.com">soaringcats.github.com</a> for more!</p>
20+
<br />
21+
<p>&hearts; to <a href="http://twitter.github.com">Twitter</a>!</p>
2522
</div>
2623

27-
<div id="recently-updated" class="grid-2 omega header">
28-
<h1>Recently updated <a href="https://github.com/twitter/repositories">View All on GitHub</a></h1>
29-
<ol id="recently-updated-repos"></ol>
24+
<div class="grid grid-3">
25+
<div id="statistics" class="grid-1 leftie_loosie header">
26+
<h1>Statistics</h1>
27+
<p>
28+
<a href="https://github.com/jamietech/repositories"><span id="num-repos"><img src="images/spinner.gif" /></span> public repos</a>
29+
<br />
30+
<a href="https://github.com/jamietech/followers"><span id="num-followers"><img src="images/spinner.gif" /></span> followers</a>
31+
<br />
32+
<a href="https://github.com/jamietech"><span id="hireable"><img src="images/spinner.gif" /> </span> hireable</a>
33+
</p>
34+
</div>
35+
36+
<div id="recently-updated" class="grid-2 rightie_tightie header">
37+
<h1>Recently updated <a href="https://github.com/twitter/repositories">View All on GitHub</a></h1>
38+
<ol id="recently-updated-repos"></ol>
39+
</div>
3040
</div>
31-
</div>
41+
42+
<ol id="repos"></ol>
3243

33-
<ol id="repos"></ol>
3444
</div>
35-
<script type="text/javascript" src="javascript/jquery.js"></script>
36-
<script type="text/javascript" src="javascript/script.js"></script>
45+
46+
<script type="text/javascript" src="scripts/jquery.js"></script>
47+
<script type="text/javascript" src="scripts/script.js"></script>
48+
3749
</body>
3850
</html>

javascript/script.js

Lines changed: 0 additions & 12 deletions
This file was deleted.
File renamed without changes.

scripts/script.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
$(function() {
2+
var first = "https://api.github.com/users/jamietech?callback=?";
3+
$.getJSON(first, function(data) {
4+
$('#num-repos').fadeOut('fast', function() {
5+
$('#num-repos').html(data.data.public_repos);
6+
$('#num-repos').fadeIn('fast');
7+
});
8+
$('#num-followers').fadeOut('fast', function() {
9+
$('#num-followers').html(data.data.followers);
10+
$('#num-followers').fadeIn('fast');
11+
});
12+
$('#hireable').fadeOut('fast', function() {
13+
$('#hireable').html(data.data.hireable ? "&#10003;" : "&#10007;");
14+
$('#hireable').fadeIn('fast');
15+
});
16+
});
17+
18+
var url = "https://api.github.com/users/jamietech/repos?callback=?&sort=pushed&type=owner";
19+
$.getJSON(url, function(data) {
20+
$('#recently-updated-repos').hide();
21+
$.each(data.data, function(i, repo) {
22+
if (i <= 2) {
23+
var $item = $("<li>");
24+
25+
var $name = $("<a>").attr("href", repo.html_url).text(repo.name);
26+
$item.append($("<span>").addClass("name").append($name));
27+
28+
//var $time = $("<a>").attr("href", repo.html_url + "/commits").text(strftime("%h %e, %Y", repo.pushed_at));
29+
//$item.append($("<span>").addClass("time").append($time));
30+
31+
$item.append('<span class="bullet">&sdot;</span>');
32+
33+
var $stargazing = (repo.watchers_count);
34+
$stargazing += (repo.watchers_count == 1) ? " stargazer" : " stargazers";
35+
var $watchers = $("<a>").attr("href", repo.html_url + "/watchers").text($stargazing);
36+
$item.append($("<span>").addClass("watchers").append($watchers));
37+
38+
$item.append('<span class="bullet">&sdot;</span>');
39+
40+
var $forks = $("<a>").attr("href", repo.html_url + "/network").text(repo.forks + " forks");
41+
$item.append($("<span>").addClass("forks").append($forks));
42+
43+
$item.appendTo("#recently-updated-repos");
44+
if (i == 2) {
45+
$('#recently-updated-repos').fadeIn('fast');
46+
}
47+
}
48+
var $item = $("<li>").addClass("repo grid-1 " + (repo.language || '').toLowerCase());
49+
var $link = $("<a>").attr("href", repo.html_url).appendTo($item);
50+
$link.append($("<h2>").text(repo.name));
51+
$link.append($("<h3>").text(repo.language));
52+
$link.append($("<p>").text(repo.description));
53+
$item.appendTo("#repos");
54+
});
55+
});
56+
});
File renamed without changes.

stylesheets/style.css renamed to styles/style.css

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,7 @@ a:hover {
6464
#main p {
6565
font-size: 11px;
6666
line-height: 2;
67-
}
68-
69-
#logo {
70-
width: 190px;
71-
height: 64px;
72-
margin: 15px 0 0 15px;
73-
background: url("logo.png");
74-
text-indent: -99999px;
75-
}
76-
77-
#logo h1 {
78-
margin: 0;
67+
text-align: left;
7968
}
8069

8170
div.header {
@@ -90,7 +79,7 @@ div.header h1 {
9079
margin-bottom: 10px;
9180
}
9281

93-
#num-repos, #num-members {
82+
#num-repos, #num-followers, #hireable {
9483
font-size: 14px;
9584
font-weight: bold;
9685
color: #0084b4;
@@ -212,13 +201,11 @@ strong {
212201
font-weight:bold
213202
}
214203

215-
/* Grid >> Children (Alpha ~ First, Omega ~ Last) */
216-
217-
.alpha {
204+
.leftie_loosie {
218205
margin-left: 0;
219206
}
220207

221-
.omega {
208+
.rightie_tightie {
222209
margin-right: 0;
223210
}
224211

0 commit comments

Comments
 (0)