incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1386587 - /incubator/ooo/ooo-site/trunk/content/download/test/new/analyze.html
Date Mon, 17 Sep 2012 12:44:47 GMT
Author: marcus
Date: Mon Sep 17 12:44:47 2012
New Revision: 1386587

URL: http://svn.apache.org/viewvc?rev=1386587&view=rev
Log:
Added green box for testing the download link and text, reworked the table to reflect the
latest changes in 'download.js'

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

Modified: incubator/ooo/ooo-site/trunk/content/download/test/new/analyze.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/test/new/analyze.html?rev=1386587&r1=1386586&r2=1386587&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/test/new/analyze.html (original)
+++ incubator/ooo/ooo-site/trunk/content/download/test/new/analyze.html Mon Sep 17 12:44:47
2012
@@ -17,45 +17,80 @@
 
 <body>
 
-<script type="text/javascript">
-  document.write( "<table style='text-align: left' border='1'><tbody>" );
-  document.write( "<tr><td><b>Variables from the browser		</b></td><td><b>Values</b></td></tr>"
);
-  // document.write( "<tr><td>window.location.href			</td><td>" +
window.location.href			+ "</td></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.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( "<tr><td><b>JavaScript functions from the DL scripts
</b></td><td><b>Return values</b></td></tr>" );
-  document.write( "<tr><td>getArray( LANGUAGE )				</td><td>" + getArray(
"" )				+ "</td></tr>" );
-  document.write( "<tr><td>getLanguageISO( LANGUAGE )			</td><td>"
+ getLanguageISO( "" )			+ "</td></tr>" );
-  document.write( "<tr><td>Native language name				</td><td>" + NATIVE_LANG
			+ "</td></tr>" );
-  document.write( "<tr><td>getPlatform()				</td><td>" + getPlatform()
			+ "</td></tr>" );
-  document.write( "<tr><td>Native platform name				</td><td>" + PLATFORM
				+ "</td></tr>" );
-  document.write( "<tr><td>getFilename( VERSION, LANGUAGE )		</td><td>"
+ getFilename( VERSION, "" )			+ "</td></tr>" );
-  document.write( "<tr><td>Native file extension name			</td><td>"
+ EXTENSION					+ "</td></tr>" );
-  document.write( "<tr><td>getChecksum( VERSION, LANGUAGE, HASH )	</td><td>"
+ getChecksum( VERSION, "", "md5" )		+ "</td></tr>" );
-  document.write( "<tr><td>getLink( VERSION, LANGUAGE )			</td><td>"
+ getLink( VERSION, "" )			+ "</td></tr>" );
-  document.write( "<tr><td>hasMirrorLink()				</td><td>" + hasMirrorLink()
			+ "</td></tr>" );
-  document.write( "</tbody></table><br/><br/>" );
-</script>
+<div class="optionset">
+
+<!-- Green: Stable release -->
+  <script type="text/javascript">  
+  <!--
+  // Set a specific language ISO code to force to assemble a certain localized build as download
URL
+  var NL_LANGUAGE = "";
+  var LINK        = getLink();
+
+  if ( hasMirrorLink() ) {
+    // Download directly from a mirror 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='" + LINK + "'>Download
Apache OpenOffice " + VERSION + "</a></h2>"
+    + "<p><a href='" + LINK + "' title='" + LINK + "'>Click here to start the
download for <b>" + UI_PLATFORM + "</b>"
+    + " and <b>" + LANG_ARRAY[ 2 ] + "</b>.</a></p>" );
+  } else {
+    // Download from an alternative webpage as hasMirrorLink() == false.
+    document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
+    + LANG_ARRAY[ 4 ] + "');" + "return false;\">" );
+    document.write( "<h2><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[
4 ] + "'>Apache OpenOffice " + VERSION
+    + "</a></h2>"
+    + "<p><a href='" + LANG_ARRAY[ 4 ] + "' title='" + LANG_ARRAY[ 4 ] + "'>A
release for <b>" + UI_PLATFORM + "</b>"
+    + " and <b>" + LANG_ARRAY[ 2 ] + "</b> is not available. Click to choose
from alternative download webpage.</a></p>" );
+  }
+
+  document.write( "</div>" );
+  // -->
+  </script>
+
+  <p>&nbsp;</p>
+</div>
+
+<div>
+  <script type="text/javascript">
+    document.write( "<table border='1' style='border-collapse:collapse; border-spacing:
2px; float: left'><tbody>" );
+    document.write( "<tr><td><b>Variables from the browser		</b></td><td><b>Values</b></td></tr>"
);
+    // document.write( "<tr><td>window.location.href			</td><td>"
+ window.location.href			+ "</td></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.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( "<tr><td><b>JavaScript functions and variables</b></td><td><b>Values</b></td></tr>"
);
+    document.write( "<tr><td>Native language name			</td><td>" +
NATIVE_LANG				+ "</td></tr>" );
+    document.write( "<tr><td>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>Native platform name			</td><td>" +
UI_PLATFORM				+ "</td></tr>" );
+    document.write( "<tr><td>Mirror platform name			</td><td>" +
PLATFORM					+ "</td></tr>" );
+    document.write( "<tr><td>Native file name				</td><td>" + FILENAME
				+ "</td></tr>" );
+    document.write( "<tr><td>Native file extension			</td><td>" +
EXTENSION					+ "</td></tr>" );
+    document.write( "<tr><td>Return value of getLink()			</td><td>"
+ getLink()					+ "</td></tr>" );
+    document.write( "<tr><td>Checksum file (here for MD5)		</td><td>"
+ CHECKSUM_MD5				+ "</td></tr>" );
+    document.write( "<tr><td>hasMirrorLink()				</td><td>" + hasMirrorLink()
			+ "</td></tr>" );
+    document.write( "</tbody></table><br/><br/>" );
+  </script>
+</div>
 
 </body>
 </html>



Mime
View raw message