You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ma...@apache.org on 2014/06/21 23:59:59 UTC

svn commit: r1604470 - /openoffice/ooo-site/trunk/content/download/test/index.html

Author: marcus
Date: Sat Jun 21 21:59:59 2014
New Revision: 1604470

URL: http://svn.apache.org/r1604470
Log:
Re-worked the way to call the share links

Modified:
    openoffice/ooo-site/trunk/content/download/test/index.html

Modified: openoffice/ooo-site/trunk/content/download/test/index.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/index.html?rev=1604470&r1=1604469&r2=1604470&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/index.html (original)
+++ openoffice/ooo-site/trunk/content/download/test/index.html Sat Jun 21 21:59:59 2014
@@ -29,7 +29,7 @@
 
     function shareBlog() {
       _gaq.push( ['_trackEvent', 'social', 'shareDownload', 'blog'] ); 
-      window.open( 'https://blogs.apache.org/OOo/', '_blank', 'toolbar=0, status=0, width=580, height=325' );	
+      window.open( 'https://blogs.apache.org/OOo/', '_blank' );	
     }
     function shareFacebook() {
       _gaq.push( ['_trackEvent', 'social', 'shareDownload', 'facebook'] ); 
@@ -43,6 +43,20 @@
       _gaq.push( ['_trackEvent', 'social', 'shareDownload', 'google+'] ); 
       window.open( 'http://plus.google.com/share?url=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F', '_blank', 'toolbar=0, status=0, width=580, height=325' );
     }
+
+    function share( platform ) {
+      _gaq.push( ['_trackEvent', 'social', 'shareDownload', platform] ); 
+        if ( platform == 'blog' ) {
+          window.open( 'http://blogs.apache.org/OOo/', '_blank' );
+        } else if ( platform == 'facebook' ) {
+          window.open( 'http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F', '_blank', 'toolbar=0, status=0, width=580, height=325' );
+        } else if ( platform == 'twitter' ) {
+          window.open( 'http://twitter.com/intent/tweet?url=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F&text=Join+the+OpenOffice+revolution%2C+the+free+office+productivity+suite+with+over+100+million+trusted+downloads.', '_blank', 'toolbar=0, status=0, width=580, height=325' );
+        } else if ( platform == 'google+' ) {
+          window.open( 'http://plus.google.com/share?url=http%3A%2F%2Fwww.openoffice.org%2Fdownload%2F', '_blank', 'toolbar=0, status=0, width=580, height=325' );
+        }
+    }
+
   </script>
 </head>