Hi, It has taken me two full days to get this working, way too long, but I was determined to get it to work… feedback anyone can give on the JS/jQuery code would be awesome. I know it’s probably cringe-worthy. I have no prior coding experience to speak of.
There are a few TODO notes I’ve left at the bottom of the code:
// TODO: Try to figure out why the twitter button disappears after the first press of the quote button. Think it’s something to do with the way Twitter implements their widgets.js voodoo, as the code works if put directly into html.
// TODO: Shorten the twitter quote if > 140 chars including the author
// TODO: Try this with a quotes JSON api
// TODO: Refactor to remove some of the repetition?