This commit is contained in:
Denis Fedoseev 2017-08-01 21:05:58 +03:00
parent 968ae0f2ce
commit 53080e09da

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();