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 22:11:42 UTC

svn commit: r1608118 - /openoffice/ooo-site/trunk/content/cs/download/index.html

Author: marcus
Date: Sat Jul  5 20:11:42 2014
New Revision: 1608118

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

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

Modified: openoffice/ooo-site/trunk/content/cs/download/index.html
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/cs/download/index.html?rev=1608118&r1=1608117&r2=1608118&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/cs/download/index.html (original)
+++ openoffice/ooo-site/trunk/content/cs/download/index.html Sat Jul  5 20:11:42 2014
@@ -10,74 +10,76 @@
   <meta property="og:image" content="http://www.openoffice.org/images/aoo-logo-100x100.png" />
   <meta name="description" content="Oficiální stránka pro stažení Apache OpenOffice. Přidejte se k OpenOffice revoluci, svobodní a otevřený kancelářský balík stažen více než 60 miliónů-krát." />
   <title>Stáhnout Apache OpenOffice - Oficiální stránka</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_cs.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%2Fcs%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%2Fcs%2Fdownload%2F&text=Přidejte+se+k+OpenOffice+revoluci%2C+svobodný+kancelářský+balík+stažen+více+než+60+miliónů%2Dkrát.','_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%2Fcs%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>
 
 <body>
 
-
 <div class="optionset">
 
-   <!-- Text above the first colored box -->
-    <script type="text/javascript">
-    <!--
-    // The text in the H1 tag is intentionally shown as "display: none" (do not display).
-    // This is to please accessibility tools like a screen reader.
-    document.write( "<h1 style='display: none;'>" + l10n_download_headline_text + "</h1>" );
-    //-->
-    </script>
-
-    <!-- Green: Stable release -->
-    <!-- Download via select boxes -->
-    <script type="text/javascript">
-    <!--
+  <!-- Text above the first colored box -->
+  <script type="text/javascript">
+  <!--
+  // The text in the H1 tag is intentionally shown as "display: none" (do not display).
+  // This is to please accessibility tools like a screen reader.
+  document.write( "<h1 style='display: none;'>" + l10n_download_headline_text + "</h1>" );
+  //-->
+  </script>
 
-    // Set a specific language ISO code to force to assemble a certain localized build as download link.
-    // Changed: The variable can now be found in the "msg_prop_l10n_<ISO_code>.js".
+  <!-- Green: Stable release -->
+  <!-- Download via select boxes -->
+  <script type="text/javascript">
+  <!--
 
-    // Get the download box from a separate file.
-    createDownloadBox();
+  // Set a specific language ISO code to force to assemble a certain localized build as download link.
+  // Changed: The variable can now be found in the "msg_prop_l10n_<ISO_code>.js".
 
-    // Fill the select boxes and wait for the user's choice.
-    init( 1 );
+  // Get the download box from a separate file.
+  createDownloadBox();
 
-    entourage.initialize();
+  // Fill the select boxes and wait for the user's choice.
+  init( 1 );
 
-    //-->
-    </script>
+  entourage.initialize();
+
+  //-->
+  </script>
 
   <!-- Green: Stable release: No JavaScript enabled -->
   <noscript>
   <div class="first button green" id="optionitem2">
+    <div class="green-sel-icon"></div>
     <h2><a style="cursor: default;">Stáhnout Apache OpenOffice</a></h2>
     <p style="cursor: default;">
     <a style="cursor: default;">Pro stažení Apache OpenOffice je třeba mít povolen JavaScript.</a></p>
@@ -91,6 +93,7 @@
 
   <!-- Light Blue: Share download with social networks -->
   <div class="button lightblue" id="optionitem4">
+    <div class="lightblue-icon"></div>
     <h2><a style="cursor: default;" title="Pomozte sířit Apache OpenOffice a řekněte o něm svým přátelům">
     Pomozte šířit</a></h2>
     <p style="cursor: default;" id="ShareDownloadLinks">
@@ -111,6 +114,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="Vyberte si ze široké škály přídavných a originálních funkcí">
     Získat Apache OpenOffice rozšíření a slovníky</a></h2>
@@ -122,6 +126,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="Vyberte si ze široké škály přídavných a originálních dokumentů">
     Získat Apache OpenOffice šablony</a></h2>
@@ -130,7 +135,6 @@
     Rozšiřte kreativitu svojho Apache OpenOffice s velkou a stále se rozrůstající knihovnou šablon od ostatních uživatelů.</a></p>
   </div>
 
-  
 </div>
 
 <div class="additionalinformation">