diff --git a/modules/github b/modules/github index 7e38c6b..6e841d9 160000 --- a/modules/github +++ b/modules/github @@ -1 +1 @@ -Subproject commit 7e38c6be750a071724763872175f1a9445297b76 +Subproject commit 6e841d96df413a8039b15a53ef0c6b77630b552a diff --git a/modules/project/pages.js b/modules/project/pages.js index 5578d68..929d7a8 100644 --- a/modules/project/pages.js +++ b/modules/project/pages.js @@ -30,7 +30,7 @@ var pages = function(dbot) { /* TODO: merge back into github module */ var milestones; - request("https://api.github.com/repos/" + dbot.config.github.defaultrepo + "/milestones?state=open", function(error, response, body){ + request({"url":"https://api.github.com/repos/" + dbot.config.github.defaultrepo + "/milestones?state=open","headers":{"User-Agent":"reality/depressionbot (project module)"}}, function(error, response, body){ milestones = JSON.parse(body); }); diff --git a/public/project.js b/public/project.js index 697c5f6..0dda7b5 100644 --- a/public/project.js +++ b/public/project.js @@ -1,15 +1,17 @@ +WebFontConfig={google:{families:["Ubuntu+Mono::latin","Ubuntu::latin"]}};(function(){var e=document.createElement("script");e.src=("https:"==document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js";e.type="text/javascript";e.async="true";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})() $(document).ready(function() { $.get("https://api.github.com/repos/#{repo}/pulls", function(data) { if ($.parseJSON(data).length) { $("#pullreq").show();} }); }); $(document).keypress(function(e) { -WebFontConfig={google:{families:["Ubuntu::latin"]}};(function(){var e=document.createElement("script");e.src=("https:"==document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js";e.type="text/javascript";e.async="true";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})() $('body').css({ "background-image":"url('http://i.imgur.com/Yh8V2Oa.jpg')", "font-family": "Ubuntu, \"Source Sans Pro\",sans-serif" }); + $('pre').css("font-family","Ubuntu Mono"); $('a').css("color","#DD4814"); $('#title').css("color","white"); - $('#main').css("border-color","#420432"); + $('.progress-inner').css("background-image","linear-gradient(to top, rgb(211, 72, 20), rgb(255, 180, 127))"); +// $('#main').css("color","#420432"); });