3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 06:19:24 +01:00

Should fix jade throwing silly errors at me.

This commit is contained in:
Samuel Clements 2011-11-08 19:34:27 +00:00
parent 6ebedfd451
commit 8107b72a1b

View File

@ -5,15 +5,15 @@ html(lang: 'en')
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>';
}
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}