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/07/05 19:09:19 UTC

svn commit: r1608063 - /openoffice/ooo-site/trunk/content/eu/softwarea/index.html

Author: marcus
Date: Sat Jul  5 17:09:19 2014
New Revision: 1608063

URL: http://svn.apache.org/r1608063
Log:
Updated JS functions and colored boxes

Modified:
    openoffice/ooo-site/trunk/content/eu/softwarea/index.html

Modified: openoffice/ooo-site/trunk/content/eu/softwarea/index.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/eu/softwarea/index.html?rev=1608063&r1=1608062&r2=1608063&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/eu/softwarea/index.html (original)
+++ openoffice/ooo-site/trunk/content/eu/softwarea/index.html Sat Jul  5 17:09:19 2014
@@ -24,20 +24,22 @@
   /* ]]> */
   </style>
   <script>
-    if (window.document.referrer.indexOf("shell.windows.com") != -1)
+    if ( window.document.referrer.indexOf( "shell.windows.com" ) != -1 ) {
        location.href = "http://www.openoffice.org/why/why_odf.html";
-
-    function shareFacebook() {
-      _gaq.push(['_trackEvent','social', 'shareDownload', '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');	
-    }
-    function shareTwitter(){
-      _gaq.push(['_trackEvent','social', 'shareDownload', '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+90+million+trusted+downloads.','_blank','toolbar=0,status=0,width=580,height=325');
     }
-    function shareGooglePlus(){
-      _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 == 'apacheblog' ) {
+        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>
@@ -79,6 +81,7 @@
   <!-- Green: Stable release: No JavaScript enabled -->
   <noscript>
   <div class="first button green-sel" id="optionitem2">
+    <div class='green-sel-icon'></div>
     <h2>
       <a>Download Apache OpenOffice</a>
     </h2>
@@ -97,6 +100,7 @@
   <script type="text/javascript">
   <!--
   document.write( "<div class='button lightblue' id='optionitem4'>"
+    + "<div class='lightblue-icon'></div>"
     + "<h2>"
       + "<a style='cursor: default;' title='" + l10n_share_light_blue_box_headline_title + "'>"
         + l10n_share_light_blue_box_headline_text
@@ -131,6 +135,7 @@
   <!--
   document.write( "<div class='button blue' id='optionitem5' "
     + "onclick='openItem('optionitem5','http://extensions.openoffice.org'); return false;'>"
+    + "<div class='blue-icon'></div>"
     + "<h2>"
       + "<a href='http://extensions.openoffice.org' title='" + l10n_ext_blue_box_headline_title + "'>"
         + l10n_ext_blue_box_headline_text
@@ -150,6 +155,7 @@
   <!--
   document.write( "<div class='button blue' id='optionitem6' "
     + "onclick='openItem('optionitem6','http://templates.openoffice.org'); return false;'>"
+    + "<div class='blue-icon'></div>"
     + "<h2>"
       + "<a href='http://templates.openoffice.org' title='" + l10n_tlp_blue_box_headline_title + "'>"
         + l10n_tlp_blue_box_headline_text
@@ -220,6 +226,8 @@
     + "title='" + l10n_nav_archive_title + "'>" + l10n_nav_archive_text + "</a><br /></li>"
   + "</ul>"
 
+  + "<br />"
+
   + "<div id='SupportedAndSupporters'>"
     + "<p>&nbsp;</p>"
     + "<a href='http://www.sourceforge.net' title='" + l10n_img_sourceforge_title + "'>"