From 72b6f0fec26369e0af9178e3a00db5dc3cb51d06 Mon Sep 17 00:00:00 2001 From: Lokesh Date: Thu, 13 Apr 2023 14:49:52 +0530 Subject: [PATCH] Changed unsplash URL to fix issue with image retrieval --- random-image-generator/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/random-image-generator/script.js b/random-image-generator/script.js index 0f9b658..2598229 100644 --- a/random-image-generator/script.js +++ b/random-image-generator/script.js @@ -1,5 +1,5 @@ const container = document.querySelector('.container') -const unsplashURL = 'https://source.unsplash.com/random/' +const unsplashURL = 'https://picsum.photos/' const rows = 5 for(let i = 0; i < rows * 3; i++) { @@ -9,7 +9,7 @@ for(let i = 0; i < rows * 3; i++) { } function getRandomSize() { - return `${getRandomNr()}x${getRandomNr()}` + return `${getRandomNr()}/${getRandomNr()}` } function getRandomNr() {