Skip to content

Commit

Permalink
Merge pull request #1097 from Viveksati5143/patch-1
Browse files Browse the repository at this point in the history
fix: 'New Quote' button works on single click
  • Loading branch information
akshitagupta15june authored Jul 16, 2023
2 parents 59f9332 + bc70929 commit 3d7d290
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shlok_page/motivation.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ const genQuote = () => {

front = !front;
};
genQuote();
var newQuoteButton = button[0];
newQuoteButton.addEventListener('click', genQuote);
function newQuote() {
// Rotating the Quote Box
blockBack.classList.toggle('rotateB');
Expand Down

0 comments on commit 3d7d290

Please sign in to comment.