X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F03_plugin%2F00_XPlugin.js;fp=0.6.x%2Fjs%2F03_plugin%2F00_XPlugin.js;h=2a9495cf3b4556d3d3e3ec16d54ccffdba569fcd;hb=a130cabd01fde8865990a59d849f5d5d08ed2119;hp=f3868f8e5d0f60925224f065ba10cd47777f44a0;hpb=9e30a8480de03f0b36d2411a0ecb7f1d0f47b61f;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/03_plugin/00_XPlugin.js b/0.6.x/js/03_plugin/00_XPlugin.js index f3868f8..2a9495c 100644 --- a/0.6.x/js/03_plugin/00_XPlugin.js +++ b/0.6.x/js/03_plugin/00_XPlugin.js @@ -17,9 +17,9 @@ * flash player 11.1, Win2k, Android 2.x-4.x */ var X_Pulgin_FLASH_VERSION = - !X_UA.IE && navigator.plugins[ 'Shockwave Flash' ] ? + !X_UA[ 'IE' ] && navigator.plugins[ 'Shockwave Flash' ] ? parseFloat( navigator.plugins[ 'Shockwave Flash' ].version ) : - !X_UA.IE4 && !X_UA.IE5 && X_UA.ActiveX ? (function(){ + !X_UA[ 'IE4' ] && !X_UA[ 'IE5' ] && X_UA[ 'ActiveX' ] ? (function(){ var obj = eval( 'var a,e;try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}a' ), ver = obj && obj.GetVariable( '$version' ).split( ' ' ).join( '.' ); return parseFloat( ver ) || 0; @@ -27,7 +27,7 @@ var X_Pulgin_FLASH_VERSION = 0, X_Pulgin_FLASH_ENABLED = - X_UA.ActiveX ? !!X_Pulgin_FLASH_VERSION : + X_UA[ 'ActiveX' ] ? !!X_Pulgin_FLASH_VERSION : navigator.mimeTypes && navigator.mimeTypes[ 'application/x-shockwave-flash' ] && navigator.mimeTypes[ 'application/x-shockwave-flash' ].enabledPlugin, @@ -36,38 +36,38 @@ var X_Pulgin_FLASH_VERSION = * ie11 の 互換モード(8,7)では、Silverlight が動作しない? */ X_Pulgin_SILVER_LIGHT_VERSION = - !X_UA.IE && navigator.plugins[ 'Silverlight Plug-In' ] ? + !X_UA[ 'IE' ] && navigator.plugins[ 'Silverlight Plug-In' ] ? parseFloat( navigator.plugins[ 'Silverlight Plug-In' ].version ) : - X_UA.ActiveX && 6 <= X_UA.IE && !X_UA.IECompat ? (function(){ + X_UA[ 'ActiveX' ] && 6 <= X_UA[ 'IE' ] && !X_UA[ 'IECompat' ] ? (function(){ return eval( 'var a,i=0;try{a=new ActiveXObject("AgControl.AgControl");for(i=5;i;--i)if(a.IsVersionSupported(i+".0"))break;}catch(e){i=0}i' ); })() : 0, X_Pulgin_SILVER_LIGHT_ENABLED = - X_UA.ActiveX ? !!X_Pulgin_SILVER_LIGHT_VERSION : + X_UA[ 'ActiveX' ] ? !!X_Pulgin_SILVER_LIGHT_VERSION : navigator.mimeTypes && navigator.mimeTypes[ 'application/x-silverlight' ] && navigator.mimeTypes[ 'application/x-silverlight' ].enabledPlugin, //http://docs.unity3d.ru/Manual/Detecting%20the%20Unity%20Web%20Player%20using%20browser%20scripting.html X_Pulgin_UNITY_VERSION = - !X_UA.IE && navigator.plugins[ 'Unity Player' ] ? + !X_UA[ 'IE' ] && navigator.plugins[ 'Unity Player' ] ? parseFloat( navigator.plugins[ 'Unity Player' ].version ) : - !X_UA.IE4 && !X_UA.IE5 && X_UA.ActiveX ? (function(){ + !X_UA[ 'IE4' ] && !X_UA[ 'IE5' ] && X_UA[ 'ActiveX' ] ? (function(){ var obj = eval( 'var a,e;try{a=new ActiveXObject("UnityWebPlayer.UnityWebPlayer.1")}catch(e){}a' ); return obj ? parseFloat( obj.GetPluginVersion() ) : 0; })() : 0, X_Pulgin_UNITY_ENABLED = - X_UA.ActiveX ? !!X_Pulgin_UNITY_VERSION : + X_UA[ 'ActiveX' ] ? !!X_Pulgin_UNITY_VERSION : navigator.mimeTypes && navigator.mimeTypes[ 'application/vnd.unity' ] && navigator.mimeTypes[ 'application/vnd.unity' ].enabledPlugin, X_Pulgin_GEARS_ENABLED = window.GearsFactory || - ( X_UA.ActiveX && 6 <= X_UA.IE ? + ( X_UA[ 'ActiveX' ] && 6 <= X_UA[ 'IE' ] ? (function(){ return eval( 'var a,e;try{a=new ActiveXObject("Gears.Factory")}catch(e){}!!a' ); })() :