Author: marcus
Date: Fri Jun 6 16:21:52 2014
New Revision: 1600953
URL: http://svn.apache.org/r1600953
Log:
Updated test area with data from product area
Modified:
openoffice/ooo-site/trunk/content/download/test/analyze.html
openoffice/ooo-site/trunk/content/download/test/download.js
openoffice/ooo-site/trunk/content/download/test/exceptions.css
openoffice/ooo-site/trunk/content/download/test/globalvars.js
openoffice/ooo-site/trunk/content/download/test/index.html
openoffice/ooo-site/trunk/content/download/test/release_matrix.js
Modified: openoffice/ooo-site/trunk/content/download/test/analyze.html
URL:
http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/analyze.html?rev=1600953&r1=1600952&r2=1600953&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/analyze.html (original)
+++ openoffice/ooo-site/trunk/content/download/test/analyze.html Fri Jun 6
16:21:52 2014
@@ -18,187 +18,337 @@
<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>
+ <!-- What to do to report a broken link -->
+ <script type="text/javascript">
+ <!--
+ document.write( ""
+ + "<h1>How to report a broken download link?</h1>"
+
+ + "<p>"
+ + "<ol style='padding: 0px 0px 0px 15px; list-style: disc outside
none;'>"
+ + "<li><b>Select your favorites</b>: Operating system, language and
version in the green below.</li>"
+ + "<li>Verify that these options <b>still do not</b> lead to valid
download links.</li>"
+ + "<li>Click on the button <b>[Update the table]</b> below the green
box.</li>"
+ + "<li>Click on the button <b>[Select the table]</b> below the green
box.</li>"
+ + "<li><b>Copy via [Ctrl] + [C]</b> the selected table data into the
clipboard.</li>"
+ + "<br />"
+ + "<li><b>Create a new mail</b>.</li>"
+ + "<li><b>Write a problem description</b> (what does not work and what
do you expect).</li>"
+ + "<li>Also add <b>details about the operating system</b> you are
using.</li>"
+ + "<li><b>Paste the copied data</b> at the end.</li>"
+ + "<li>Finally, <b>send the mail</b> to the: "
+ + "<a
href='mailto:[email protected]?subject=Reporting%20broken%20download%20link'"
+ + "title='Send the broken link report to the Apache OpenOffice
developers mailing list'>"
+ + "<b>Apache OpenOffice Development Mailing List</b>"
+ + "</a>. *)"
+ + "</li>"
+ + "</ol>"
+ + "<br />"
+
+ + "*) "
+ + "<a href='http://openoffice.apache.org/mailing-lists.html'
title='Learn more about what a mailing list is'"
+ + "target='_blank'><b>Click here to learn more about what a mailing list
is</b>"
+ + "</a>."
+
+ + "<h3>We will try to respond as soon as we get the mail and the problem
analyzed."
+ + "<br />Thank you for your report.</h3>"
-<div class="optionset">
+ + "<p> </p>"
+ + "</p>" );
+ //-->
+ </script>
+</div>
+
+<div class="optionset" style="float: left;">
+ <!-- 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;'>Apache OpenOffice Download</h1>"
);
+ //-->
+ </script>
<!-- Green: Stable release -->
+ <!-- Download via select boxes -->
<script type="text/javascript">
<!--
+
// Set a specific language ISO code to force to assemble a certain localized
build as download link.
- NL_LANGUAGE = "";
- // Get the download link (1 = Stable Release).
- var dl_link = getLink( 1 );
- // Does the browser language match with AOO languages?
- if ( hasMirrorLink() ) {
- if ( SOURCEFORGE ) {
- // If download link contains "sourceforge" (-> normal and correct
download link),
- // offer download link from Sourceforge with displayed platform and
language.
-/*
- document.write( "<div class=\"first button green\" id=\"optionitem1\"
onclick=\"openItem('optionitem1','"
- + dl_link + "'); return false;\">"
- + "<h2><a href='" + dl_link + "' title='Click to download: " +
FILENAME_FULL + "'>"
- + "Download Apache OpenOffice " + VERSION + "</a></h2>"
- + "<p><a href='" + dl_link + "' title='Click to download: " +
FILENAME_FULL + "'>"
- + "Click here to download (hosted by Sourceforge.net) for:"
- + "<br /><b>" + UI_PLATFORM + "</b> and <b>" + RELEASE_MATRIX_LANG[ 1
] + " (" + RELEASE_MATRIX_LANG[ 2 ] + ")</b>"
- + "<br />Filesize ~" + FILESIZE + " MByte | Milestone " +
MILESTONE + " | Build ID " + BUILD
- + " | SVN " + SVN_REV + " | Released: " + REL_DATE + "</a></p>"
- + "</div>" );
-*/
- document.write( "<div class=\"first button green\" id=\"optionitem1\"
onclick=\"openItem('optionitem1','"
- + dl_link + "'); return false;\">"
- + "<h2><a href='" + dl_link + "' title='Click to download: " +
FILENAME + "'>"
- + "Download Apache OpenOffice " + VERSION + "</a></h2>"
- + "<p><a href='" + dl_link + "' title='Click to download: " + FILENAME
+ "'>"
- + "<a href='" + dl_link + "' title='Click to download: " + FILENAME +
"'>"
- + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 1 ] + " (" +
LANG_ARRAY[ 2 ] + ")</b> "
- + " (Hosted by Sourceforge.net - A trusted
website)</a></p>"
- + "</div>" );
- } else if ( OTHER ) {
- // If download link contains "other" (-> platform, OS or package manager
was not recognized),
- // use "other.html" as download link.
- document.write( "<div class=\"first button green\" id=\"optionitem1\"
onclick=\"openItem('optionitem1','"
- + dl_link + "'); return false;\">"
- + "<h2><a href='" + dl_link + "' title='Click to download: " +
FILENAME + "'>"
- + "Download Apache OpenOffice</a></h2>"
- + "<p><a href='" + dl_link + "' title='Click to download: " + FILENAME
+ "'>"
- + "Apache OpenOffice " + VERSION + " for "
- + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 1 ] + " (" +
LANG_ARRAY[ 2 ] + ")</b> "
- + "is not available. Click here to choose from the alternative
download webpage.</a></p>"
- + "</div>" );
- } else if ( ARCHIVE ) {
- // If download link contains "archive" (-> platform/OS is no longer
supported),
- // offer download link from archive to the previous version.
- document.write( "<div class=\"first button green\" id=\"optionitem1\"
onclick=\"openItem('optionitem1','"
- + dl_link + "'); return false;\">"
- + "<h2><a href='" + dl_link + "' title='Click to download: " +
FILENAME + "'>"
- + "Download Apache OpenOffice</a></h2>"
- + "<p><a href='" + dl_link + "' title='Click to download: " + FILENAME
+ "'>"
- + "Apache OpenOffice " + VERSION + " for "
- + "<b>" + UI_PLATFORM + "</b> and <b>" + LANG_ARRAY[ 1 ] + " (" +
LANG_ARRAY[ 2 ] + ")</b> "
- + "is not available. Click here for the previous version " +
PRE_VERSION + ".</a></p>"
- + "</div>" );
- }
- } else {
- // If browser language do not match with AOO languages, browse to NL
webpage as alternative.
- dl_link = "http://www.openoffice.org/" + RELEASE_MATRIX_LANG[ 3 ];
- document.write( "<div class=\"first button green\" id=\"optionitem1\"
onclick=\"openItem('optionitem1','"
- + dl_link + "'); return false;\">"
- + "<h2><a href='" + dl_link + "' title='Click to download from: " +
dl_link + "'>"
- + "Download Apache OpenOffice</a></h2>"
- + "<p><a href='" + dl_link + "' title='Click to download from: " +
dl_link + "'>"
- + "Apache OpenOffice " + VERSION + " for <b>" + LANG_ARRAY[ 1 ] + " (" +
LANG_ARRAY[ 2 ] + ")</b> "
- + "is not available. Click here to choose from the alternative " +
LANG_ARRAY[ 1 ] + " download webpage."
- + "</a></p>"
- + "</div>" );
- }
- // Show some helpful data and links for SDK, source, checksums, release
notes, legacy version.
-/*
- document.write( "<div class='sub-green'>"
- + "<p> );
- if ( LINK_CHK_ASC_FULL ) {
- document.write( "Signatures and hashes: "
- + "<a href='" + LINK_CHK_KEYS + "' + title='KEYS signature
file'>KEYS</a> , "
- + "<a href='" + LINK_CHK_ASC_FULL + "' + title='ASC signature for: "
+ FILENAME_FULL + "'>ASC</a> , "
- + "<a href='" + LINK_CHK_MD5_FULL + "' + title='MD5 hash for: "
+ FILENAME_FULL + "'>MD5</a> , "
- + "<a href='" + LINK_CHK_SHA256_FULL + "' + title='SHA256 hash for: "
+ FILENAME_FULL + "'>SHA256</a> , "
- + "<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+" +
VERSION_SHORT + "+Release+Notes'"
- + "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'>Source code and SDK</a> | <br />"
- + "<a href='../../porting/index.html'"
- + "title='Get Apache OpenOffice software packaged as portable USB
versions and third-party ports'>"
- + "<b>Portable USB versions</b> and third-party ports</a> | "
- + "Old and legacy version: <a href='../other-341.html' title='Get the
old version of Apache OpenOffice "
- + OLDVERSION + "'><b>" + OLDVERSION + "</b></a> + "
- + "<a href='../legacy/index.html' title='Get the legacy version of
OpenOffice.org "
- + LEGACYVERSION + "'><b>" + LEGACYVERSION + "</b></a></p>"
- + "</div>" );
-*/
- document.write( "<div class='sub-green'>"
- + "<p></p>"
- + "<p><a style='text-decoration: none;'>Filesize ~" + FILESIZE +
" MByte | Milestone " + MILESTONE + " | "
- + "Build ID " + BUILD + " | SVN " + SVN_REV + " | Released: " + REL_DATE +
"</a></p>"
- + "<p></p>"
+ // The variable can be found in the "msg_prop_l10n_<ISO_code>.js".
+ NL_LANG = "";
+
+ // Green colored box.
+ // Show select boxes and both download text buttons.
+ document.write( "<div class='first button green-sel' id='optionitem2'>"
+ // Headline.
+ + "<h2>"
+ + "<a title='Download Apache OpenOffice for your favorite operating
system, language and version'>"
+ + "Download Apache OpenOffice"
+ + "</a>"
+ + "</h2>"
+
+ // Select text.
+ + "<p style='padding-bottom: 0px;'>"
+ + "<a title='Apache OpenOffice binary files are hosted by
Sourceforge.net - A trusted website'>"
+ + "(Hosted by Sourceforge.net - A trusted website)"
+ + "</a>"
+ + "<a title='Select your favorite operating system, language and
version'>"
+ + "<b>Select your favorite operating system, language and version:</b>"
+ + "</a>"
+ + "</p>"
+
+ // Select boxes.
+ + "<form name='download'>"
+ + "<select class='sel-os' id='os' name='os' title='Select your favorite
operating system' onchange='getLinkSel()'>"
+ + "</select>"
+ + "<select class='sel-lang' id='lang' name='lang' title='Select your
favorite language' onchange='getLinkSel()'>"
+ + "</select>"
+ + "<select class='sel-ver' id='ver' name='ver' title='Select your
favorite release version' onchange='getLinkSel()'>"
+ + "</select>"
+ + "</form>"
+
+ // Both download text buttons: First for "full install", then for
"langpack".
+ + "<a style='padding: 0px 0px 0px 3%; cursor: default;'></a>"
+
+ + "<div class='btn_dl' style='display: inline-block;'>"
+ + "<h3>"
+ + "<a id='dl_f_link' href='' title='' target='_blank'></a>"
+ + "</h3>"
+ + "</div>"
+
+ + "<a style='padding: 0px 0px 0px 3%; cursor: default;'></a>"
+
+ + "<div class='btn_dl' style='display: inline-block;'>"
+ + "<h3>"
+ + "<a id='dl_lp_link' href='' title='' target='_blank'></a>"
+ + "</h3>"
+ + "</div>"
+ + "<br /><br />"
+
+ "</div>" );
+
+ // Sub-green colored box.
+ // Show release info, filesizes, checksum links and help links.
+ document.write( "<div id='sub_green_box' class='sub-green-sel'>"
+ + "<p>"
+ // Error text with hint.
+ + "<img id='dl_err_img' style='margin: 5px 5px 15px 0px;' src=''
title='' height='16' width='16' alt='' />"
+ + "<a id='dl_err' style='text-decoration: none;'
title=''></a>"
+
+ // Release info.
+ + "<a id='dl_rel_info' style='text-decoration: none;'></a>"
+ + "<br />"
+
+ // Full installation: Filesize and checksums.
+ + "<a id='dl_f_info' style='text-decoration: none;'></a>"
+ + "<a id='dl_f_chk_keys' style='text-decoration: underline;' href=''
title='' target='_blank'></a>"
+ + "<a id='space1' style='text-decoration: none;'></a>"
+ + "<a id='dl_f_chk_asc' style='text-decoration: underline;' href=''
title='' target='_blank'></a>"
+ + "<a id='space2' style='text-decoration: none;'></a>"
+ + "<a id='dl_f_chk_md5' style='text-decoration: underline;' href=''
title='' target='_blank'></a>"
+ + "<a id='space3' style='text-decoration: none;'></a>"
+ + "<a id='dl_f_chk_sha256' style='text-decoration: underline;' href=''
title='' target='_blank'></a>"
+ + "<br />"
+
+ // Langpack: Filesize and checksums.
+ + "<a id='dl_lp_info' style='text-decoration: none;'></a>"
+ + "<a id='dl_lp_chk_keys' style='text-decoration: underline;'
href='' title='' target='_blank'></a>"
+ + "<a id='space4' style='text-decoration: none;'></a>"
+ + "<a id='dl_lp_chk_asc' style='text-decoration: underline;' href=''
title='' target='_blank'></a>"
+ + "<a id='space5' style='text-decoration: none;'></a>"
+ + "<a id='dl_lp_chk_md5' style='text-decoration: underline;' href=''
title='' target='_blank'></a>"
+ + "<a id='space6' style='text-decoration: none;'></a>"
+ + "<a id='dl_lp_chk_sha256' style='text-decoration: underline;' href=''
title='' target='_blank'></a>"
+ + "<br />"
+
+ // Help: What is a language pack?
+ + "<img id='dl_hlp_img' style='padding: 5px 5px 0px 0px;' src=''
title='' height='16' width='16' alt='' />"
+ + "<a id='dl_hlp' href='' title='' target='_blank'
onclick='showWindow( this.href ); return false;'></a>"
+ + "<a style='padding: 0px 0px 0px 30px;'></a>"
+
+ // Help: How to verify the download?
+ + "<img id='dl_chk_img' style='padding: 5px 5px 0px 0px;' src=''
title='' height='16' width='16' alt='' />"
+ + "<a id='dl_chk' href='' title='' target='_blank'></a>"
+ + "<a style='padding: 0px 0px 0px 30px;'></a>"
+
+ // Help: Report broken link.
+ + "<img id='dl_rpt_img' style='padding: 5px 5px 0px 0px;' src=''
title='' height='16' width='16' alt='' />"
+ + "<a id='dl_rpt' href='' title='' target='_blank'></a>"
+ + "</p>" );
+ document.write( "</div>" );
+
+ // Fill the select boxes and wait for the user's choice.
+ init( 1 );
+
+ entourage.initialize();
//-->
</script>
- <!-- No JavaScript enabled -->
- <noscript>
- <div class="notice">
- <h1>Apache OpenOffice Downloads - Analyze errors</h1>
- <br />
- <h2>JavaScript not enabled?</h2>
- <p>JavaScript needs to be enabled to show the analysis data on this
webpage.</p>
- </div>
- </noscript>
+ <p> </p>
+</div>
+
+<div style="clear: both; float: left;">
+ <form name="update_and_copy">
+ <input class="btn_analyze" type="button" name="update"
href="javascript:void( 0 )"
+ title="Put the selected options as values into the table below"
onclick="updateTable(); return false;"
+ value="Click to update the table" />
+ </input>
+
+ <a style="padding: 0px 0px 0px 30px;"></a>
+
+ <input class="btn_analyze" type="button" name="select"
href="javascript:void( 0 )"
+ title="Select all data in the table below" onclick="selectTable(
'table_data' ); return false;"
+ value="Click to select the table" />
+ </input>
+
+ <a style="padding: 0px 0px 0px 30px;"></a>
+
+ <p class="btn_analyze" style="padding: 0px 5px 0px 5px; display: inline;
cursor: default"
+ title="Copy the selected table data via [Ctrl] + [C] into the clipboard">
+ Copy with [Ctrl] + [C]
+ </p>
+ </form>
<p> </p>
</div>
-<div>
+<div style="clear: both; float: left;">
<script type="text/javascript">
- document.write( "<table border='1' style='width:100%;
border-collapse:collapse; border-spacing: 2px; float: left'><tbody>" );
- document.write( "<th style='width:23%;'><b>Browser variables</b> </th
style='77%;'><th><b>Values</b></th></tr>" );
- document.write( "<tr><td>navigator.appCodeName
</td><td>" + navigator.appCodeName + "</td></tr>" );
- document.write( "<tr><td>navigator.appName
</td><td>" + navigator.appName + "</td></tr>" );
- document.write( "<tr><td>navigator.appVersion
</td><td>" + navigator.appVersion + "</td></tr>" );
- document.write( "<tr><td>navigator.platform
</td><td>" + navigator.platform + "</td></tr>" );
- document.write( "<tr><td>navigator.oscpu
</td><td>" + navigator.oscpu + "</td></tr>" );
- document.write( "<tr><td>navigator.cpuClass
</td><td>" + navigator.cpuClass + "</td></tr>" );
- document.write( "<tr><td>navigator.product
</td><td>" + navigator.product + "</td></tr>" );
- document.write( "<tr><td>navigator.productSub
</td><td>" + navigator.productSub + "</td></tr>" );
- document.write( "<tr><td>navigator.vendor
</td><td>" + navigator.vendor + "</td></tr>" );
- document.write( "<tr><td>navigator.vendorSub
</td><td>" + navigator.vendorSub + "</td></tr>" );
- document.write( "<tr><td>navigator.language
</td><td>" + navigator.language + "</td></tr>" );
- document.write( "<tr><td>navigator.browserLanguage
</td><td>" + navigator.browserLanguage + "</td></tr>" );
- document.write( "<tr><td>navigator.userLanguage
</td><td>" + navigator.userLanguage + "</td></tr>" );
- document.write( "<tr><td>navigator.systemLanguage
</td><td>" + navigator.systemLanguage + "</td></tr>" );
-
- document.write( "<tr><td>navigator.userAgent
</td><td>" + navigator.userAgent + "</td></tr>" );
- if ( navigator.userAgent.indexOf( "Debian" ) != -1 )
- document.write( "<tr><td>navigator.UserAgent (with Debian ?)
</td><td>" + navigator.userAgent.indexOf( "Debian" ) + "</td></tr>" );
- if ( navigator.userAgent.indexOf( "Ubuntu" ) != -1 )
- document.write( "<tr><td>navigator.UserAgent (with Ubuntu ?)
</td><td>" + navigator.userAgent.indexOf( "Ubuntu" ) + "</td></tr>" );
- if ( navigator.userAgent.indexOf( "IceWeasel" ) != -1 )
- document.write( "<tr><td>navigator.UserAgent (with IceWeasel ?)
</td><td>" + navigator.userAgent.indexOf( "IceWeasel" ) + "</td></tr>" );
-
- document.write( "<th style='width:23%;'><b>Stable Release</b> </th
style='77%;'><th> </th></tr>" );
- document.write( "<tr><th><b>JavaScript functions/variables</b>
</th><th><b>Values</b></th></tr>" );
- document.write( "<tr><td>Language name
</td><td>" + LANG_ARRAY[ 2 ] + "</td></tr>" );
- document.write( "<tr><td>Language ISO code
</td><td>" + LANG_ISO + "</td></tr>" );
- document.write( "<tr><td>Language array data
</td><td>" + LANG_ARRAY + "</td></tr>" );
-// document.write( "<tr><td>Release matrix platform position (full)
</td><td>" + RELEASE_MATRIX_PLATFORM_POS_FULL + "</td></tr>" );
-// document.write( "<tr><td>Release matrix platform position (lp)
</td><td>" + RELEASE_MATRIX_PLATFORM_POS_LP + "</td></tr>" );
-// document.write( "<tr><td>Release matrix platform array data
</td><td>" + RELEASE_MATRIX_PLATFORM + "</td></tr>" );
-// document.write( "<tr><td>Release matrix language array data
</td><td>" + RELEASE_MATRIX_LANG + "</td></tr>" );
- document.write( "<tr><td>UI platform name
</td><td>" + UI_PLATFORM + "</td></tr>" );
-// document.write( "<tr><td>UI platform name (not supported)
</td><td>" + UI_PLATFORM_NO_SUP + "</td></tr>" );
- document.write( "<tr><td>URL platform name
</td><td>" + URL_PLATFORM + "</td></tr>" );
- document.write( "<tr><td>File name
</td><td>" + FILENAME + "</td></tr>" );
- document.write( "<tr><td>File extension
</td><td>" + EXTENSION + "</td></tr>" );
- document.write( "<tr><td>File size (MByte)
</td><td>" + FILESIZE + "</td></tr>" );
- document.write( "<tr><td>Download file link
</td><td>" + LINK + "</td></tr>" );
- document.write( "<tr><td>Checksum file link (here for MD5)
</td><td>" + CHECKSUM_MD5 + "</td></tr>" );
- document.write( "<tr><td>getLink()
</td><td>" + getLink( 1 ) + "</td></tr>" );
- document.write( "<tr><td>hasMirrorLink() ?
</td><td>" + hasMirrorLink() + "</td></tr>" );
- document.write( "<tr><td>Old platform ?
</td><td>" + OLD_PLATFORM + "</td></tr>" );
- document.write( "<tr><td>Contains link to Sourgeforge ?
</td><td>" + SOURCEFORGE + "</td></tr>" );
- document.write( "<tr><td>Contains link to 'other.html' ?
</td><td>" + OTHER + "</td></tr>" );
- document.write( "<tr><td>Contains link to archived build ?
</td><td>" + ARCHIVE + "</td></tr>" );
- document.write( "<tr><td>General error ?
</td><td>" + ERROR + "</td></tr>" );
- document.write( "</tbody></table><br/><br/>" );
+
+ document.write( "<div style='float: left;'>"
+
+ // List some variables from browser's Document Object Model (DOM).
+ + "<table class='tbl_analyze' id='table_data' style='border-collapse:
collapse; border-spacing: 2px; width: 100%;'>"
+ + "<tbody>"
+ + "<th style='width:25%;'><b>Browser variables</b> </th
style='75%;'><th><b>Values</b></th>"
+ + "<tr><td>navigator.appCodeName </td><td>" +
navigator.appCodeName + "</td></tr>"
+ + "<tr><td>navigator.appName </td><td>" +
navigator.appName + "</td></tr>"
+ + "<tr><td>navigator.appVersion </td><td>" +
navigator.appVersion + "</td></tr>"
+ + "<tr><td>navigator.platform </td><td>" +
navigator.platform + "</td></tr>"
+ + "<tr><td>navigator.oscpu </td><td>" +
navigator.oscpu + "</td></tr>"
+ + "<tr><td>navigator.cpuClass </td><td>" +
navigator.cpuClass + "</td></tr>"
+ + "<tr><td>navigator.product </td><td>" +
navigator.product + "</td></tr>"
+ + "<tr><td>navigator.productSub </td><td>" +
navigator.productSub + "</td></tr>"
+ + "<tr><td>navigator.vendor </td><td>" +
navigator.vendor + "</td></tr>"
+ + "<tr><td>navigator.vendorSub </td><td>" +
navigator.vendorSub + "</td></tr>"
+ + "<tr><td>navigator.language </td><td>" +
navigator.language + "</td></tr>"
+ + "<tr><td>navigator.browserLanguage </td><td>" +
navigator.browserLanguage + "</td></tr>"
+ + "<tr><td>navigator.userLanguage </td><td>" +
navigator.userLanguage + "</td></tr>"
+ + "<tr><td>navigator.systemLanguage </td><td>" +
navigator.systemLanguage + "</td></tr>"
+ + "<tr><td>navigator.userAgent </td><td>" +
navigator.userAgent + "</td></tr>" );
+
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 )
+ document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?
</td><td>Yes / No / No</td></tr>" );
+ else if ( navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) !=
-1 )
+ document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?
</td><td>No / Yes / No</td></tr>" );
+ else if ( navigator.userAgent.toLowerCase().indexOf( "iceWeasel" ) !=
-1 )
+ document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?
</td><td>No / No / Yes</td></tr>" );
+ else
+ document.write( "<tr><td>Debian / Ubuntu / IceWeasel ?
</td><td>No / No / No</td></tr>" );
+
+ // List all variables and function's return values from scripting.
+ document.write( "<th><b>Stable Release</b></th><th> </th>"
+ + "<tr><th><b>JavaScript functions/variables</b>
</th><th><b>Values</b></th></tr>"
+ + "<tr><td>Language ISO code
</td><td></td></tr>" /* LANG_ISO */
+ + "<tr><td>Language ISO code (from select box)
</td><td></td></tr>" /* LANG_SEL */
+ + "<tr><td>Release matrix platform position (full)
</td><td></td></tr>" /* RELEASE_PLATFORM_POS_FULL */
+ + "<tr><td>Release matrix platform position (lp)
</td><td></td></tr>" /* RELEASE_PLATFORM_POS_LP */
+ + "<tr><td>Release matrix platform array data
</td><td></td></tr>" /* RELEASE_PLATFORM */
+ + "<tr><td>Release matrix language array data
</td><td></td></tr>" /* RELEASE_LANG */
+ + "<tr><td>UI platform name
</td><td></td></tr>" /* UI_PLATFORM */
+ + "<tr><td>UI platform name (not supported)
</td><td></td></tr>" /* UI_PLATFORM_NO_SUP */
+ + "<tr><td>Platform (short)
</td><td></td></tr>" /* PLATFORM */
+ + "<tr><td>URL platform name (full)
</td><td></td></tr>" /* PLATFORM_FULL */
+ + "<tr><td>URL platform name (lp)
</td><td></td></tr>" /* PLATFORM_LP */
+ + "<tr><td>URL platform name (from select box)
</td><td></td></tr>" /* PLATFORM_SEL */
+ + "<tr><td>Version (from select box)
</td><td></td></tr>" /* VERSION_SEL */
+ + "<tr><td>File name (full)
</td><td></td></tr>" /* FILENAME_FULL */
+ + "<tr><td>File name (lp)
</td><td></td></tr>" /* FILENAME_LP */
+ + "<tr><td>File extension
</td><td></td></tr>" /* EXTENSION */
+ + "<tr><td>File size (full) (MByte)
</td><td></td></tr>" /* FILESIZE_FULL */
+ + "<tr><td>File size (lp) (MByte)
</td><td></td></tr>" /* FILESIZE_LP */
+ + "<tr><td>Release info
</td><td></td></tr>" /* REL_TEXT */
+ + "<tr><td>Download file link (full)
</td><td></td></tr>" /* LINK_FULL */
+ + "<tr><td>Download file link (lp)
</td><td></td></tr>" /* LINK_LP */
+ + "<tr><td>Checksum file link (full) (here for MD5)
</td><td></td></tr>" /* LINK_CHK_MD5_FULL */
+ + "<tr><td>Checksum file link (lp) (here for MD5)
</td><td></td></tr>" /* LINK_CHK_MD5_LP */
+ + "<tr><td>Base URL to Sourceforge.net
</td><td></td></tr>" /* SOURCEFORGE_BASE_URL */
+ + "<tr><td>Base URL to Apache Archive
</td><td></td></tr>" /* ASF_ARC_BASE_URL */
+ + "<tr><td>getLinkSel()
</td><td></td></tr>" /* getLinkSel() */
+ + "<tr><td>isLangSupported() ?
</td><td></td></tr>" /* isLangSupported() */
+ + "<tr><td>Old platform ?
</td><td></td></tr>" /* OLD_PLATFORM */
+ + "<tr><td>Contains link to Sourgeforge ?
</td><td></td></tr>" /* SF */
+ + "<tr><td>Contains link to porting webpage ?
</td><td></td></tr>" /* OTHER */
+ + "<tr><td>Contains link to the archive ?
</td><td></td></tr>" /* ARCHIVE */
+ + "<tr><td>General error ?
</td><td></td></tr>" /* ERROR */
+ + "</tbody>"
+ + "</table>"
+ + "</div>" );
+
+ function updateTable() {
+ // All variables and functions that should be shown in the table.
+ elements = [ LANG_ISO, LANG_SEL, RELEASE_PLATFORM_POS_FULL,
RELEASE_PLATFORM_POS_LP, RELEASE_PLATFORM,
+ RELEASE_LANG, UI_PLATFORM, UI_PLATFORM_NO_SUP,
PLATFORM, PLATFORM_FULL, PLATFORM_LP, PLATFORM_SEL,
+ VERSION_SEL, FILENAME_FULL, FILENAME_LP, EXTENSION,
FILESIZE_FULL, FILESIZE_LP, REL_TEXT, LINK_FULL,
+ LINK_LP, LINK_CHK_MD5_FULL, LINK_CHK_MD5_LP,
SOURCEFORGE_BASE_URL, ASF_ARC_BASE_URL, getLinkSel(),
+ isLangSupported(), OLD_PLATFORM, SF, OTHER, ARCHIVE,
ERROR ];
+
+ // Assign the respective table cell with the variable or function.
+ // Start with the 20th row (i = 19) in the 2nd cell (1), count through
the elements array (j):
+ for( var i = 19, j = 0, k = elements.length; j < k; i++, j++ ) {
+ document.getElementById( "table_data" ).rows[ i ].cells[ 1
].innerHTML = elements[ j ];
+ }
+
+ return;
+ }
+
+ function selectTable( table ) {
+ // Select all table data, so that the user can copy it manually into
the clipboard.
+
+ var data = document.getElementById( table );
+ var selection = window.getSelection();
+ var selected_range = document.createRange();
+
+ // All browsers but not MSIE < version 9.
+ if( window.getSelection ) {
+ selected_range.selectNodeContents( data );
+ selection.removeAllRanges();
+ selection.addRange( selected_range );
+
+ } else if( document.body.createTextRange ) {
+ // Only MSIE < version 9.
+ selected_range = document.body.createTextRange ();
+ selected_range.moveToElementText( data );
+ selected_range.select();
+
+ } else if( document.createRange && window.getSelection ) {
+ // All other browsers.
+ selected_range.selectNodeContents( table );
+ selection.removeAllRanges();
+ selection.addRange( selected_range );
+ }
+
+ return;
+ }
</script>
</div>
+<!-- Every new element and text that is defined below the previous DIV will be
actually dislayed wrapped below this DIV
+(because of "clear: both" instead of floated around the previous DIVs. This is
really needed. -->
+<div style="clear: both;"></div>
+
+<!-- No JavaScript enabled -->
+<noscript>
+ <div class="notice">
+ <h1>Apache OpenOffice Downloads - Analyze errors</h1>
+ <br />
+ <h2>JavaScript not enabled?</h2>
+ <p>JavaScript needs to be enabled to show the analysis data on this
webpage.</p>
+ </div>
+</noscript>
+
</body>
</html>