mirror of
https://github.com/NohamR/Stage-2023.git
synced 2025-05-24 00:49:03 +00:00
19 lines
478 B
JavaScript
19 lines
478 B
JavaScript
fetch('result.txt')
|
|
.then(response => response.text())
|
|
.then(data => {
|
|
const imageLinks = data.split('\n');
|
|
const container = document.getElementById('imageContainer');
|
|
|
|
imageLinks.forEach(link => {
|
|
if (link.trim() !== '') {
|
|
const img = document.createElement('img');
|
|
img.src = link;
|
|
img.style.display = 'block';
|
|
container.appendChild(img);
|
|
}
|
|
});
|
|
})
|
|
.catch(error => {
|
|
console.error('Error:', error);
|
|
});
|