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/02/08 20:02:14 UTC

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

Author: marcus
Date: Sat Feb  8 19:02:13 2014
New Revision: 1566099

URL: http://svn.apache.org/r1566099
Log:
Added logic to show special text and link for platforms that are too old, e.g., Mac OS X 10.6 and older

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=1566099&r1=1566098&r2=1566099&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/index.html (original)
+++ openoffice/ooo-site/trunk/content/download/test/index.html Sat Feb  8 19:02:13 2014
@@ -23,7 +23,7 @@
   </style>
   <script>
     if (window.document.referrer.indexOf("shell.windows.com") != -1)
-       location.href = "/why/why_odf.html";
+       location.href = "../../why/why_odf.html";
 
     function shareFacebook() {
       _gaq.push(['_trackEvent','social', 'shareDownload', 'facebook']); 
@@ -42,6 +42,10 @@
 
 <body>
 
+<!-- The text in the H1 tag is intentionally shown as not displayable, just to please accessibility tools like a
+screen reader. -->
+<h1 style="display: none;">Apache OpenOffice Download</h1>
+
 <div class="optionset">
 
   <!-- Green: Stable release -->
@@ -53,8 +57,18 @@
   var LINK        = getLink();
 
   if ( hasMirrorLink() ) {
-    if ( LINK.toLowerCase().indexOf( "sourceforge" ) != -1 ) {
-      // Download directly from a mirror with displayed platform and language.
+    if ( OLD_PLATFORM ) {
+      // If MacOS X version is <= 10.6, then provide download link form AOO 4.0.1 archive.
+      document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
+      + LINK + "');" + "return false;\">" );
+      document.write( "<h2><a href='" + LINK + "' title='" + LINK + "'>"
+      + "Download Apache OpenOffice</a></h2>"
+      + "<p><a href='" + LINK + "' title='" + LINK + "'>Apache OpenOffice " + VERSION + " for "
+      + "<b>" + UI_PLATFORM + "</b> is not available. Please choose the previous version " + PREVIOUSVERSION + " from the "
+      + "archive.</a></p>" );
+    }
+    else if ( LINK.toLowerCase().indexOf( "sourceforge" ) != -1 ) {
+      // Download directly from Sourceforge with displayed platform and language.
       document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
       + LINK + "');" + "return false;\">" );
       document.write( "<h2><a href='" + LINK + "' title='Version " + VERSION + " | Milestone " + MILESTONE
@@ -65,7 +79,7 @@
       + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 2 ] + "</b> | ~" + FILESIZE + " MByte | Released: "
       + DATE + "<br /></a></p>" );
     } else {
-      // OS and/or package manager was not recognized, therefore use "other.html" as download link.
+      // If platform and/or package manager was not recognized, then use "other.html" as download link.
       document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
       + LINK + "');" + "return false;\">" );
       document.write( "<h2><a href='" + LINK + "' title='" + LINK + "'>"
@@ -75,7 +89,7 @@
       + "webpage.</a></p>" );
     }
   } else {
-    // Download from an alternative webpage if hasMirrorLink() == false.
+    // If browser language do not match with AOO languages, then download from an alternative webpage.
     document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
     + LANG_ARRAY[ 4 ] + "');" + "return false;\">" );
     document.write( "<h2><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>"
@@ -98,7 +112,7 @@
     + "<a href='../checksums.html' title='How to verify the download with checksums?'>How to verify?</a> | " );
   }
   document.write( "<a href='https://cwiki.apache.org/confluence/display/OOOUSERS/AOO+4.0.1+Release+Notes'"
-  + "title='What is new, what has been improved in Apache OpenOffice " + VERSION + "?'>Release Notes</a> | <br />"
+  + "title='What is new, what has been improved in Apache OpenOffice " + VERSION + "?'><b>Release Notes</b></a> | <br />"
   + "<a href='other.html' title='Get all platforms, languages, language packs to download'>"
   + "<b>Get all platforms, languages, language packs</b></a> | "
   + "<a href='other.html#source' title='Get the source code and SDK to download'>"
@@ -118,22 +132,13 @@
 
   <!-- Green: Stable release: No JavaScript enabled -->
   <noscript>
-  <div class="button green" id="optionitem1"
-    onclick="openItem('optionitem1','http://www.apache.org/dyn/aoo-closer.cgi/openoffice/4.0.0/binaries/'); return false;">
-    <h2><a href="http://www.apache.org/dyn/aoo-closer.cgi/openoffice/4.0.0/binaries/"
-    title="Click this text to choose from an Apache mirror server near to you">Download Apache OpenOffice</a></h2>
-    <p><a href="http://www.apache.org/dyn/aoo-closer.cgi/openoffice/4.0.0/binaries/"
-    title="Select from other platforms and languages to download">JavaScript needs to be enabled to take full advantage of
-    this download section. If this is not possible, please click this text to choose from an Apache mirror server near to
-    you.</a></p>
-  </div>
-  <!-- Old text
   <div class="first button green" id="optionitem1">
-    <h2><a style="cursor: default;">Download Apache OpenOffice</a></h2>
-    <p style="cursor: default;">
-    <a style="cursor: default;">JavaScript needs to be enabled to download Apache OpenOffice.</a></p>
+    <h2><a>Download Apache OpenOffice</a></h2>
+    <p><a href="http://www.apache.org/dyn/aoo-closer.cgi/openoffice/">Your browser does not seem to allow JavaScript
+    on websites. This technique is used on this webpage for presenting the actual download links. If you want to
+    download Apache OpenOffice, go to the alternative download page, and you will skip this page. Our apologies for
+    the inconvenience.</a></p>
   </div>
-  -->
   <div class="sub-green">
     <p><a href="../../porting/index.html"
     title="Get Apache OpenOffice software packaged as portable USB versions and third-party ports">
@@ -167,23 +172,18 @@
   <!-- Blue: Extensions -->
   <div class="button blue" id="optionitem3" onclick="openItem('optionitem3','http://extensions.openoffice.org');
     return false;">
-    <h2><a href="http://extensions.openoffice.org"
-    title="Choose from a wide range of additional and individual functionality">
-    Get Apache OpenOffice Extensions and Dictionaries</a></h2>
-    <p><a href="http://extensions.openoffice.org"
-    title="Choose from a wide range of additional and individual functionality">
-    Extend your Apache OpenOffice functionality with a large and growing library of extensions and dictionaries from other users.</a></p>
+    <a href="http://extensions.openoffice.org" title="Choose from a wide range of additional and individual functionality">
+    <h2>Get Apache OpenOffice Extensions and Dictionaries</h2>
+    <p>Extend your Apache OpenOffice functionality with a large and growing library of extensions and dictionaries from
+    other users.</p></a>
   </div>
 
   <!-- Blue: Templates -->
   <div class="button blue" id="optionitem3_1" onclick="openItem('optionitem3_1','http://templates.openoffice.org');
     return false;">
-    <h2><a href="http://templates.openoffice.org"
-    title="Choose from a wide range of additional and individual documents">
-    Get Apache OpenOffice Templates</a></h2>
-    <p><a href="http://templates.openoffice.org"
-    title="Choose from a wide range of additional and individual documents">
-    Extend your Apache OpenOffice creativity with a large and growing library of templates from other users.</a></p>
+    <a href="http://templates.openoffice.org" title="Choose from a wide range of additional and individual documents">
+    <h2>Get Apache OpenOffice Templates</h2>
+    <p>Extend your Apache OpenOffice creativity with a large and growing library of templates from other users.</p></a>
   </div>
 
   <!-- Yellow: Release Candidate online -->
@@ -373,14 +373,14 @@
     <li><a href="../../dev_docs/source/sys_reqs_aoo40.html"
     title="HDD: ~300MB free - Memory: &gt;128MB - Processor: &gt;500MHz - OS: Win, Linux, Mac OS, Solaris, FreeBSD...">
     <b>System Requirements</b></a></li>
-    <li><a href="common/instructions.html"
+    <li><a href="../common/instructions.html"
     title="Instructions for installing Apache OpenOffice on Windows, Linux and Mac OS machines"><b>Install Guides</b></a> and
-    <a href="../documentation/index.html"
+    <a href="../../documentation/index.html"
     title="Extensive user manuals for every day use"><b>User Guides</b></a></li>
     <li><a href="../../development/releases/eol.html"
     title="Information about releases that have reached End-Of-Life status">End-Of-Life Information</a></li>
     <li><a href="../../support/index.html"
-    title="If the information above did not answer your question: Free and paid support!">Support</a></li>
+    title="If the information above did not answer your question: Free and paid support!"><b>Support</b></a></li>
     <li><a href="../common/java.html"
     title="Explains why to use Java and what it is">Java and Apache OpenOffice</a></li>
     <!--<li><a href="http://java.com/en/download/manual_v6.jsp"