Created
May 27, 2016 19:18
-
-
Save 4knort/d8dc7ab030ab98c692acc800af4d5c87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var html = imgTemplate.replace("{{image}}", event.target.result); | |
html = html.replace("{{name}}", file.name); | |
var div = document.createElement("div"); | |
div.classList.add("form-photo__item"); | |
div.innerHTML = html; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment