Files
LAB5/2.1/views/images.html
2023-11-10 10:10:42 +03:00

746 B

<html> <head> <script> fetch("/imagelist") .then((response) => response.json()) .then((imageUrls) => { const container = document.getElementById("image-container"); imageUrls.forEach((url) => { const img = document.createElement("img"); img.src = url; img.width = "200"; img.height = "200"; container.appendChild(img); const br = document.createElement("br"); container.appendChild(br); }); }); </script> </head>

Image Gallery

Back to Home </html>