forked from GitHub/dbot
Finished adding the stuff from afals userscript.
This commit is contained in:
parent
851f510973
commit
6ebedfd451
BIN
public/background.jpg
Normal file
BIN
public/background.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 279 KiB |
@ -18,7 +18,7 @@
|
||||
} */
|
||||
|
||||
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;
|
||||
-moz-background-size: cover;
|
||||
-o-background-size: cover;
|
||||
|
@ -4,6 +4,16 @@ html(lang: 'en')
|
||||
meta(charset: 'utf-8')
|
||||
link(rel: 'stylesheet', type: 'text/css', href: '/styles.css')
|
||||
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
|
||||
div#title Depressionbot web interface
|
||||
!{body}
|
||||
|
Loading…
Reference in New Issue
Block a user