|
@@ -18,7 +18,9 @@ req.open('GET', 'one.json', true);
|
|
|
req.onload = function() {
|
|
|
var jsonResponse = req.response;
|
|
|
jsonResponse.forEach(element => {
|
|
|
- document.body.appendChild(document.createElement('img')).src = element.ref;
|
|
|
+ let img = document.body.appendChild(document.createElement('img'));
|
|
|
+ img.style.width = 600;
|
|
|
+ img.src = element.ref;
|
|
|
//element.style.width = 600;
|
|
|
document.body.appendChild(document.createElement('p')).innerText = element.title;
|
|
|
});
|