Copy img tag #4

Merged
alpha6 merged 3 commits from copy_img_tag into master 2017-08-01 21:07:10 +03:00
Showing only changes of commit 53080e09da - Show all commits

View file

@ -75,12 +75,11 @@
xhr.open('GET', apiURL)
xhr.onload = function () {
self.imagesList = JSON.parse(xhr.responseText)
// console.log(self.imagesList[0].thumbnail_url)
}
xhr.send()
},
copyText(event) {
// console.log(event.target);
//TODO: rewrite it to vue/JS from jquery
var $temp = $("<input>");
$("body").append($temp);
$temp.val("<img src="+$(event.target).text()+">").select();