Author: marcus
Date: Mon Feb 24 20:20:34 2014
New Revision: 1571425
URL: http://svn.apache.org/r1571425
Log:
Fixed possible error for 'div' tags and CSS styles
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=1571425&r1=1571424&r2=1571425&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/index.html (original)
+++ openoffice/ooo-site/trunk/content/download/test/index.html Mon Feb 24
20:20:34 2014
@@ -56,13 +56,12 @@ screen reader. -->
// Get the download URL for released install files (0 = release mode)
var LINK = getLink(0);
- document.write( "<div class=\"first button green\" id=\"optionitem1\"
onclick=\"openItem('optionitem1','"
- + LINK + "');" + "return false;\">" );
-
if ( hasMirrorLink() ) {
if ( SOURCEFORGE ) {
// If download URL contains "sourceforge" (-> normal and correct
download link),
// then download 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
+ " | Build ID " + BUILD + " | SVN " + SVN_REV + " | Released: " +
REL_DATE + "'>"
+ "Download Apache OpenOffice " + VERSION + "</a></h2>"
@@ -81,6 +80,8 @@ screen reader. -->
} else if ( ARCHIVE ) {
// If download URL contains "archive" (-> platform/OS is no longer
supported),
// then provide a download link to the previous version.
+ 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 "
@@ -89,6 +90,8 @@ screen reader. -->
}
} else {
// 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','"
+ + LINK + "');" + "return false;\">" );
document.write( "<h2><a href='" + LANG_ARRAY[ 4 ] + "' title='" +
LANG_ARRAY[ 4 ] + "'>"
+ "Download Apache OpenOffice</a></h2>"
+ "<p><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] +
"'>Apache OpenOffice " + VERSION + " for "
@@ -159,12 +162,11 @@ screen reader. -->
// Get the download URL for Beta releases (>0 = beta mode)
var LINK = getLink(1);
- // If a Beta Release is available for download, then download from
Sourceforge with displayed platform and language.
- document.write( "<div class=\"button yellow\" id=\"optionitem2\"
onclick=\"openItem('optionitem2','"
- + LINK + "') return false;\">" );
-
if ( hasMirrorLink() ) {
if ( SOURCEFORGE ) {
+ // If a Beta Release is available for download, then download from
Sourceforge with displayed platform and language.
+ document.write( "<div class=\"button yellow\" id=\"optionitem2\"
onclick=\"openItem('optionitem2','"
+ + LINK + "') return false;\">" );
document.write( "<h2><a href='" + LINK + "' title='Version " +
BETA_NAME + " | Milestone " + BETA_MILESTONE
+ " | Build ID " + BETA_BUILD + " | SVN " + BETA_SVN_REV + " |
Released: " + BETA_REL_DATE + "'>"
+ "Download Apache OpenOffice " + BETA_NAME + "</a></h2>"
@@ -179,6 +181,8 @@ screen reader. -->
// then use "all_beta.html" as download link.
LINK = "http://www.openoffice.org/download/test/all_beta.html";
+ document.write( "<div class=\"button yellow\" id=\"optionitem2\"
onclick=\"openItem('optionitem2','"
+ + LINK + "') return false;\">" );
document.write( "<h2><a href='" + LINK + "' title='" + LINK + "'>"
+ "Download Apache OpenOffice " + BETA_NAME + "</a></h2>"
+ "<p><a href='" + LINK + "' title='" + LINK + "'>The Beta release is
not available for:<br />"
@@ -189,6 +193,8 @@ screen reader. -->
// If browser language do not match with AOO languages, then download
from an alternative webpage.
LINK = "http://www.openoffice.org/download/test/all_beta.html";
+ document.write( "<div class=\"button yellow\" id=\"optionitem2\"
onclick=\"openItem('optionitem2','"
+ + LINK + "') return false;\">" );
document.write( "<h2><a href='" + LINK + "' title='" + LINK + "'>"
+ "Download Apache OpenOffice " + BETA_NAME + "</a></h2>"
+ "<p><a href='" + LINK + "' title='" + LINK + "'>The Beta release is
not available for:<br />"