todo
This commit is contained in:
parent
968ae0f2ce
commit
53080e09da
1 changed files with 1 additions and 2 deletions
|
@ -75,12 +75,11 @@
|
||||||
xhr.open('GET', apiURL)
|
xhr.open('GET', apiURL)
|
||||||
xhr.onload = function () {
|
xhr.onload = function () {
|
||||||
self.imagesList = JSON.parse(xhr.responseText)
|
self.imagesList = JSON.parse(xhr.responseText)
|
||||||
// console.log(self.imagesList[0].thumbnail_url)
|
|
||||||
}
|
}
|
||||||
xhr.send()
|
xhr.send()
|
||||||
},
|
},
|
||||||
copyText(event) {
|
copyText(event) {
|
||||||
// console.log(event.target);
|
//TODO: rewrite it to vue/JS from jquery
|
||||||
var $temp = $("<input>");
|
var $temp = $("<input>");
|
||||||
$("body").append($temp);
|
$("body").append($temp);
|
||||||
$temp.val("<img src="+$(event.target).text()+">").select();
|
$temp.val("<img src="+$(event.target).text()+">").select();
|
||||||
|
|
Loading…
Reference in a new issue