Skip to content

Instantly share code, notes, and snippets.

@gaina-jp
Created February 26, 2013 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gaina-jp/5036724 to your computer and use it in GitHub Desktop.
Save gaina-jp/5036724 to your computer and use it in GitHub Desktop.
// Facebook
(function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(e.getElementById(n))return;r=e.createElement(t);r.id=n;r.src="//connect.facebook.net/ja_JP/all.js#xfbml=1";i.parentNode.insertBefore(r,i)})(document,"script","facebook-jssdk");
// Twitter
!function(e,t,n){var r,i=e.getElementsByTagName(t)[0];if(!e.getElementById(n)){r=e.createElement(t);r.id=n;r.src="//platform.twitter.com/widgets.js";i.parentNode.insertBefore(r,i)}}(document,"script","twitter-wjs");
// mixi イイね!
(function(e){var t=e.createElement("script");t.type="text/javascript";t.async=true;t.src="//static.mixi.jp/js/plugins.js#lang=ja";e.getElementsByTagName("head")[0].appendChild(t)})(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment