You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ks...@apache.org on 2012/04/30 01:04:05 UTC

svn commit: r1332016 - /incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html

Author: kschenk
Date: Sun Apr 29 23:04:04 2012
New Revision: 1332016

URL: http://svn.apache.org/viewvc?rev=1332016&view=rev
Log:
kls -- alternate index page, nor mirro re-selection

Modified:
    incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html

Modified: incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html?rev=1332016&r1=1332015&r2=1332016&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html (original)
+++ incubator/ooo/ooo-site/trunk/content/download/test/index_new_dl.html Sun Apr 29 23:04:04 2012
@@ -29,29 +29,7 @@
 <div class="optionset">
 
   <script type="text/javascript">
-  <!--
-  document.write ("<font color=\"red\">");
-  document.write ( "<h2>This page is to test how to get download requests to more than one mirror hosts:</h2>" );
-  
-  document.write ( "<p>Complete SF URL: " + MIRROR_SOURCEFORGE_REF + "</p>" );
-  document.write ( "<p> Complete Apache URL: "+ MIRROR_APACHE_REF + "</p>" );
   
-  document.write ( "<h3>1. Mirror redirection by percent: Apache, SourceForge</h3>" );
-
-  MIRROR = getMirrorHost();
-  alert ("New mirror: " + MIRROR);
-
-  document.write ( "<h3>2. Mirror redirection by percent: Apache, SourceForge, MirrorBrain</h3>" );
-
-  getMirrorHost_asf_sf_mb_percent();
-
-  document.write ( "<h3>3. Mirror redirection by weight: Apache, SourceForge, MirrorBrain</h3>" );
-
-  getMirrorHost_asf_sf_mb_weighted();
-  document.write ("</font>");
-
-  //-->
-  </script>
 
 </div>
 
@@ -61,20 +39,25 @@
   <script type="text/javascript">  
   <!--
   LINK = getLink( VERSION, MIRROR, SCHEMA );
+  var myURLlink = "<a href=\"" + LINK + "\"" + "title = \"" + LINK + "" >";
+  alert ("myURLlink :" + myURLlink);
+  
   document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" + LINK + "');"
     + "return false;\">" );
 
   if ( hasMirrorLink() ) {
-    document.write( "<h2><a href='" + LINK + " title= " + LINK + " '>Download OpenOffice.org " + VERSION + "</a></h2>"
-    + "<p><a href='" + LINK + " title=" + LINK + " '>Click to start downloading the most recent version for "
+    document.write( "<h2>" + myURLlink+ "Download OpenOffice.org " + VERSION + "</a></h2>"
+    + "<p>" + myURLlink + "Click to start downloading the most recent version for "
     + getPlatform() + " and " + getLanguage() + "."
     + "<br/>(Java Runtime Environment (JRE) included for all OS versions except Linux 32/64-bit Debian and Mac OS)</a>"
     + "</p>" );
   } else {
+	  <!-- route everybody to somplace else ??? -->
     document.write( "<h2><a href='" + LINK + "' title='" + LINK + "'>Download OpenOffice.org</a></h2>"
-    + "<p><a href='" + LINK + "' title='" + LINK + "'>Get OpenOffice.org from your " + getLanguage()
-    + " Native Language community</a></p>" );
+    + "<p><a href='" + LINK + "' title='" + LINK + "'>Get OpenOffice.org for " + getLanguage()
+    + " from a Native Language community area.</a></p>" );
   }
+  
   document.write( "</div>" );
   document.write( "<div class=\"sub-green\">"
     + "<p><a href='other.html' title='Get all platforms, languages, language packs to download'>"