incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1332437 - /incubator/ooo/ooo-site/trunk/content/download/test/analyze.html
Date Mon, 30 Apr 2012 22:04:58 GMT
Author: marcus
Date: Mon Apr 30 22:04:58 2012
New Revision: 1332437

URL: http://svn.apache.org/viewvc?rev=1332437&view=rev
Log:
Updated the test webpage to print browser data

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

Modified: incubator/ooo/ooo-site/trunk/content/download/test/analyze.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/test/analyze.html?rev=1332437&r1=1332436&r2=1332437&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/test/analyze.html (original)
+++ incubator/ooo/ooo-site/trunk/content/download/test/analyze.html Mon Apr 30 22:04:58 2012
@@ -3,32 +3,49 @@
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <title>OpenOffice.org Downloads</title>
-  <script type="text/javascript">
-  <!--
-  var VERSION = "3.1.0";
-  //-->
-  </script>
-  <style type="text/css">
-/* <![CDATA[ */
-/*-------------------- Exceptions on standard css -----------------------*/
-@import "../exceptions.css";
-/* ]]> */
-  </style>
+  <script type="text/javascript" src="../globalvars.js"></script>
   <script type="text/javascript" src="../languages.js"></script>
   <script type="text/javascript" src="../download2.js"></script>
+  <style type="text/css">
+  /* <![CDATA[ */
+  /*-------------------- Exceptions on standard css -----------------------*/
+  @import "../styles.css";
+  @import "../exceptions.css";
+  /* ]]> */
+  </style>
 </head>
 
 <body>
+
 <script type="text/javascript">
 
-  document.write( "Nav. platform: " + navigator.platform + "<br/>" );
-  document.write( "UserAgent: " + navigator.userAgent + "<br/>" );
-  document.write( "UserAgent lower: " + navigator.userAgent.toLowerCase() + "<br/>"
);
-  document.write( "UserAgent lower: " + navigator.userAgent.toLowerCase().indexOf( "ubuntus"
) + "<br/>" );
-  document.write( "Link: " + getLink( VERSION ) + "<br/>" );
-  document.write( "Platform: " + getPlatform() + "<br/>" );
-  document.write( "Language: " + getLanguage() + "<br/>" );
+  document.write( "navigator.platform: "             + navigator.platform + "<br/>"
);
+  document.write( "navigator.UserAgent: "            + navigator.userAgent + "<br/>"
);
+  document.write( "navigator.UserAgent lower case: " + navigator.userAgent.toLowerCase()
+ "<br/>" );
+  document.write( "navigator.UserAgent lower case: " + navigator.userAgent.toLowerCase().indexOf(
"ubuntu" ) + "<br/>" );
+  document.write( "getLink(): "                      + getLink( VERSION ) + "<br/>"
);
+  document.write( "getPlatform(): "                  + getPlatform() + "<br/>" );
+  document.write( "getLanguage(): "                  + getLanguage() + "<br/>" );
+
+  document.write( "<br/><br/>" );
 
+  document.write( "<table style='text-align: left' border='1'><tbody>" );
+  document.write( "<tr><td><small>window.location.href    </small></td><td><small>"
+ window.location.href     + "</small></td></tr>" );
+  document.write( "<tr><td><small>navigator.platform      </small></td><td><small>"
+ navigator.platform       + "</small></td></tr>" );
+  document.write( "<tr><td><small>navigator.platform.toLowerCase() </small></td><td><small>"
+ navigator.platform.toLowerCase() + "</small></td></tr>" );
+  document.write( "<tr><td><small>navigator.userAgent     </small></td><td><small>"
+ navigator.userAgent      + "</small></td></tr>" );
+  document.write( "<tr><td><small>navigator.userAgent.toLowerCase()</small></td><td><small>"
+ navigator.userAgent.toLowerCase() + "</small></td></tr>" );
+  document.write( "<tr><td><small>navigator.language      </small></td><td><small>"
+ navigator.language       + "</small></td></tr>" );
+  document.write( "<tr><td><small>navigator.userLanguage  </small></td><td><small>"
+ navigator.userLanguage   + "</small></td></tr>" );
+  document.write( "<tr><td><small>navigator.systemLanguage</small></td><td><small>"
+ navigator.systemLanguage + "</small></td></tr>" );
+  if ( navigator.javaEnabled() ) {
+    document.write( "<tr><td><small>navigator.javaEnabled()</small></td><td><small>Yes</small></td></tr>"
);
+  } else {
+    document.write( "<tr><td><small>navigator.javaEnabled()</small></td><td><small>No
</small></td></tr>" );
+  }
+  document.write( "</tbody></table><br/><br/>" );
 </script>
+
 </body>
 </html>
+



Mime
View raw message