Author: lukaszlenart
Date: Sat Feb 8 11:02:52 2014
New Revision: 1565966
URL: http://svn.apache.org/r1565966
Log:
Adds auto generated content
Added:
struts/site/branches/jekyll-powered/content/js/
struts/site/branches/jekyll-powered/content/js/community.js
Added: struts/site/branches/jekyll-powered/content/js/community.js
URL:
http://svn.apache.org/viewvc/struts/site/branches/jekyll-powered/content/js/community.js?rev=1565966&view=auto
==============================================================================
--- struts/site/branches/jekyll-powered/content/js/community.js (added)
+++ struts/site/branches/jekyll-powered/content/js/community.js Sat Feb 8
11:02:52 2014
@@ -0,0 +1,30 @@
+/* Facebook */
+(function (d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0];
+ if (d.getElementById(id)) return;
+ js = d.createElement(s);
+ js.id = id;
+ js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
+ fjs.parentNode.insertBefore(js, fjs);
+}(document, 'script', 'facebook-jssdk'));
+
+/* Google Plus */
+(function () {
+ var po = document.createElement('script');
+ po.type = 'text/javascript';
+ po.async = true;
+ po.src = '//apis.google.com/js/plusone.js';
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(po, s);
+})();
+
+/* Twitter */
+!function (d, s, id) {
+ var js, fjs = d.getElementsByTagName(s)[0];
+ if (!d.getElementById(id)) {
+ js = d.createElement(s);
+ js.id = id;
+ js.src = "//platform.twitter.com/widgets.js";
+ fjs.parentNode.insertBefore(js, fjs);
+ }
+}(document, "script", "twitter-wjs");