Skip to content

Commit

Permalink
Updated js to work with github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush-683 authored Feb 15, 2024
1 parent 2f46a00 commit 2cf619b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ no_button.addEventListener('click', () => {
// Change banner source
let banner = document.getElementById('banner');
if (clicks === 0) {
banner.src = "./public/images/no.gif";
banner.src = "public/images/no.gif";
refreshBanner();
}
clicks++;
Expand Down Expand Up @@ -53,7 +53,7 @@ no_button.addEventListener('click', () => {
yes_button.addEventListener('click', () => {
// change banner gif path
let banner = document.getElementById('banner');
banner.src = "./public/images/yes.gif";
banner.src = "public/images/yes.gif";
refreshBanner();
// hide buttons div
let buttons = document.getElementsByClassName('buttons')[0];
Expand Down

0 comments on commit 2cf619b

Please sign in to comment.