This project is definitely challenging! Been muddling my way through it (apologies for repeating myself in the JavaScript, will fix that at some point). I am almost done with the functionality, but can’t get the twitter button to open a new window. Any pointers?
<div id = "tweet">
<button id="tweetbutton" type="button"><a id="tweetme">Tweet this quote!</a></button>
</div>
Button Jquery:- this works by adding the href attribute to the buttons new a tag each time your new quote btutton is clicked. the target blank is the new window. the new jquery replaces the on.click function and must go like so:–
place the new jquery directly under this line and before the }); so it sits inside your quotebutton function.