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');