@@ -1,8 +1,9 @@
1-/*global Tumblr:true, _:true, $:true, View:true, parallax: true */
1+/*global Tumblr:true, _:true, $:true, View:true, parallax: true, Github:true */
22 $(function () {
33 'use strict';
44
5- var tumblr = new Tumblr('xonecas', 'IM11cPEsi3jxTeSNwF8BB9Z08UItXcYKiEDLTLvl5RYn6MBcMD');
5+ var tumblr = new Tumblr('xonecas', 'IM11cPEsi3jxTeSNwF8BB9Z08UItXcYKiEDLTLvl5RYn6MBcMD'),
6+ github = new Github('xonecas');
67 $('body').hide();
78
89 tumblr.getpost(20, {
@@ -40,10 +41,17 @@ $(function () {
4041 });
4142 });
4243
43- $('body').noisy().css('background-color', '#eff6ff').show();
44+ $('body').noisy().css('background-color', '#121212').show();
4445 parallax.index.show();
4546 }
4647 });
4748
49+ github.getrepos(function (data) {
50+ var gitview = new View({
51+ el: $('<div id="github"></div>').appendTo('#index'),
52+ template: _.template($('#github-tmpl').html())
53+ }).toHTML({ repos: data.repositories });
54+ });
55+
4856 $.get('/analytics');
4957 });