Tweet Button Coding Incorrect


#1

The Script Tag in two of the buttons given here: https://dev.twitter.com/web/tweet-button
are not closed and due to this I was unable to get a button on my website, but then i figured out that the script tag is not closed, so just wanted you guys to correct it.

The wrong code:

Tweet

window.twttr=(function(d,s,id){var t,js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return}js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);return window.twttr||(t={_e:[],ready:function(f){t._e.push(f)}})}(document,"script","twitter-wjs"));

#2

Thanks for spotting this! I’ve corrected the mistakes. Sorry for the issue.


#3