prepared javascript

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@4 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2007-05-15 06:03:19 +00:00
parent 91bd0676c2
commit 970fec4aed
4 changed files with 4 additions and 0 deletions

1
src/webim/js/brws.js Normal file
View File

@ -0,0 +1 @@
var myAgent="";var kj=0;var myRealAgent="";function lj(){var oj=["\157pe\162a","\u006d\u0073\u0069\145","\163\141\146ar\u0069","\146i\u0072\u0065f\u006f\170","\u006e\u0065ts\143a\u0070\145","\u006d\u006f\u007ai\u006cl\u0061"];var ai=navigator.userAgent.toLowerCase();for(var i=0;i<oj.length;i++){var pj=oj[i];if(ai.indexOf(pj)!=-1){myAgent=pj;if(!window.RegExp)break;var dj=new RegExp(pj+"\u005b\u0020\/\u005d\u003f(\u005b\060\u002d9\135\u002b(\.\u005b\060\u002d9\u005d+)?)");if(dj.exec(ai)!=null){kj=parseFloat(RegExp.$1);} break;} } myRealAgent=myAgent;if(navigator.product=="G\u0065c\153\u006f")myAgent="moz";} lj();function getEl(name){return document.getElementById(name);}

1
src/webim/js/common.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long