You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by bu...@apache.org on 2013/07/28 23:34:59 UTC

svn commit: r871613 - in /websites/staging/ooo-site/trunk: cgi-bin/ content/ content/download/test/download.js

Author: buildbot
Date: Sun Jul 28 21:34:58 2013
New Revision: 871613

Log:
Staging update by buildbot for ooo-site

Modified:
    websites/staging/ooo-site/trunk/cgi-bin/   (props changed)
    websites/staging/ooo-site/trunk/content/   (props changed)
    websites/staging/ooo-site/trunk/content/download/test/download.js

Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Jul 28 21:34:58 2013
@@ -1 +1 @@
-1507841
+1507854

Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Jul 28 21:34:58 2013
@@ -1 +1 @@
-1507841
+1507854

Modified: websites/staging/ooo-site/trunk/content/download/test/download.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/test/download.js (original)
+++ websites/staging/ooo-site/trunk/content/download/test/download.js Sun Jul 28 21:34:58 2013
@@ -178,6 +178,7 @@ function getPlatform() {
 
 	var os	= navigator.platform.toLowerCase();
 	var ua	= navigator.userAgent.toLowerCase();
+	var av	= navigator.appVersion.toLowerCase();
 
 	if ( os ) {
 
@@ -201,29 +202,32 @@ function getPlatform() {
 	  if ( os.indexOf( "qnx"		) != -1 )	UI_PLATFORM	= "QNX";
 	  if ( os.indexOf( "x11"		) != -1 )	UI_PLATFORM	= "an unknown OS with X11 support";
 
+	  if ( os.indexOf( "arm"		) != -1 )	UI_PLATFORM	= "ARM mobile/tablet devices";
+
 	  if ( ua.indexOf( "ppc"		) != -1 )	UI_PLATFORM	= "Mac OS PPC (DMG)";
 	  if ( ua.indexOf( "iphone"		) != -1 ||
 	       ua.indexOf( "ipad"		) != -1 ||
-	       ua.indexOf( "ipod"		) != -1 )	UI_PLATFORM	= "Apple mobile device (iPhone/iPad/iPod)";
-	  if ( ua.indexOf( "android"		) != -1 )	UI_PLATFORM	= "Android mobile device";
-	  if ( ua.indexOf( "blackberry"		) != -1 )	UI_PLATFORM	= "a Blackberry Smartphone";
-	  if ( ua.indexOf( "nokia"		) != -1 )	UI_PLATFORM	= "a Nokia Mobile device";
-	  if ( ua.indexOf( "symbian"		) != -1 )	UI_PLATFORM	= "a Mobilephone with Symbian OS";
-	  if ( ua.indexOf( "symbos"		) != -1 )	UI_PLATFORM	= "a Mobilephone with Symbian OS";
-	  if ( ua.indexOf( "s60"	        ) != -1 )	UI_PLATFORM	= "a Mobilephone with Series60/S60 support";
-	  if ( ua.indexOf( "series60"		) != -1 )	UI_PLATFORM	= "a Mobilephone with Series60/S60 support";
-	  if ( ua.indexOf( "palm"		) != -1 )	UI_PLATFORM	= "a Mobilephone with Palm OS";
-	  if ( ua.indexOf( "webos"		) != -1 )	UI_PLATFORM	= "a Mobilephone with Palm webOS";
-	  if ( ua.indexOf( "pike"		) != -1 )	UI_PLATFORM	= "a Mobilephone with Pike support";
-	  if ( ua.indexOf( "ce.net"		) != -1 )	UI_PLATFORM	= "a Mobilephone with Windows CE";
-	  if ( ua.indexOf( "widerweb"		) != -1 )	UI_PLATFORM	= "a Mobilephone with WiderWeb support";
-	  if ( ua.indexOf( "brew"		) != -1 )	UI_PLATFORM	= "a Smartphone with BREW support";
-	  if ( ua.indexOf( "hiptop"		) != -1 )	UI_PLATFORM	= "a Smartphone with Hiptop support";
-
-	  if ( ua.indexOf( "playstation"	) != -1 )	UI_PLATFORM	= "a Sony Playstation";
-	  if ( ua.indexOf( "psp"		) != -1 )	UI_PLATFORM	= "a Sony Playstation Portable";
-	  if ( ua.indexOf( "nintendo"		) != -1 )	UI_PLATFORM	= "a Nintendo game console";
-	  if ( ua.indexOf( "wii"		) != -1 )	UI_PLATFORM	= "a Wii game console";
+	       ua.indexOf( "ipod"		) != -1 )	UI_PLATFORM	= "Apple mobile devices (iPhone/iPad/iPod)";
+	  if ( ua.indexOf( "android"		) != -1 ||
+	     ( av.indexOf( "android"		) != -1 )	UI_PLATFORM	= "Android mobile/tablet devices";	
+	  if ( ua.indexOf( "blackberry"		) != -1 )	UI_PLATFORM	= "Blackberry smartphones";
+	  if ( ua.indexOf( "nokia"		) != -1 )	UI_PLATFORM	= "Nokia mobile devices";
+	  if ( ua.indexOf( "symbian"		) != -1 )	UI_PLATFORM	= "mobile phones with Symbian OS";
+	  if ( ua.indexOf( "symbos"		) != -1 )	UI_PLATFORM	= "mobile phones with Symbian OS";
+	  if ( ua.indexOf( "s60"	        ) != -1 )	UI_PLATFORM	= "mobile phones with Series60/S60 support";
+	  if ( ua.indexOf( "series60"		) != -1 )	UI_PLATFORM	= "mobile phones with Series60/S60 support";
+	  if ( ua.indexOf( "palm"		) != -1 )	UI_PLATFORM	= "mobile phones with Palm OS";
+	  if ( ua.indexOf( "webos"		) != -1 )	UI_PLATFORM	= "mobile phones with Palm webOS";
+	  if ( ua.indexOf( "pike"		) != -1 )	UI_PLATFORM	= "mobile phones with Pike support";
+	  if ( ua.indexOf( "ce.net"		) != -1 )	UI_PLATFORM	= "mobile phones with Windows CE";
+	  if ( ua.indexOf( "widerweb"		) != -1 )	UI_PLATFORM	= "mobile phones with WiderWeb support";
+	  if ( ua.indexOf( "brew"		) != -1 )	UI_PLATFORM	= "smartphones with BREW support";
+	  if ( ua.indexOf( "hiptop"		) != -1 )	UI_PLATFORM	= "smartphones with Hiptop support";
+
+	  if ( ua.indexOf( "playstation"	) != -1 )	UI_PLATFORM	= "Sony Playstation";
+	  if ( ua.indexOf( "psp"		) != -1 )	UI_PLATFORM	= "Sony Playstation Portable";
+	  if ( ua.indexOf( "nintendo"		) != -1 )	UI_PLATFORM	= "Nintendo game console";
+	  if ( ua.indexOf( "wii"		) != -1 )	UI_PLATFORM	= "Wii game console";
 
 	  // If variable is already filled, then something was recognized and no more work is need
 	  if ( UI_PLATFORM ) {