Please test out my Random Quote Machine

Please test out my Random Quote Machine
0.0 0

#1

Hello, I believe I fixed the Twitter functionality on Code Pen, but I was hoping someone could test it out? I don’t have a Twitter account. If you do, please give me any feedback. Thank you.

Project Link - http://codepen.io/Dana94/full/EZZPNo/


#2

Each time the quote gets added to the previous tweet.

Look at your code on line 113-115:

function tweetQuote(){
  twitterButton.href += encodeURI(quote) + ' -' + encodeURI(author);
}

My suggestion:

function tweetQuote(){
  let href = 'https://twitter.com/intent/tweet?text='
  twitterButton.href = href + encodeURI(quote) + ' -' + encodeURI(author);
}

Also try to resize your browser window and check your layout.

Btw creating a twitter account doesn’t take long and doesn’t cost any money.


#3

Thank you for the feedback, I knew I probably should have been more observant to the layout.

Also, I know Twitter is free to join, I just don’t want one. :slight_smile: