From c0a41c714074966a1318a48c98e69ab2bf0d43cd Mon Sep 17 00:00:00 2001 From: Nefariusek Date: Wed, 8 Dec 2021 17:39:24 +0100 Subject: [PATCH] Fix imgage paths --- src/components/Button.js | 2 +- src/components/timer/quiz-timer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Button.js b/src/components/Button.js index 1f1d080..192fa6e 100644 --- a/src/components/Button.js +++ b/src/components/Button.js @@ -26,7 +26,7 @@ export default function Button(label, className, animate, eventListener, callbac const addKoala = (button) => { const koala = document.createElement('img'); - koala.src = '/cute_koala.png'; + koala.src = './cute_koala.png'; koala.classList.add('koala', 'hidden'); button.onmouseover = () => { diff --git a/src/components/timer/quiz-timer.js b/src/components/timer/quiz-timer.js index 5f72316..d0fbe1a 100644 --- a/src/components/timer/quiz-timer.js +++ b/src/components/timer/quiz-timer.js @@ -5,7 +5,7 @@ export function createTimer() { clock.setAttribute('id', 'clock'); const image = document.createElement('img'); - image.src = '/timer.png'; + image.src = './timer.png'; const minutes = document.createElement('span'); minutes.setAttribute('id', 'timer-minutes');