How's this Random Quote Machine? Be honest


#1

See the Pen Random Quote Machine by Ashwin Gurbuxani (@gurbuxani) on CodePen.

Hello! Please be honest :slight_smile:

I also want to add functionality where the User can click a button and have the quote copied to their clipboard. The button should change to read copied on click, and fade back to its original state in a few seconds. Can you help?


#2

Full page link - https://codepen.io/gurbuxani/full/NgmpqP/


#3

If you try to tweet quote with special symbols in it (like ;) it gets cut off at that symbol. Check this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent

Also what is the point of this?:

//Initialise local variables that contain the quote and author
    var tweetQ=q;
    var tweetA=a;