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"); });