summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-04-22 05:30:26 -0400
committerJules Laplace <jules@okfoc.us>2015-04-22 05:30:26 -0400
commit3b5fd66c6b69b00199c73764012f9563254f0fe4 (patch)
tree21cb14cbab5443a42e4199bb1e4b6fe5490651d7
parente3a0549c5e09fbaac20af36cef9c9c4494135c75 (diff)
el
-rw-r--r--index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.html b/index.html
index 5c7999f..d20ab0b 100644
--- a/index.html
+++ b/index.html
@@ -1,7 +1,7 @@
<style>
canvas { display: inline-block; }
</style>
-<body><input type="text" id="url_el"></body>
+<body><input type="text" id="url_el"><div id="img_el"></div></body>
<script src="convolve.js"></script>
<script src="smartblur.js"></script>
<script src="fetch.js"></script>
@@ -14,9 +14,9 @@ function load(url){
fromImage(url, function(src){
var dest = document.createElement("canvas")
var blurred = smart_blur.blur(src, dest)
- document.body.innerHTML = ""
- document.body.appendChild(src)
- document.body.appendChild(blurred)
+ img_el.innerHTML = ""
+ img_el.appendChild(src)
+ img_el.appendChild(blurred)
})
}
load(url)