diff --git a/public/background.jpg b/public/background.jpg new file mode 100644 index 0000000..d699455 Binary files /dev/null and b/public/background.jpg differ diff --git a/public/styles.css b/public/styles.css index f54a0f0..18382ca 100644 --- a/public/styles.css +++ b/public/styles.css @@ -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; diff --git a/views/layout.jade b/views/layout.jade index 9f2e090..e7a264e 100644 --- a/views/layout.jade +++ b/views/layout.jade @@ -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 + ' ' + q_name + ''; + } body div#title Depressionbot web interface !{body}