Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:$(".add-post-page-content").before("<input type=\"file\" style=\"font-size:16px\" onchange=\"var file = document.querySelector('input[type=file]').files[0]; var reader = new FileReader(); reader.addEventListener('load', function () { document.querySelectorAll('.textarea-memo-preview')[0].style = "background-image: url('"+reader.result+"');"; document.querySelectorAll('input[name="painting"]')[0].value=reader.result.split('base64,')[1] }, false); if (file) { reader.readAsDataURL(file); }\">");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement