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 2013/07/28 23:34:28 UTC

svn commit: r1507854 - /openoffice/ooo-site/trunk/content/download/test/download.js

Author: marcus
Date: Sun Jul 28 21:34:27 2013
New Revision: 1507854

URL: http://svn.apache.org/r1507854
Log:
#122877# Android was recognized as support platform, reported by Kay Schenk

Modified:
    openoffice/ooo-site/trunk/content/download/test/download.js

Modified: openoffice/ooo-site/trunk/content/download/test/download.js
URL: http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/content/download/test/download.js?rev=1507854&r1=1507853&r2=1507854&view=diff
==============================================================================
--- openoffice/ooo-site/trunk/content/download/test/download.js (original)
+++ openoffice/ooo-site/trunk/content/download/test/download.js Sun Jul 28 21:34:27 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 ) {