88 < link rel ="stylesheet " type ="text/css " href ="assets/style.css ">
99 < script type ="text/javascript " src ="assets/jquery-1.7.1.min.js "> </ script >
1010 < script type ="text/javascript " src ="assets/strftime.js "> </ script >
11- < script type ="text/javascript ">
12- function addRecentlyUpdatedRepo ( repo ) {
13- var $item = $ ( "<li>" ) ;
14- $item . append ( '<span class="name"><a href="' + repo . html_url + '">' + repo . name + '</a></span>' ) ;
15- $item . append ( '<span class="time">' + strftime ( "%h %e, %Y" , repo . pushed_at ) + '</span>' ) ;
16- $item . append ( '<span class="bullet">⋅</span>' ) ;
17- $item . append ( '<span class="watchers">' + repo . watchers + ' watchers</span>' ) ;
18- $item . append ( '<span class="bullet">⋅</span>' ) ;
19- $item . append ( '<span class="forks">' + repo . forks + ' forks</span>' ) ;
20- $item . appendTo ( "#recently-updated-repos" ) ;
21- }
22-
23- $ . getJSON ( "https://api.github.com/users/twitter/repos" , function ( repos ) {
24- $ ( function ( ) {
25- $ ( "#num-repos" ) . val ( repos . length ) ;
26-
27- $ . each ( repos , function ( i , repo ) {
28- repo . pushed_at = new Date ( repo . pushed_at ) ;
29- } ) ;
30-
31- // Sort by most-recently pushed to.
32- repos . sort ( function ( a , b ) {
33- if ( a . pushed_at < b . pushed_at ) return 1 ;
34- if ( b . pushed_at < a . pushed_at ) return - 1 ;
35- return 0 ;
36- } ) ;
37-
38- $ . each ( repos . slice ( 0 , 3 ) , function ( i , repo ) {
39- addRecentlyUpdatedRepo ( repo ) ;
40- } ) ;
41- } ) ;
42- } ) ;
43-
44- // $.getJSON("https://api.github.com/orgs/twitter", function (data) {
45- // $(function () {
46- // $("#num-repos").val(data.public_repos);
47- // });
48- // });
49-
50- $ . getJSON ( "https://api.github.com/orgs/twitter/members" , function ( members ) {
51- $ ( function ( ) {
52- $ ( "#num-members" ) . val ( members . length ) ;
53- } ) ;
54- } ) ;
55- </ script >
11+ < script type ="text/javascript " src ="assets/application.js "> </ script >
5612 </ head >
5713 < body >
5814 < div id ="wrapper " class ="grid clearfix ">
15+
5916 < div id ="main " class ="grid-1 ">
6017 < div id ="logo "> < h1 > Twitter Open Source</ h1 > </ div >
6118 < h1 > Twitter is built on open source software.</ h1 >
6219 < p > Want to help? < a href ="# "> Join the Flock</ a > </ p >
6320 < p > Visit < a href ="# "> dev.twitter.com</ a > </ p >
6421 < p > < a href ="# "> Logos and other goodies</ a > </ p >
6522 </ div >
23+
6624 < div class ="grid grid-3 ">
6725 < div id ="statistics " class ="grid-1 alpha header ">
6826 < h1 > Statistics</ h1 >
@@ -75,11 +33,14 @@ <h1>Statistics</h1>
7533 </ p >
76347735 </ div >
36+
7837 < div id ="recently-updated " class ="grid-2 omega header ">
7938 < h1 > Recently updated</ h1 >
8039 < ol id ="recently-updated-repos "> </ ol >
8140 </ div >
8241 </ div >
42+
43+ < div id ="projects "> </ div >
8344 </ div >
8445 </ body >
85- </ html >
46+ </ html >
0 commit comments