diff --git a/random-image-generator/index.html b/random-image-generator/index.html index 9e826f7..a94a14a 100644 --- a/random-image-generator/index.html +++ b/random-image-generator/index.html @@ -9,7 +9,7 @@

Random Image Feed

- + diff --git a/random-image-generator/script.js b/random-image-generator/script.js index 0f9b658..f8ba7fb 100644 --- a/random-image-generator/script.js +++ b/random-image-generator/script.js @@ -14,4 +14,12 @@ function getRandomSize() { function getRandomNr() { return Math.floor(Math.random() * 10) + 300 +} +function searchagain(){ + + for(let i = 0; i < rows * 3; i++) { + const img = document.createElement('img') + img.src = `${unsplashURL}${getRandomSize()}` + container.appendChild(img) + } } \ No newline at end of file diff --git a/random-image-generator/style.css b/random-image-generator/style.css index dddbe9d..cc94638 100644 --- a/random-image-generator/style.css +++ b/random-image-generator/style.css @@ -34,3 +34,11 @@ body { width: 300px; max-width: 100%; } +button{ + background:rgb(98, 219, 142); + border:2px solid rgb(94, 161, 123); + border-radius:25px; + padding:20px; + font-size:25px; + color:white; +} \ No newline at end of file