mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
Should fix jade throwing silly errors at me.
This commit is contained in:
parent
6ebedfd451
commit
8107b72a1b
@ -5,15 +5,15 @@ html(lang: 'en')
|
|||||||
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
|
script
|
||||||
var quotes = document.getElementsByTagName("a");
|
var quotes = document.getElementsByTagName("a");
|
||||||
var i, ii;
|
var i, ii;
|
||||||
for (i = 0, ii = quotes.length; i < ii; i++) {
|
for (i = 0, ii = quotes.length; i < ii; i++) {
|
||||||
var quote = quotes[i];
|
var quote = quotes[i];
|
||||||
var q_name = quote.innerHTML;
|
var q_name = quote.innerHTML;
|
||||||
var img = new Image();
|
var img = new Image();
|
||||||
img.src = 'http://dl.dropbox.com/u/13375195/depressionbot/images/quoted/' + q_name + '.gif';
|
img.src = 'http://dl.dropbox.com/u/13375195/depressionbot/images/quoted/' + q_name + '.gif';
|
||||||
quote.innerHTML = img.outerHTML + ' <span>' + q_name + '</span>';
|
quote.innerHTML = img.outerHTML + ' <span>' + q_name + '</span>';
|
||||||
}
|
}
|
||||||
body
|
body
|
||||||
div#title Depressionbot web interface
|
div#title Depressionbot web interface
|
||||||
!{body}
|
!{body}
|
||||||
|
Loading…
Reference in New Issue
Block a user