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/05/28 22:03:51 UTC
svn commit: r1598119 -
/openoffice/ooo-site/trunk/content/download/test/download_droplist.js
Author: marcus
Date: Wed May 28 20:03:51 2014
New Revision: 1598119
URL: http://svn.apache.org/r1598119
Log:
Continued the implemented exceptions for not available languages or platforms
Modified:
openoffice/ooo-site/trunk/content/download/test/download_droplist.js
Modified: openoffice/ooo-site/trunk/content/download/test/download_droplist.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download_droplist.js?rev=1598119&r1=1598118&r2=1598119&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download_droplist.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download_droplist.js Wed May 28 20:03:51 2014
@@ -1,31 +1,31 @@
/*
* Overview of all functions defined below
* ------------------------------------------
- * function init ()
- * function initVars ()
- * function alertDbg ( function_name )
- * function getLanguage ()
- * function fillOSSel ()
- * function fillLangSel ()
- * function fillVerSel ()
- * function getOSSel ()
- * function getLangSel ()
- * function getVerSel ()
- * function setOSSel ()
- * function setLangSel ()
- * function setVerSel ()
- * function getTypeSel ()
- * function resetSel ()
- * function showWindow ( target_url )
- * function showErrorMessage( error_text )
- * function isLangSupported ()
- * function getLink ( rel_mode )
- * function getLinkSel ( rel_mode )
- * function getPlatform ()
- * function getDLFilename ( ver )
- * function getChkFilename ( ver )
- * function getFilesize ( ver )
- * function openItem ( itemid, uri )
+ * function init ()
+ * function initVars ()
+ * function alertDbg ( location )
+ * function getLanguage ()
+ * function fillOSSel ()
+ * function fillLangSel ()
+ * function fillVerSel ()
+ * function getOSSel ()
+ * function getLangSel ()
+ * function getVerSel ()
+ * function setOSSel ()
+ * function setLangSel ()
+ * function setVerSel ()
+ * function getTypeSel ()
+ * function resetSel ()
+ * function showWindow ( target_url )
+ * function showErrorMessage ( error_text )
+ * function isLangSupported ()
+ * function getLink ( rel_mode )
+ * function getLinkSel ( rel_mode )
+ * function getPlatform ()
+ * function getReleaseMatrixPos ()
+ * function getFilename ( ver )
+ * function getFilesize ( ver )
+ * function openItem ( itemid, uri )
*/
/*
@@ -39,6 +39,12 @@ function init() {
fillOSSel()
fillLangSel();
fillVerSel();
+
+ // Get the platform and language from the browser data.
+ getPlatform();
+ getLanguage();
+
+ // Set the recognized platform and language as default.
setOSSel();
setLangSel();
setVerSel();
@@ -51,8 +57,19 @@ function init() {
* Define all global variables
*/
function initVars() {
- // Define variables without "var" to make them globally available
+ // Define variables without "var" to make them globally available.
+
+ // The following are used in "download.js" only.
+ element_ids = ["dl_f_lnk", "dl_lp_lnk", "dl_rel_dta_hl", "dl_rel_dta", "dl_f_hl", "dl_f_size_hl", "dl_f_size",
+ "space1", "dl_f_chk_hl", "dl_f_chk_keys", "space2", "dl_f_chk_asc", "space3", "dl_f_chk_md5", "space4",
+ "dl_f_chk_sha256", "space5", "dl_chk_verify", "dl_lp_hl", "dl_lp_size_hl", "dl_lp_size", "space6", "dl_lp_chk_hl",
+ "dl_lp_chk_keys", "space7", "dl_lp_chk_asc", "space8", "dl_lp_chk_md5", "space9", "dl_lp_chk_sha256", "dl_hlp",
+ "dl_hlp_img", "dl_rpt", "dl_rpt_img" ];
+ element_ids_lnk = ["dl_f_lnk", "dl_lp_lnk", "dl_f_chk_keys", "dl_f_chk_asc", "dl_f_chk_md5", "dl_f_chk_sha256",
+ "dl_chk_verify", "dl_lp_chk_keys", "dl_lp_chk_asc", "dl_lp_chk_md5", "dl_lp_chk_sha256", "dl_hlp", "dl_rpt" ];
+
+ // The following are used in "index.html" and "download.js".
LANG_ISO = ""; // The language as ISO code
LANG_ARRAY = ""; // This array contains all language specific data
UI_PLATFORM = ""; // The platform as readable string
@@ -98,7 +115,6 @@ function initVars() {
* Output values of variables for debugging
*/
function alertDbg( location ) {
-
if( location == "" )
location = "No location named!";
@@ -111,7 +127,6 @@ function alertDbg( location ) {
+ "RELEASE_MATRIX_PLATFORM_POS_LP: " + "\t\t" + RELEASE_MATRIX_PLATFORM_POS_LP + "\n"
+ "RELEASE_MATRIX_PLATFORM: " + "\t\t\t" + RELEASE_MATRIX_PLATFORM + "\n"
+ "RELEASE_MATRIX_LANG: " + "\t\t\t\t" + RELEASE_MATRIX_LANG + "\n"
- + "isLangSupported(): " + "\t\t\t\t\t" + isLangSupported() + "\n"
+ "UI_PLATFORM: " + "\t\t\t\t\t\t" + UI_PLATFORM + "\n"
+ "URL_PLATFORM: " + "\t\t\t\t\t\t" + URL_PLATFORM + "\n"
+ "OLD_PLATFORM: " + "\t\t\t\t\t" + OLD_PLATFORM + "\n"
@@ -137,7 +152,7 @@ function alertDbg( location ) {
+ "LINK_CHECKSUM_SHA256_LP: " + "\t\t\t" + LINK_CHECKSUM_SHA256_LP + "\n"
+ "SF: " + "\t\t\t\t\t\t\t\t" + SF + "\n"
+ "OTHER: " + "\t\t\t\t\t\t\t" + OTHER + "\n"
- + "ARCHIVE: " + "\t\t\t\t\t\t\t" + ARCHIVE + "\n"
+ + "ARCHIVE: " + "\t\t\t\t\t\t\t" + ARCHIVE + "\n"
+ "ERROR: " + "\t\t\t\t\t\t\t" + ERROR + "\n"
+ "" );
@@ -263,7 +278,7 @@ function fillOSSel() {
}
// Get the platform from the browser data.
- getPlatform();
+// getPlatform();
// Set the recognized platform as default.
// setOSSel();
@@ -290,7 +305,7 @@ function fillLangSel() {
}
// Get the language from the browser data.
- getLanguage();
+// getLanguage();
// Set the recognized language as default.
// setLangSel();
@@ -738,7 +753,6 @@ function getLangSel() {
function getVerSel() {
// var sel_ver = document.getElementById( "ver" );
var ver_value = document.download.ver.options[document.download.ver.selectedIndex].value;
- var i = 0;
/*
// If one of the first 2 <select> elements was chosen, let the user chose again.
if( ver_value == "e0" || ver_value == "e1" ) {
@@ -789,39 +803,37 @@ function getTypeSel() {
*/
function resetSel() {
// var elements = document.getElementsByTagName( "select" );
-
+/*
// Set the first option as default for all <select> elements.
- // for( var i = 0; i < elements.length; i++ ) {
- // elements[i].selectedIndex = 0;
- // }
-
- // List all elements that should be empty.
- var element_names = ["dl_f_lnk", "dl_lp_lnk", "dl_rel_dta_hl", "dl_rel_dta", "dl_f_hl", "dl_f_size_hl", "dl_f_size",
- "space1", "dl_f_chk_hl", "dl_f_chk_keys", "space2", "dl_f_chk_asc", "space3", "dl_f_chk_md5", "space4",
- "dl_f_chk_sha256", "space5", "dl_chk_verify", "dl_lp_hl", "dl_lp_size_hl", "dl_lp_size", "space6", "dl_lp_chk_hl",
- "dl_lp_chk_keys", "space7", "dl_lp_chk_asc", "space8", "dl_lp_chk_md5", "space9", "dl_lp_chk_sha256", "dl_hlp",
- "dl_hlp_img", "dl_hlp_img2", "dl_rpt", "dl_rpt_img", "dl_rpt_img2", "dl_hlp", "dl_hlp_img", "dl_rpt", "dl_rpt_img" ];
-
- // Emtpy the values for all elements in the green and sub-green colored boxes.
- for( var i = 0; i < element_names.length; i++ ) {
- if( element_names[ i ].indexOf( "img" ) < 0 ) {
+ for( var i = 0; i < elements.length; i++ ) {
+ elements[i].selectedIndex = 0;
+ }
+*/
+ // Change CSS styles for all elements with ID in the green and sub-green colored boxes.
+ // Emtpy the values for all elements, make them invisible.
+ for( var i = 0; i < element_ids.length; i++ ) {
+ if( element_ids[ i ].indexOf( "img" ) < 0 ) {
// Emtpy the values for all text elements.
- document.getElementById( element_names[ i ] ).href = "javascript:void( 0 )";
- document.getElementById( element_names[ i ] ).title = "";
- document.getElementById( element_names[ i ] ).innerHTML = "";
+// document.getElementById( element_ids[ i ] ).href = "javascript:void( 0 )";
+// document.getElementById( element_ids[ i ] ).title = "";
+// document.getElementById( element_ids[ i ] ).innerHTML = "";
} else {
// Emtpy the values for all image elements.
- document.getElementById( element_names[ i ] ).src = "javascript:void( 0 )";
- document.getElementById( element_names[ i ] ).title = "";
- document.getElementById( element_names[ i ] ).alt = "";
+// document.getElementById( element_ids[ i ] ).style.display = "none";
+// document.getElementById( element_ids[ i ] ).src = "javascript:void( 0 )";
+// document.getElementById( element_ids[ i ] ).title = "";
+// document.getElementById( element_ids[ i ] ).alt = "";
}
+// document.getElementById( element_ids[ i ] ).title = "";
+ document.getElementById( element_ids[ i ] ).style.display = "none";
}
-
+/*
// Set the values for all elements that should not be empty.
document.getElementById( "dl_f_lnk" ).innerHTML = "No full installation selected";
document.getElementById( "dl_f_lnk" ).title = "Please select correct items from the select boxes.";
document.getElementById( "dl_lp_lnk" ).innerHTML = "No language pack selected";
document.getElementById( "dl_lp_lnk" ).title = "Please select correct items from the select boxes.";
+*/
/*
// Emtpy the values for the both download text buttons.
document.getElementById( "dl_f_lnk" ).href = "";
@@ -878,10 +890,9 @@ function resetSel() {
document.getElementById( "dl_lp_chk_sha256" ).href = "";
document.getElementById( "dl_lp_chk_sha256" ).innerHTML = "";
document.getElementById( "dl_lp_chk_sha256" ).title = "";
-
- // Emtpy the values in the sub-green box on the right hand side.
*/
/*
+ // Emtpy the values in the sub-green box on the right hand side.
document.getElementById( "dl_hlp" ).href = "full_vs_lp.html";
document.getElementById( "dl_hlp" ).innerHTML = "What is a language pack?";
document.getElementById( "dl_hlp" ).title = "What is the difference between full installation and language pack?";
@@ -939,11 +950,19 @@ function showErrorMessage( error_text )
resetSel();
// Now set again the values for all elements that should be shown.
- document.getElementById( "dl_f_lnk" ).innerHTML = error_text[ 0 ];
- document.getElementById( "dl_f_lnk" ).title = error_text[ 1 ];
- document.getElementById( "dl_lp_lnk" ).innerHTML = error_text[ 2 ];
- document.getElementById( "dl_lp_lnk" ).title = error_text[ 3 ];
- document.getElementById( "dl_f_size_hl" ).innerHTML = error_text[ 4 ];
+ document.getElementById( "dl_f_lnk" ).style.display = "inline";
+ document.getElementById( "dl_f_lnk" ).style.cursor = "not-allowed";
+ document.getElementById( "dl_f_lnk" ).href = "javascript:void( 0 )";
+ document.getElementById( "dl_f_lnk" ).innerHTML = error_text[ 0 ];
+ document.getElementById( "dl_f_lnk" ).title = error_text[ 1 ];
+ document.getElementById( "dl_lp_lnk" ).style.display = "inline";
+ document.getElementById( "dl_lp_lnk" ).style.cursor = "not-allowed";
+ document.getElementById( "dl_lp_lnk" ).href = "javascript:void( 0 )";
+ document.getElementById( "dl_lp_lnk" ).innerHTML = error_text[ 2 ];
+ document.getElementById( "dl_lp_lnk" ).title = error_text[ 3 ];
+ document.getElementById( "dl_f_size_hl" ).style.display = "inline";
+ document.getElementById( "dl_f_size_hl" ).style.cursor = "default";
+ document.getElementById( "dl_f_size_hl" ).innerHTML = error_text[ 4 ];
SF = false;
OTHER = true;
@@ -962,6 +981,9 @@ function isLangSupported() {
// Check the flag in "languages.js", 'y' -> provide download link, 'n' -> redirect to alternative webpage.
// Check the flag in "release_matrix.js", 'y' -> provide download link, 'n' -> redirect to alternative webpage.
+ if( VERSION_SEL == undefined || VERSION_SEL == "" )
+ VERSION_SEL = VERSION;
+
switch( VERSION_SEL ) {
case "4.1.0":
RELEASE_MATRIX_LANG = release_matrix_410[ LANG_ISO ][ 0 ];
@@ -971,6 +993,7 @@ function isLangSupported() {
break;
case "4.0.0":
// Todo: Implement a "release_matrix_400" array in the "release_matrix.js" file.
+// RELEASE_MATRIX_LANG = release_matrix_400[ LANG_ISO ][ 0 ];
break;
default:
RELEASE_MATRIX_LANG = "";
@@ -1001,53 +1024,54 @@ function getLink( rel_mode ) {
getLanguage();
getPlatform();
+/*
if( isLangSupported() ) {
getFilesize( VERSION );
}
-
+*/
// If language is supported, provide a download link.
if( isLangSupported() ) {
// If platform is too old, provide a general download link to the archive.
if( OLD_PLATFORM ) {
// If platform is 'Mac OS X <= 10.6', provide a download link with previous AOO version.
if( UI_PLATFORM == "Mac OS X (10.6 or older)" ) {
- APACHE_DIST_BASE_URL = APACHE_DIST + VERSION;
- APACHE_DIST_PREVIOUS_URL = APACHE_DIST + PRE_VERSION;
+ getReleaseMatrixPos()
+ getFilesize( PRE_VERSION );
+ getFilename( PRE_VERSION );
- LINK_FULL = SOURCEFORGE_PREVIOUS_URL + LANG_ISO + "/";
- LINK_FULL = LINK_FULL + getDLFilename( PRE_VERSION );
- LINK_FULL = LINK_FULL + "/download"
+ SOURCEFORGE_PREVIOUS_URL = SOURCEFORGE + PRE_VERSION + "/binaries/";
+ APACHE_DIST_PREVIOUS_URL = APACHE_DIST + PRE_VERSION;
- LINK_CHECKSUM_KEYS = "https://people.apache.org/keys/group/openoffice.asc";
+ LINK_FULL = SOURCEFORGE_PREVIOUS_URL + LANG_ISO + "/";
+ LINK_FULL = LINK_FULL + FILENAME_FULL + "/download";
+
+ LINK_CHK_KEYS = "https://people.apache.org/keys/group/openoffice.asc";
- LINK_CHECKSUM_ASC_FULL = APACHE_DIST_PREVIOUS_URL + "/binaries/" + LANG_ISO + "/";
- LINK_CHECKSUM_ASC_FULL = LINK_CHECKSUM_ASC_FULL + getDLFilename( PRE_VERSION ) + ".asc";
+ LINK_CHK_ASC_FULL = APACHE_DIST_PREVIOUS_URL + "/binaries/" + LANG_ISO + "/";
+ LINK_CHK_ASC_FULL = LINK_CHECKSUM_ASC_FULL + FILENAME_FULL + ".asc";
- LINK_CHECKSUM_MD5_FULL = APACHE_DIST_PREVIOUS_URL + "/binaries/" + LANG_ISO + "/";
- LINK_CHECKSUM_MD5_FULL = LINK_CHECKSUM_MD5_FULL + getDLFilename( PRE_VERSION ) + ".md5";
+ LINK_CHK_MD5_FULL = APACHE_DIST_PREVIOUS_URL + "/binaries/" + LANG_ISO + "/";
+ LINK_CHK_MD5_FULL = LINK_CHECKSUM_MD5_FULL + FILENAME_FULL + ".md5";
- LINK_CHECKSUM_SHA256_FULL = APACHE_DIST_PREVIOUS_URL + "/binaries/" + LANG_ISO + "/";
- LINK_CHECKSUM_SHA256_FULL = LINK_CHECKSUM_SHA256_FULL + getDLFilename( PRE_VERSION );
- LINK_CHECKSUM_SHA256_FULL = LINK_CHECKSUM_SHA256_FULL + ".sha256"
-
- SF = false;
- OTHER = false;
- ARCHIVE = true;
- ERROR = true;
+ LINK_CHK_SHA256_FULL = APACHE_DIST_PREVIOUS_URL + "/binaries/" + LANG_ISO + "/";
+ LINK_CHK_SHA256_FULL = LINK_CHECKSUM_SHA256_FULL + FILENAME_FULL + ".sha256";
+
+ SF = false;
+ OTHER = false;
+ ARCHIVE = true;
+ ERROR = true;
return LINK_FULL;
// If platform is Solaris, FreeBSD or OS/2, provide a download link to the porting webpage.
- } else if( UI_PLATFORM == "Solaris x86 (PKG)" ||
- UI_PLATFORM == "Solaris SPARC (PKG)" ||
- UI_PLATFORM == "FreeBSD (PKG)" ||
- UI_PLATFORM == "OS/2" ) {
-
- LINK_FULL = "http://www.openoffice.org/porting/index.html";
-
- SF = false;
- OTHER = true;
- ARCHIVE = false;
- ERROR = true;
+ } else if( UI_PLATFORM == "Solaris x86 (PKG)" || UI_PLATFORM == "Solaris SPARC (PKG)" ||
+ UI_PLATFORM == "FreeBSD (PKG)" || UI_PLATFORM == "OS/2" ) {
+
+ LINK_FULL = "http://www.openoffice.org/porting/index.html";
+
+ SF = false;
+ OTHER = true;
+ ARCHIVE = false;
+ ERROR = true;
return LINK_FULL;
@@ -1060,10 +1084,10 @@ function getLink( rel_mode ) {
LINK_CHECKSUM_MD5_FULL = "http://archive.apache.org/dist/openoffice/";
LINK_CHECKSUM_SHA256_FULL = "http://archive.apache.org/dist/openoffice/";
- SF = false;
- OTHER = true;
- ARCHIVE = false;
- ERROR = true;
+ SF = false;
+ OTHER = true;
+ ARCHIVE = false;
+ ERROR = true;
return LINK_FULL;
}
@@ -1074,37 +1098,35 @@ function getLink( rel_mode ) {
if( UI_PLATFORM == "" ) {
UI_PLATFORM = "unknown platform/OS";
}
- LINK_FULL = "http://www.openoffice.org/download/other.html";
+ LINK_FULL = "http://www.openoffice.org/download/other.html";
- SF = false;
- OTHER = true;
- ARCHIVE = false;
- ERROR = true;
+ SF = false;
+ OTHER = true;
+ ARCHIVE = false;
+ ERROR = true;
return LINK_FULL;
}
// If language is supported and platform was recognized, assemble the filenames for download and checksums.
+ getReleaseMatrixPos()
+ getFilesize( VERSION );
+ getFilename( VERSION );
+
SOURCEFORGE_BASE_URL = SOURCEFORGE + VERSION + "/binaries/";
- SOURCEFORGE_PREVIOUS_URL = SOURCEFORGE + PRE_VERSION + "/binaries/";
+ APACHE_DIST_BASE_URL = APACHE_DIST + VERSION;
- LINK_FULL = SOURCEFORGE_BASE_URL + LANG_ISO + "/" + getDLFilename( VERSION ) + "/download";
+ LINK_FULL = SOURCEFORGE_BASE_URL + LANG_ISO + "/" + FILENAME_FULL + "/download";
LINK_CHECKSUM_KEYS = "https://people.apache.org/keys/group/openoffice.asc";
+ LINK_CHECKSUM_ASC_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_ISO + "/" + FILENAME_FULL + ".asc";
+ LINK_CHECKSUM_MD5_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_ISO + "/" + FILENAME_FULL + ".md5";
+ LINK_CHECKSUM_SHA256_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_ISO + "/" + FILENAME_FULL + ".sha256";
- LINK_CHECKSUM_ASC_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_ISO + "/" + getDLFilename( VERSION );
- LINK_CHECKSUM_ASC_FULL = LINK_CHECKSUM_ASC_FULL + ".asc";
-
- LINK_CHECKSUM_MD5_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_ISO + "/" + getDLFilename( VERSION );
- LINK_CHECKSUM_MD5_FULL = LINK_CHECKSUM_MD5_FULL + ".md5";
-
- LINK_CHECKSUM_SHA256_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_ISO + "/" + getDLFilename( VERSION );
- LINK_CHECKSUM_SHA256_FULL = LINK_CHECKSUM_SHA256_FULL + ".sha256";
-
- SF = true;
- OTHER = false;
- ARCHIVE = false;
- ERROR = false;
+ SF = true;
+ OTHER = false;
+ ARCHIVE = false;
+ ERROR = false;
return LINK_FULL;
} else {
@@ -1119,13 +1141,13 @@ function getLink( rel_mode ) {
// Provide the "all_beta.html" as download link.
LINK_FULL = "http://www.openoffice.org/download/all_beta.html";
}
- SF = false;
- OTHER = true;
- ARCHIVE = false;
- ERROR = true;
+ SF = false;
+ OTHER = true;
+ ARCHIVE = false;
+ ERROR = true;
}
-// alertDbg( "getLink()" );
+// alertDbg( "getLink(): End" );
return LINK_FULL;
}
@@ -1137,6 +1159,12 @@ function getLink( rel_mode ) {
function getLinkSel( rel_mode ) {
var error_text;
+ // Reset all error flags.
+ SF = false;
+ OTHER = false;
+ ARCHIVE = false;
+ ERROR = false;
+
// If no release mode was given, assume it is about the stable release.
if( rel_mode == undefined )
rel_mode = 1;
@@ -1173,6 +1201,7 @@ function getLinkSel( rel_mode ) {
+ "<br />Please select version 4.0.1 or older." ];
showErrorMessage( error_text );
+
return;
}
@@ -1185,6 +1214,7 @@ function getLinkSel( rel_mode ) {
+ "<br />Please select version 4.1.0 or newer." ];
showErrorMessage( error_text );
+
return;
}
@@ -1197,6 +1227,7 @@ function getLinkSel( rel_mode ) {
+ "<br />Please select a platform for Windows, Linux or OS X." ];
showErrorMessage( error_text );
+
return;
}
@@ -1223,41 +1254,41 @@ function getLinkSel( rel_mode ) {
+ " (" + RELEASE_MATRIX_LANG[ 2 ] + ")</b> is not available. "
+ "<br />Please choose another language or version." ];
showErrorMessage( error_text );
+
return;
} else {
// If language is supported, assemble the filenames and text for download and checksums.
+
+// alertDbg( "getLinkSel(): Before" );
+
+ getReleaseMatrixPos();
getFilesize( VERSION_SEL );
- getDLFilename( VERSION_SEL );
+ getFilename( VERSION_SEL );
+
+// alertDbg( "getLinkSel(): After" );
- SOURCEFORGE_BASE_URL = SOURCEFORGE + VERSION_SEL + "/binaries/";
- APACHE_DIST_BASE_URL = APACHE_DIST + VERSION_SEL;
+ SOURCEFORGE_BASE_URL = SOURCEFORGE + VERSION_SEL + "/binaries/";
+ APACHE_DIST_BASE_URL = APACHE_DIST + VERSION_SEL;
// Assign the file name (column 3) from the release matrix of language and platform.
- LINK_FULL = SOURCEFORGE_BASE_URL + LANG_SEL + "/" + FILENAME_FULL + "/download";
- LINK_LP = SOURCEFORGE_BASE_URL + LANG_SEL + "/" + FILENAME_LP + "/download";
+ LINK_FULL = SOURCEFORGE_BASE_URL + LANG_SEL + "/" + FILENAME_FULL + "/download";
+ LINK_LP = SOURCEFORGE_BASE_URL + LANG_SEL + "/" + FILENAME_LP + "/download";
- LINK_CHECKSUM_KEYS = "https://people.apache.org/keys/group/openoffice.asc";
- LINK_CHECKSUM_ASC_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL;
- LINK_CHECKSUM_ASC_FULL = LINK_CHECKSUM_ASC_FULL + ".asc";
- LINK_CHECKSUM_MD5_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL;
- LINK_CHECKSUM_MD5_FULL = LINK_CHECKSUM_MD5_FULL + ".md5";
- LINK_CHECKSUM_SHA256_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL;
- LINK_CHECKSUM_SHA256_FULL = LINK_CHECKSUM_SHA256_FULL + ".sha256";
-
- LINK_CHECKSUM_ASC_LP = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP;
- LINK_CHECKSUM_ASC_LP = LINK_CHECKSUM_ASC_LP + ".asc";
- LINK_CHECKSUM_MD5_LP = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP;
- LINK_CHECKSUM_MD5_LP = LINK_CHECKSUM_MD5_LP + ".md5";
- LINK_CHECKSUM_SHA256_LP = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP;
- LINK_CHECKSUM_SHA256_LP = LINK_CHECKSUM_SHA256_LP + ".sha256";
+ LINK_CHK_KEYS = "https://people.apache.org/keys/group/openoffice.asc";
+ LINK_CHK_ASC_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL + ".asc";
+ LINK_CHK_MD5_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL + ".md5";
+ LINK_CHK_SHA256_FULL = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_FULL + ".sha256";
+
+ LINK_CHK_ASC_LP = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP + ".asc";
+ LINK_CHK_MD5_LP = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP + ".md5";
+ LINK_CHK_SHA256_LP = APACHE_DIST_BASE_URL + "/binaries/" + LANG_SEL + "/" + FILENAME_LP + ".sha256";
+
+ SF = true;
+ OTHER = false;
+ ARCHIVE = false;
+ ERROR = false;
- SF = true;
- OTHER = false;
- ARCHIVE = false;
- ERROR = false;
-
- text = "Milestone " + MILESTONE + " | Build ID " + BUILD + " | SVN " + SVN_REV + " | Released: ";
- text = text + REL_DATE;
+ text = "Milestone " + MILESTONE + " | Build ID " + BUILD + " | SVN " + SVN_REV + " | Released: " + REL_DATE;
// Set the values for the both download text buttons.
document.getElementById( "dl_f_lnk" ).href = LINK_FULL;
@@ -1275,19 +1306,19 @@ function getLinkSel( rel_mode ) {
document.getElementById( "dl_f_size" ).innerHTML = FILESIZE_FULL + " MByte";
document.getElementById( "space1" ).innerHTML = " | ";
document.getElementById( "dl_f_chk_hl" ).innerHTML = "Signatures and hashes: ";
- document.getElementById( "dl_f_chk_keys" ).href = LINK_CHECKSUM_KEYS;
+ document.getElementById( "dl_f_chk_keys" ).href = LINK_CHK_KEYS;
document.getElementById( "dl_f_chk_keys" ).innerHTML = "KEYS";
document.getElementById( "dl_f_chk_keys" ).title = "KEYS signature file";
document.getElementById( "space2" ).innerHTML = " , ";
- document.getElementById( "dl_f_chk_asc" ).href = LINK_CHECKSUM_ASC_FULL;
+ document.getElementById( "dl_f_chk_asc" ).href = LINK_CHK_ASC_FULL;
document.getElementById( "dl_f_chk_asc" ).innerHTML = "ASC";
document.getElementById( "dl_f_chk_asc" ).title = "ASC signature for: " + FILENAME_FULL;
document.getElementById( "space3" ).innerHTML = " , ";
- document.getElementById( "dl_f_chk_md5" ).href = LINK_CHECKSUM_MD5_FULL;
+ document.getElementById( "dl_f_chk_md5" ).href = LINK_CHK_MD5_FULL;
document.getElementById( "dl_f_chk_md5" ).innerHTML = "MD5";
document.getElementById( "dl_f_chk_md5" ).title = "MD5 hash for: " + FILENAME_FULL;
document.getElementById( "space4" ).innerHTML = " , ";
- document.getElementById( "dl_f_chk_sha256" ).href = LINK_CHECKSUM_SHA256_FULL;
+ document.getElementById( "dl_f_chk_sha256" ).href = LINK_CHK_SHA256_FULL;
document.getElementById( "dl_f_chk_sha256" ).innerHTML = "SHA256";
document.getElementById( "dl_f_chk_sha256" ).title = "SHA256 hash for: " + FILENAME_FULL;
document.getElementById( "space5" ).innerHTML = " , ";
@@ -1299,19 +1330,19 @@ function getLinkSel( rel_mode ) {
document.getElementById( "dl_lp_size" ).innerHTML = FILESIZE_LP + " MByte";
document.getElementById( "space6" ).innerHTML = " | ";
document.getElementById( "dl_lp_chk_hl" ).innerHTML = "Signatures and hashes: ";
- document.getElementById( "dl_lp_chk_keys" ).href = LINK_CHECKSUM_KEYS;
+ document.getElementById( "dl_lp_chk_keys" ).href = LINK_CHK_KEYS;
document.getElementById( "dl_lp_chk_keys" ).innerHTML = "KEYS";
document.getElementById( "dl_lp_chk_keys" ).title = "KEYS signature file";
document.getElementById( "space7" ).innerHTML = " , ";
- document.getElementById( "dl_lp_chk_asc" ).href = LINK_CHECKSUM_ASC_LP;
+ document.getElementById( "dl_lp_chk_asc" ).href = LINK_CHK_ASC_LP;
document.getElementById( "dl_lp_chk_asc" ).innerHTML = "ASC";
document.getElementById( "dl_lp_chk_asc" ).title = "ASC signature for: " + FILENAME_LP;
document.getElementById( "space8" ).innerHTML = " , ";
- document.getElementById( "dl_lp_chk_md5" ).href = LINK_CHECKSUM_MD5_LP;
+ document.getElementById( "dl_lp_chk_md5" ).href = LINK_CHK_MD5_LP;
document.getElementById( "dl_lp_chk_md5" ).innerHTML = "MD5";
document.getElementById( "dl_lp_chk_md5" ).title = "MD5 hash for: " + FILENAME_LP;
document.getElementById( "space9" ).innerHTML = " , ";
- document.getElementById( "dl_lp_chk_sha256" ).href = LINK_CHECKSUM_SHA256_LP;
+ document.getElementById( "dl_lp_chk_sha256" ).href = LINK_CHK_SHA256_LP;
document.getElementById( "dl_lp_chk_sha256" ).innerHTML = "SHA256";
document.getElementById( "dl_lp_chk_sha256" ).title = "SHA256 hash for: " + FILENAME_LP;
@@ -1322,20 +1353,32 @@ function getLinkSel( rel_mode ) {
document.getElementById( "dl_hlp_img" ).src = "../cachedimages/help-information-icon.png";
document.getElementById( "dl_hlp_img" ).title = "What is the difference between full installation and language pack?";
document.getElementById( "dl_hlp_img" ).alt = "Info";
- document.getElementById( "dl_hlp_img2" ).src = "../cachedimages/help-information-icon.png";
- document.getElementById( "dl_hlp_img2" ).title = "What is the difference between full installation and language pack?";
- document.getElementById( "dl_hlp_img2" ).alt = "Info";
+// document.getElementById( "dl_hlp_img2" ).src = "../cachedimages/help-information-icon.png";
+// document.getElementById( "dl_hlp_img2" ).title = "What is the difference between full installation and language pack?";
+// document.getElementById( "dl_hlp_img2" ).alt = "Info";
document.getElementById( "dl_rpt" ).href = "analyze.html";
document.getElementById( "dl_rpt" ).innerHTML = "Report broken link";
document.getElementById( "dl_rpt" ).title = "Broken download link? Click here to report.";
document.getElementById( "dl_rpt_img" ).src = "../cachedimages/help-report-broken-link-icon.png";
document.getElementById( "dl_rpt_img" ).title = "Broken download link? Click here to report.";
document.getElementById( "dl_rpt_img" ).alt = "Broken link";
- document.getElementById( "dl_rpt_img2" ).src = "../cachedimages/help-report-broken-link-icon.png";
- document.getElementById( "dl_rpt_img2" ).title = "Broken download link? Click here to report.";
- document.getElementById( "dl_rpt_img2" ).alt = "Broken link";
+// document.getElementById( "dl_rpt_img2" ).src = "../cachedimages/help-report-broken-link-icon.png";
+// document.getElementById( "dl_rpt_img2" ).title = "Broken download link? Click here to report.";
+// document.getElementById( "dl_rpt_img2" ).alt = "Broken link";
+
+ // Change CSS styles for all elements with ID in the green and sub-green colored boxes.
+ // Emtpy the values for all elements, make them invisible.
+ for( var i = 0; i < element_ids.length; i++ ) {
+ document.getElementById( element_ids[ i ] ).style.display = "inline";
+ document.getElementById( element_ids[ i ] ).style.cursor = "default";
+ }
+
+ // Set the values for all elements that should not be empty.
+ for( var i = 0; i < element_ids_lnk.length; i++ ) {
+ document.getElementById( element_ids_lnk[ i ] ).style.cursor = "pointer";
+ }
}
- // alertDbg( "getLinkSel()" );
+// alertDbg( "getLinkSel(): End" );
return LINK_FULL;
}
@@ -1448,12 +1491,12 @@ function getPlatform() {
av.indexOf( "i686" ) != -1 ||
av.indexOf( "i586" ) != -1 ||
av.indexOf( "i486" ) != -1 ||
- av.indexOf( "i386" ) != -1 ) { UI_PLATFORM = "Linux 32-bit (RPM)";
+ av.indexOf( "i386" ) != -1 ) { UI_PLATFORM = "Linux 32-bit (x86) (RPM)";
URL_PLATFORM = "Linux_x86_install-rpm";
EXTENSION = ".tar.gz";
if( ua.indexOf( "debian" ) != -1 ||
ua.indexOf( "iceweasel" ) != -1 ||
- ua.indexOf( "ubuntu" ) != -1 ) { UI_PLATFORM = "Linux Debian 32-bit (DEB)";
+ ua.indexOf( "ubuntu" ) != -1 ) { UI_PLATFORM = "Linux Debian 32-bit (x86) (DEB)";
URL_PLATFORM = "Linux_x86_install-deb";
EXTENSION = ".tar.gz";
}
@@ -1467,12 +1510,12 @@ function getPlatform() {
av.indexOf( "_64" ) != -1 ||
av.indexOf( "-64" ) != -1 ||
av.indexOf( "x64" ) != -1 ||
- av.indexOf( "amd64" ) != -1 ) { UI_PLATFORM = "Linux 64-bit (RPM)";
+ av.indexOf( "amd64" ) != -1 ) { UI_PLATFORM = "Linux 64-bit (x86-64) (RPM)";
URL_PLATFORM = "Linux_x86-64_install-rpm";
EXTENSION = ".tar.gz";
if( ua.indexOf( "debian" ) != -1 ||
ua.indexOf( "iceweasel" ) != -1 ||
- ua.indexOf( "ubuntu" ) != -1 ) { UI_PLATFORM = "Linux Debian 64-bit (DEB)";
+ ua.indexOf( "ubuntu" ) != -1 ) { UI_PLATFORM = "Linux Debian 64-bit (x86-64) (DEB)";
URL_PLATFORM = "Linux_x86-64_install-deb";
EXTENSION = ".tar.gz";
}
@@ -1480,7 +1523,7 @@ function getPlatform() {
}
// Mac OS X?
- if( os.indexOf( "mac" ) != -1 ) { UI_PLATFORM = "OS X 64-bit Intel (DMG)";
+ if( os.indexOf( "mac" ) != -1 ) { UI_PLATFORM = "OS X 64-bit (x86-64) (DMG)";
URL_PLATFORM = "MacOS_x86-64_install";
EXTENSION = ".dmg";
// OS X is 10.6 or older?
@@ -1504,75 +1547,72 @@ function getPlatform() {
ERROR = true;
}
- UI_PLATFORM = "Solaris SPARC (PKG)";
- URL_PLATFORM = "";
- EXTENSION = "";
- OLD_PLATFORM = true;
-
return URL_PLATFORM;
}
/*
- * Get file name for download file
- * Depends on version and array-list of "release_matrix.js"
+ * Get positions of platform in release matrix
+ * Depends on platform and array-list of "release_matrix.js"
*/
-function getDLFilename( ver ) {
- // Depending on $ver, a different release matrix has to be used to assemble the download filenames.
- switch( ver ) {
- case "4.1.0":
- // Assemble the filename for download from the release matrix of language and platform (column 0).
- // Product name + version + platform as URL part + language ISO + file extension.
- FILENAME_FULL = "Apache_OpenOffice_" + ver + "_";
- FILENAME_FULL = FILENAME_FULL + release_matrix_410[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ][ 0 ];
- FILENAME_FULL = FILENAME_FULL + "_" + LANG_ISO + EXTENSION;
- FILENAME_LP = "Apache_OpenOffice_" + ver + "_";
- FILENAME_LP = FILENAME_LP + release_matrix_410[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_LP ][ 0 ];
- FILENAME_LP = FILENAME_LP + "_" + LANG_ISO + EXTENSION;
+function getReleaseMatrixPos() {
+ // Depending on $URL_PLATFORM, assign the platform position from the release matrix.
+ switch( URL_PLATFORM ) {
+ case "Linux_x86-64_install-deb":
+ case "Linux_x86-64_langpack-deb":
+ RELEASE_MATRIX_PLATFORM_POS_FULL = 1;
+ RELEASE_MATRIX_PLATFORM_POS_LP = 2;
break;
- case "4.0.1":
- // Assemble the filename for download from the release matrix of language and platform (column 0).
- // Product name + version + platform as URL part + language ISO + file extension.
- FILENAME_FULL = "Apache_OpenOffice_" + ver + "_";
- FILENAME_FULL = FILENAME_FULL + release_matrix_401[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ][ 0 ];
- FILENAME_FULL = FILENAME_FULL + "_" + LANG_ISO + EXTENSION;
- FILENAME_LP = "Apache_OpenOffice_" + ver + "_";
- FILENAME_LP = FILENAME_LP + release_matrix_401[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_LP ][ 0 ];
- FILENAME_LP = FILENAME_LP + "_" + LANG_ISO + EXTENSION;
+ case "Linux_x86-64_install-rpm":
+ case "Linux_x86-64_langpack-rpm":
+ RELEASE_MATRIX_PLATFORM_POS_FULL = 3;
+ RELEASE_MATRIX_PLATFORM_POS_LP = 4;
break;
- case "4.0.0":
- // Todo: Implement a "release_matrix_400" array in the "release_matrix.js" file.
- FILENAME_FULL = "4.0.0 file names are not yet available";
- FILENAME_LP = "4.0.0 file names are not yet available";
+ case "Linux_x86_install-deb":
+ case "Linux_x86_langpack-deb":
+ RELEASE_MATRIX_PLATFORM_POS_FULL = 5;
+ RELEASE_MATRIX_PLATFORM_POS_LP = 6;
+ break;
+ case "Linux_x86_install-rpm":
+ case "Linux_x86_langpack-rpm":
+ RELEASE_MATRIX_PLATFORM_POS_FULL = 7;
+ RELEASE_MATRIX_PLATFORM_POS_LP = 8;
+ break;
+ case "MacOS_x86-64_install":
+ case "MacOS_x86-64_langpack":
+ RELEASE_MATRIX_PLATFORM_POS_FULL = 9;
+ RELEASE_MATRIX_PLATFORM_POS_LP = 10;
+ break;
+ case "MacOS_x86_install":
+ case "MacOS_x86_langpack":
+ RELEASE_MATRIX_PLATFORM_POS_FULL = 9;
+ RELEASE_MATRIX_PLATFORM_POS_LP = 10;
+ break;
+ case "Win_x86_install":
+ case "Win_x86_langpack":
+ RELEASE_MATRIX_PLATFORM_POS_FULL = 11;
+ RELEASE_MATRIX_PLATFORM_POS_LP = 12;
break;
default:
- FILENAME_FULL = "";
- FILENAME_LP = "";
- ERROR = true;
+ RELEASE_MATRIX_PLATFORM_POS_FULL = 0;
+ RELEASE_MATRIX_PLATFORM_POS_LP = 0;
+ ERROR = true;
}
-/*
- // Assemble the filename for download from the release matrix of language and platform (column 0).
- // Product name + version + platform as URL part + language ISO + file extension.
- FILENAME_FULL = "Apache_OpenOffice_" + ver + "_";
- FILENAME_FULL = FILENAME_FULL + release_matrix_410[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ][ 0 ];
- FILENAME_FULL = FILENAME_FULL + "_" + LANG_ISO + EXTENSION;
- FILENAME_LP = "Apache_OpenOffice_" + ver + "_";
- FILENAME_LP = FILENAME_LP + release_matrix_410[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_LP ][ 0 ];
- FILENAME_LP = FILENAME_LP + "_" + LANG_ISO + EXTENSION;
-*/
-// alert( ver + "\n\n" + FILENAME_FULL + "\n\n" + FILENAME_LP );
- return FILENAME_FULL;
+ return RELEASE_MATRIX_PLATFORM_POS_FULL;
}
/*
* Get file name for download file
* Depends on version and array-list of "release_matrix.js"
*/
-function getChkFilename( ver ) {
- // Depending on $ver, a different release matrix has to be used to assemble the checksum filenames.
+function getFilename( ver ) {
+ // Depending on $ver, a different release matrix has to be used to assemble the download filenames.
switch( ver ) {
case "4.1.0":
- // Assemble the filename for checksum from the release matrix of language and platform (column 0).
+ // Assign all values from the release matrix of language and platform.
+ RELEASE_MATRIX_PLATFORM = release_matrix_410[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ];
+
+ // Assemble filename for download from release matrix of language and platform (column 0).
// Product name + version + platform as URL part + language ISO + file extension.
FILENAME_FULL = "Apache_OpenOffice_" + ver + "_";
FILENAME_FULL = FILENAME_FULL + release_matrix_410[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ][ 0 ];
@@ -1582,7 +1622,10 @@ function getChkFilename( ver ) {
FILENAME_LP = FILENAME_LP + "_" + LANG_ISO + EXTENSION;
break;
case "4.0.1":
- // Assemble the filename for checksum from the release matrix of language and platform (column 0).
+ // Assign all values from the release matrix of language and platform.
+ RELEASE_MATRIX_PLATFORM = release_matrix_401[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ];
+
+ // Assemble filename for download from release matrix of language and platform (column 0).
// Product name + version + platform as URL part + language ISO + file extension.
FILENAME_FULL = "Apache_OpenOffice_" + ver + "_";
FILENAME_FULL = FILENAME_FULL + release_matrix_401[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ][ 0 ];
@@ -1592,9 +1635,19 @@ function getChkFilename( ver ) {
FILENAME_LP = FILENAME_LP + "_" + LANG_ISO + EXTENSION;
break;
case "4.0.0":
+ // Assign all values from the release matrix of language and platform.
+// RELEASE_MATRIX_PLATFORM = release_matrix_400[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ];
+
// Todo: Implement a "release_matrix_400" array in the "release_matrix.js" file.
- FILENAME_FULL = "4.0.0 file names are not yet available";
- FILENAME_LP = "4.0.0 file names are not yet available";
+// FILENAME_FULL = "Apache_OpenOffice_" + ver + "_";
+// FILENAME_FULL = FILENAME_FULL + release_matrix_400[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ][ 0 ];
+// FILENAME_FULL = FILENAME_FULL + "_" + LANG_ISO + EXTENSION;
+// FILENAME_LP = "Apache_OpenOffice_" + ver + "_";
+// FILENAME_LP = FILENAME_LP + release_matrix_400[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_LP ][ 0 ];
+// FILENAME_LP = FILENAME_LP + "_" + LANG_ISO + EXTENSION;
+ FILENAME_FULL = "";
+ FILENAME_LP = "";
+ ERROR = true;
break;
default:
FILENAME_FULL = "";
@@ -1602,7 +1655,7 @@ function getChkFilename( ver ) {
ERROR = true;
}
/*
- // Assemble the filename for checksum from the release matrix of language and platform (column 0).
+ // Assemble the filename for download from the release matrix of language and platform (column 0).
// Product name + version + platform as URL part + language ISO + file extension.
FILENAME_FULL = "Apache_OpenOffice_" + ver + "_";
FILENAME_FULL = FILENAME_FULL + release_matrix_410[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ][ 0 ];
@@ -1622,6 +1675,7 @@ function getChkFilename( ver ) {
*/
function getFilesize( ver ) {
// Depending on $URL_PLATFORM, assign the platform position from the release matrix.
+/*
switch( URL_PLATFORM ) {
case "Linux_x86-64_install-deb":
case "Linux_x86-64_langpack-deb":
@@ -1659,33 +1713,29 @@ function getFilesize( ver ) {
RELEASE_MATRIX_PLATFORM_POS_LP = 12;
break;
default:
- RELEASE_MATRIX_PLATFORM_POS_FULL = -1;
- RELEASE_MATRIX_PLATFORM_POS_LP = -1;
+ RELEASE_MATRIX_PLATFORM_POS_FULL = 0;
+ RELEASE_MATRIX_PLATFORM_POS_LP = 0;
ERROR = true;
}
-
+*/
// If a platform was found and no error occurred, assign the array data and filesize from the release matrix.
- if( RELEASE_MATRIX_PLATFORM_POS_FULL > -1 && !ERROR ) {
+ if( RELEASE_MATRIX_PLATFORM_POS_FULL > 0 && !ERROR ) {
// Depending on $ver, a different release matrix has to be used to get the filesizes.
switch( ver ) {
case "4.1.0":
- // Assign all values from the release matrix of language and platform.
- RELEASE_MATRIX_PLATFORM = release_matrix_410[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ];
-
// Assign the file size (column 2) from the release matrix of language and platform.
FILESIZE_FULL = release_matrix_410[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ][ 2 ];
FILESIZE_LP = release_matrix_410[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_LP ][ 2 ];
- break;
+ break;
case "4.0.1":
- // Assign all values from the release matrix of language and platform.
- RELEASE_MATRIX_PLATFORM = release_matrix_401[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ];
-
// Assign the file size (column 2) from the release matrix of language and platform.
FILESIZE_FULL = release_matrix_401[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ][ 2 ];
FILESIZE_LP = release_matrix_401[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_LP ][ 2 ];
break;
case "4.0.0":
// Todo: Implement a "release_matrix_400" array in the "release_matrix.js" file.
+// FILESIZE_FULL = release_matrix_400[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_FULL ][ 2 ];
+// FILESIZE_LP = release_matrix_400[ LANG_ISO ][ RELEASE_MATRIX_PLATFORM_POS_LP ][ 2 ];
FILESIZE_FULL = 0;
FILESIZE_LP = 0;
ERROR = true;