Author: marcus
Date: Sat Jun 14 08:00:06 2014
New Revision: 1602569

URL: http://svn.apache.org/r1602569
Log:
Get the download box from a separate file, updated nav bar

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=1602569&r1=1602568&r2=1602569&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/index.html (original)
+++ openoffice/ooo-site/trunk/content/download/test/index.html Sat Jun 14 
08:00:06 2014
@@ -14,6 +14,7 @@
   <script type="text/javascript" src="msg_prop_l10n_en.js"></script>
   <script type="text/javascript" src="languages.js"></script>
   <script type="text/javascript" src="release_matrix.js"></script>
+  <script type="text/javascript" src="boxed_download.js"></script>
   <script type="text/javascript" src="download.js"></script>
   <style type="text/css">
   /* <![CDATA[ */
@@ -64,108 +65,14 @@
   // Set a specific language ISO code to force to assemble a certain localized 
build as download link.
   // Changed: The variable can now be found in the 
"msg_prop_l10n_<ISO_code>.js".
 
-  // 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='" + l10n_download_green_box_headline_title + "'>"    + 
l10n_download_green_box_headline_text + "</a>"
-    + "</h2>"
-
-    // Select text.
-    + "<p style='padding-bottom: 0px;'>"
-      + "<a title='" + l10n_download_green_box_subtext1_title + "'>("   + 
l10n_download_green_box_subtext1_text + ")</a>"
-      + "<a title='" + l10n_download_green_box_subtext2_title + "'><b>" + 
l10n_download_green_box_subtext2_text + ":</b></a>"
-    + "</p>"
-
-    // Select boxes.
-    + "<form name='download'>"
-      + "<select class='sel-os' id='os' name='os' ' onchange='getLinkSel()'"
-        + "title='" + l10n_download_green_box_selectbox_os_title + "'>"
-      + "</select>"
-      + "<select class='sel-lang' id='lang' name='lang' 
onchange='getLinkSel()'"
-        + "title='" + l10n_download_green_box_selectbox_lang_title + "' >"
-      + "</select>"
-      + "<select class='sel-ver' id='ver' name='ver' onchange='getLinkSel()'"
-        + "title='" + l10n_download_green_box_selectbox_ver_title + "'>"
-      + "</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 and notes.
-      + "<a id='dl_rel_info'     style='text-decoration: none;'></a>"
-      + "<a id='dl_rel_notes'    style='text-decoration: underline;' href='' 
title='' target='_blank'></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>" );
+  // Get the download box from a separate file.
+  createDownloadBox();
 
   // Fill the select boxes and wait for the user's choice.
   init( 1 );
 
   entourage.initialize();
+
   //-->
   </script>
 
@@ -265,21 +172,18 @@
   <!--
   document.write( "<h3>" + l10n_nav_headline_1_text + "</h3>"
   + "<ul>"
-    + "<li><a href='http://www.openoffice.org/development/releases/index.html'"
-    + "title='" + l10n_nav_release_notes_title + "'>" + 
l10n_nav_release_notes_text + "</a></li>"
     + "<li><a 
href='http://www.openoffice.org/dev_docs/source/sys_reqs_aoo40.html'"
-    + "title='" + l10n_nav_sysreq_title + "'>"
-    + l10n_nav_sysreq_text + "</a></li>"
-    + "<li><a href='http://www.openoffice.org/download/checksums.html'"
-    + "title='" + l10n_nav_checksum_title + "'>" + l10n_nav_checksum_text + 
"</a></li>"
+    + "title='" + l10n_nav_sysreq_title + "'>" + l10n_nav_sysreq_text + 
"</a></li>"
     + "<li><a href='../../license.html'"
     + "title='" + l10n_nav_license_title + "'>" + l10n_nav_license_text + 
"</a></li>"
     + "<li><a href='http://openoffice.apache.org/downloads.html'"
     + "title='" + l10n_nav_source_title + "'>" + l10n_nav_source_text + "</a>"
     + "<li><a 
href='http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO'"
     + "title='" + l10n_nav_build_title + "'>" + l10n_nav_build_text + 
"</a></li>"
-    + "<li><a href='http://www.openoffice.org/download/sdk/index.html'"
+    + "<li><a href='http://openoffice.apache.org/downloads.html'"
     + "title='" + l10n_nav_sdk_title + "'>" + l10n_nav_sdk_text + "</a></li>"
+    + "<li><a href='http://www.openoffice.org/download/devbuilds.html'"
+    + "title='" + l10n_nav_devbuilds_title + "'>" + l10n_nav_devbuilds_text + 
"</a></li>"
   + "</ul>"
 
   + "<h3>" + l10n_nav_headline_2_text + "</h3>"
@@ -314,8 +218,6 @@
     + "title='" + l10n_nav_porting_title + "'>" + l10n_nav_porting_text + 
"</a><br /></li>"
     + "<li><a href='http://www.openoffice.org/download/archive.html'"
     + "title='" + l10n_nav_archive_title + "'>" + l10n_nav_archive_text + 
"</a><br /></li>"
-    + "<li><a href='http://www.openoffice.org/download/devbuilds.html'"
-    + "title='" + l10n_nav_devbuilds_title + "'>" + l10n_nav_devbuilds_text + 
"</a></li>"
   + "</ul>"
 
   + "<div id='SupportedAndSupporters'>"


Reply via email to