Skip to content

Instantly share code, notes, and snippets.

@GRGSIBERIA
Created January 17, 2014 11:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save GRGSIBERIA/8472288 to your computer and use it in GitHub Desktop.
好きな場所は難しいけど,bodyの最後らへんにTweetボタンを増やす方法
var target_url = 'http:\/\/yahoo.com'
var text = "むにむにまゆげ! " + vurl
$('body').append($(
"<a id=\"tweet\" href=\"http:\/\/twitter.com/share\" class=\"twitter-share-button\" data-url=\"" + target_url + "\" data-text=\"" + text + "\" data-count=\"vertical\" data-lang=\"ja\">Tweet<\/a><script type=\"text/javascript\" src=\"http://platform.twitter.com/widgets.js\"><\/script>"
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment