aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-04-29 11:04:32 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2014-04-29 11:04:32 -0400
commit6c36720a9e737eccb9eb64d178040594899f9a4f (patch)
treed25b430ea4a56531f8bf1d29cce788a20a50e583
parent2e40a7f3b189877bf2d99a7056b5f2d598c1144d (diff)
use dummy image
-rw-r--r--index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.html b/index.html
index 2ec249e..053d156 100644
--- a/index.html
+++ b/index.html
@@ -14,6 +14,7 @@ document.getElementById('results').innerHTML += stuff;
}
function scrape() {
+ document.getElementById('results').innerHTML = ""
data = document.getElementById("input").value
i=0;
regex = /#[0-9a-f]{3,6}[^[0-9a-f]/gi, result = []
@@ -22,7 +23,7 @@ function scrape() {
console.log(result[0]);
write('<div>');
write(result[0]);
- write('<div style="height:2em;width:2em;background:' + result[0] + ';border:1px black solid;"></div>')
+ write('<img src="http://dummyimage.com/40x40/' + result[0].slice(1, result[0].length) + '&text=.">');
write('</div>')
}
if(i == 0) {