3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 04:02:39 +01:00

Move project scripts to an external file.

* Add link to ``project.js`` on project webpage.
* Move scripts to ``project.js``.
* Very definitely not do anything else.
This commit is contained in:
Douglas Gardner 2013-04-24 09:41:51 +00:00
parent 2e60f4e600
commit 00370ee41e
2 changed files with 16 additions and 8 deletions

15
public/project.js Normal file
View File

@ -0,0 +1,15 @@
$(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"
});
$('a').css("color","#DD4814");
$('#title').css("color","white");
$('#main').css("border-color","#420432");
});

View File

@ -7,14 +7,7 @@ html(lang='#{curr839}')
link(rel="stylesheet", type="text/css", href="/bootstrap/css/bootstrap.min.css") link(rel="stylesheet", type="text/css", href="/bootstrap/css/bootstrap.min.css")
link(rel='stylesheet', type='text/css', href='/styles.css') link(rel='stylesheet', type='text/css', href='/styles.css')
link(rel="stylesheet", href="/project.css") link(rel="stylesheet", href="/project.css")
title #{pagetitle} script(src="../project.js")
script
$(document).ready(function() {
$.get("https://api.github.com/repos/#{repo}/pulls", function(data) {
if ($.parseJSON(data).length) { $("#pullreq").show();}
});
});
body body
div.container div.container
div#page div#page