OLD | NEW |
(Empty) | |
| 1 (function() |
| 2 { |
| 3 function initFacebook() |
| 4 { |
| 5 (function(d, s, id) { |
| 6 var js, fjs = d.getElementsByTagName(s)[0]; |
| 7 if (d.getElementById(id)) return; |
| 8 js = d.createElement(s); js.id = id; |
| 9 js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; |
| 10 fjs.parentNode.insertBefore(js, fjs); |
| 11 }(document, 'script', 'facebook-jssdk')); |
| 12 } |
| 13 |
| 14 function initTwitter() |
| 15 { |
| 16 !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementBy
Id(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js
";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs"); |
| 17 } |
| 18 |
| 19 function initGooglePlus() |
| 20 { |
| 21 var po = document.createElement('script'); po.type = 'text/javascript'; po.a
sync = true; |
| 22 po.src = 'https://apis.google.com/js/plusone.js'; |
| 23 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefor
e(po, s); |
| 24 } |
| 25 |
| 26 initFacebook(); |
| 27 initTwitter(); |
| 28 initGooglePlus(); |
| 29 })(); |
OLD | NEW |