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 20:01:48 UTC

svn commit: r1608086 - /openoffice/ooo-site/trunk/content/ast/download/index.html

Author: marcus
Date: Sat Jul  5 18:01:47 2014
New Revision: 1608086

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

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

Modified: openoffice/ooo-site/trunk/content/ast/download/index.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/ast/download/index.html?rev=1608086&r1=1608085&r2=1608086&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/ast/download/index.html (original)
+++ openoffice/ooo-site/trunk/content/ast/download/index.html Sat Jul  5 18:01:47 2014
@@ -3,34 +3,36 @@
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>Descargues d'Apache OpenOffice - Sitiu oficial</title>
-  <script type="text/javascript" src="/download/globalvars.js"></script>
-  <script type="text/javascript" src="/download/download.js"></script>
-  <script type="text/javascript" src="/download/languages.js"></script>
-  <script type="text/javascript" src="/download/release_matrix.js"></script>
-  <script type="text/javascript" src="/download/boxed_download.js"></script>
+  <script type="text/javascript" src="../../download/globalvars.js"></script>
   <script type="text/javascript" src="msg_prop_l10n_ast.js"></script>
+  <script type="text/javascript" src="../../download/languages.js"></script>
+  <script type="text/javascript" src="../../download/release_matrix.js"></script>
+  <script type="text/javascript" src="../../download/boxed_download.js"></script>
+  <script type="text/javascript" src="../../download/download.js"></script>
   <style type="text/css">
   /* <![CDATA[ */
   /*-------------------- Exceptions on standard css -----------------------*/
-  @import "/download/styles.css";
-  @import "/download/exceptions.css";
+  @import "../../download/styles.css";
+  @import "../../download/exceptions.css";
   /* ]]> */
   </style>
   <script>
-    if (window.document.referrer.indexOf("shell.windows.com") != -1)
-       location.href = "/why/why_odf.html";
-
-    function shareFacebook() {
-      _gaq.push(['_trackEvent','social', 'shareDownload', 'facebook']); 
-      window.open('https://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('https://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');
+    if ( window.document.referrer.indexOf( "shell.windows.com" ) != -1 ) {
+       location.href = "http://www.openoffice.org/why/why_odf.html";
     }
-    function shareGooglePlus(){
-      _gaq.push(['_trackEvent','social', 'shareDownload', 'google+']); 
-      window.open('https://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>
@@ -72,6 +74,7 @@
     <!-- Green: Stable release: No JavaScript enabled -->
     <noscript>
     <div class="button green" id="optionitem2">
+      <div class="green-sel-icon"></div>
       <h2>
         <a>Descargar Apache OpenOffice</a>
       </h2>
@@ -85,16 +88,17 @@
     </div>
     </noscript>
 
-<!-- Light Blue: Share download with social networks -->
+  <!-- Light Blue: Share download with social networks -->
   <div class="button lightblue" id="optionitem4">
+    <div class="lightblue-icon"></div>
     <h2><a style="cursor: default;" title="Ayude a correr la voz y fale a les amistaes sobre Apache OpenOffice">Ayude a correr la voz</a></h2>
     <p style="cursor: default;" id="ShareDownloadLinks">
     <a style="cursor: default;" title="Ayude a correr la voz y fale a les amistaes sobre Apache OpenOffice">Por favor, fale a les amistaes sobre Apache OpenOffice.</a>
-    <a style="display: inline; padding: 0 5px 0 30px;" href="javascript:shareFacebook()" title="Por favor, fale a les amistaes sobre Apache OpenOffice per Facebook">
+    <a style="display: inline; padding: 0 5px 0 30px;" href="javascript:share( \"facebook\" )" title="Por favor, fale a les amistaes sobre Apache OpenOffice per Facebook">
     <img src="/images/logo-facebook-32.png" alt="Por favor, fale a les amistaes sobre Apache OpenOffice per Facebook" /></a>
-    <a style="display: inline; padding: 0 5px;" href="javascript:shareTwitter()" title="Por favor, fale a les amistaes sobre Apache OpenOffice per Twitter">
+    <a style="display: inline; padding: 0 5px;" href="javascript:share( \"twitter\" )" title="Por favor, fale a les amistaes sobre Apache OpenOffice per Twitter">
     <img src="/images/logo-twitter-32.png" alt="Por favor, fale a les amistaes sobre Apache OpenOffice per Twitter" /></a>
-    <a style="display: inline; padding: 0 5px;" href="javascript:shareGooglePlus()" title="Por favor, fale a les amistaes sobre Apache OpenOffice per Google+">
+    <a style="display: inline; padding: 0 5px;" href="javascript:share( \"google+\" )" title="Por favor, fale a les amistaes sobre Apache OpenOffice per Google+">
     <img src="/images/logo-googleplus-32.png" alt="Por favor, fale a les amistaes sobre Apache OpenOffice per Google+" /></a>
     </p>
   </div>
@@ -102,6 +106,7 @@
   <!-- Blue: Extensions -->
   <div class="button blue" id="optionitem5" onclick="openItem('optionitem3','http://extensions.openoffice.org');
     return false;">
+    <div class="blue-icon"></div>
     <h2><a href="http://extensions.openoffice.org"
     title="Escoyer ente un bon rangu de funciones adicionales ya individuales">Ver estensiones y diccionarios pa Apache OpenOffice</a></h2>
     <p><a href="http://extensions.openoffice.org"
@@ -112,6 +117,7 @@
   <!-- Blue: Templates -->
   <div class="button blue" id="optionitem6" onclick="openItem('optionitem3_1','http://templates.openoffice.org');
     return false;">
+    <div class="blue-icon"></div>
     <h2><a href="http://templates.openoffice.org"
     title="Escoyer ente un bon rangu de documentos adicionales ya individuales">Ver plantíes pa Apache OpenOffice</a></h2>
     <p><a href="http://templates.openoffice.org"
@@ -192,16 +198,13 @@
     <a href="http://validator.w3.org/check?uri=http://www.openoffice.org/download/index.html"
     title="W3C Markup Validation Service - Compruebe les marques (HTML, XHTML, ...) de documentos Web">
     <img src="/images/valid-xhtml10-blue.png"
-    alt="W3C Markup Validation Service - Compruebe les marques (HTML, XHTML, ...) de documentos Web" /></a>
+    alt="W3C Validation" /></a>
     &nbsp;&nbsp;&nbsp;
   </div>
 </div>
 
-   
-
 </div> <!-- class: overall_optionset -->
 
-
 </body>
 </html>