https://codepen.io/yayoamigosoy/pen/EmMObB when I click on my twitter button it open up an undefined tweet not the quote
this is because var “randomQuote” in your JS is empty
Twitter button uses this var (empty) when building URL address
To fix, add to $.getJSON:
randomQuote = data.quoteText;
1 Like
Thanks a lot