Finished adding the stuff from afals userscript.

This commit is contained in:
Samuel Clements 2011-11-08 19:07:30 +00:00
parent 851f510973
commit 6ebedfd451
3 changed files with 11 additions and 1 deletions

BIN
public/background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

View File

@ -18,7 +18,7 @@
} */ } */
html { html {
background: url(http://dl.dropbox.com/u/13375195/depressionbot/images/background.jpg) no-repeat center center fixed; background: url("/background.jpg") no-repeat center center fixed;
-webkit-background-size: cover; -webkit-background-size: cover;
-moz-background-size: cover; -moz-background-size: cover;
-o-background-size: cover; -o-background-size: cover;

View File

@ -4,6 +4,16 @@ html(lang: 'en')
meta(charset: 'utf-8') meta(charset: 'utf-8')
link(rel: 'stylesheet', type: 'text/css', href: '/styles.css') link(rel: 'stylesheet', type: 'text/css', href: '/styles.css')
title Depressionbot web interface title Depressionbot web interface
script
var quotes = document.getElementsByTagName("a");
var i, ii;
for (i = 0, ii = quotes.length; i < ii; i++) {
var quote = quotes[i];
var q_name = quote.innerHTML;
var img = new Image();
img.src = 'http://dl.dropbox.com/u/13375195/depressionbot/images/quoted/' + q_name + '.gif';
quote.innerHTML = img.outerHTML + ' <span>' + q_name + '</span>';
}
body body
div#title Depressionbot web interface div#title Depressionbot web interface
!{body} !{body}