Created
January 17, 2014 11:59
-
-
Save GRGSIBERIA/8472288 to your computer and use it in GitHub Desktop.
好きな場所は難しいけど,bodyの最後らへんにTweetボタンを増やす方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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