/[suikacvs]/webroot/www/js/jste/uupaa-detect.mini.js
Suika

Contents of /webroot/www/js/jste/uupaa-detect.mini.js

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sun Jan 4 12:44:00 2009 UTC (16 years, 8 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: application/javascript
Initial

1 wakaba 1.1 if(!window.uu){var uu;window.uu=function(){return uu._impl.apply(this,arguments)};window.uu.mix=function(D,A,C){for(var B in A){D[B]=A[B]}return C?uu.mix(D,C):D};window.uu.mix.param=function(D,A,C){for(var B in A){!(B in D)&&(D[B]=A[B])}return C?uu.mix.param(D,C):D};window.uuClass={};window.uuConst={}}if(!uuClass.Detect){uuClass.Detect=function(){};uuClass.Detect.env=function(D,C){function A(E){var I={},G=window.decodeURIComponent;function H(F,J,K){return I[G(J.toLowerCase())]=G(K.toLowerCase())}E.replace(/^.*\?/,"").replace(/&/g,"&").replace(/(?:([^\=]+)\=([^\&]+)&?)/g,H);return I}var B=document.getElementById(D);if(B&&B.src.indexOf("?")!==-1){uu.mix(C,A(B.src.slice(B.src.indexOf("?")+1)))}};(function(){var F=window,E=document,G=navigator.userAgent,A=E.compatMode,C=E.implementation,B=0,D=uuClass.Detect;
2     D.ie=D.gecko=D.webkit=D.opera=D.air=D.ipod=D.wii=false;E.uniqueID?(D.ie=true):/Gecko\//.test(G)?(D.gecko=true):/WebKit/.test(G)?(D.webkit=true):F.opera?(D.opera=true):/AdobeAIR/.test(G)?(D.air=true):0;B=parseFloat(D.ie?G.match(/MSIE ([\d]\.[\d][\w]?)/)[1]:D.gecko?G.match(/Gecko\/(\d{8})/)[1]:D.webkit?G.match(/WebKit\/(\d+(?:\.\d+)*)/)[1]:D.opera?opera.version():0);D.webkit&&/iPod|iPhone/.test(G)&&++D.ipod;D.opera&&F.opera.wiiremote&&++D.wii;D.ie8=D.ie&&B>=8;D.ie8mode8=D.ie8&&E.documentMode>=8;D.ie7=D.ie&&B===7;D.ie6=D.ie&&B===6;D.fx40=D.gecko&&/fox\/4\.[\d]/.test(G);D.fx31=D.gecko&&/fox\/3\.([1-9])/.test(G);D.fx30=D.gecko&&/fox\/3\.0/.test(G);D.fx20=D.gecko&&/fox\/2\.0/.test(G);D.chrome=D.webkit&&/Chrome\//.test(G);D.safari3=D.webkit&&!D.chrome&&B>500&&/Safari\//.test(G);D.opera100=D.opera&&B>=10;
3     D.opera95=D.opera&&B>=9.5&&B<10;D.opera90=D.opera&&B>=9&&B<9.5;D.std=A&&A==="CSS1Compat";D.selector=!!(E.querySelector&&!D.ie);D.range=C&&C.hasFeature("Range","2.0");D.etraverse=D.fx31||D.opera95;D.minquartz=(D.gecko||D.chrome)?10:16;D.disptable=!(D.ie6||D.ie7);D.docroot=document.documentElement||E.getElementsByTagName("html")[0];D.version=B})()};

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24