Skip to content

Commit

Permalink
refs #1725 : added - more browser / OS checks to common2.js.
Browse files Browse the repository at this point in the history
 -
  • Loading branch information
inureyes committed Dec 22, 2014
1 parent ffc7b12 commit 6c724a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions resources/script/common2.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ var isIE = sUserAgent.indexOf("compatible") > -1
&& !isOpera;

var isMinIE4 = isMinIE5 = isMinIE5_5 = isMinIE6 = false;
var isMinIE7 = isMinIE8 = isMinIE9 = isMinIE10 = isMinIE11 = false;

if (isIE) {
var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
Expand All @@ -96,6 +97,11 @@ if (isIE) {
isMinIE5 = fIEVersion >= 5;
isMinIE5_5 = fIEVersion >= 5.5;
isMinIE6 = fIEVersion >= 6.0;
isMinIE7 = fIEVersion >= 7.0;
isMinIE8 = fIEVersion >= 8.0;
isMinIE9 = fIEVersion >= 9.0;
isMinIE10 = fIEVersion >= 10.0;
isMinIE11 = fIEVersion >= 11.0;
}

var isMoz = sUserAgent.indexOf("Gecko") > -1
Expand Down Expand Up @@ -132,6 +138,7 @@ var isMac = (navigator.platform == "Mac68K") || (navigator.platform == "MacPPC")
var isUnix = (navigator.platform == "X11") && !isWin && !isMac;

var isWin95 = isWin98 = isWinNT4 = isWin2K = isWinME = isWinXP = false;
var isWinVista = isWin7 = isWin8 = isWin81 = isWin10 = isWinNT4 = false;
var isMac68K = isMacPPC = false;
var isSunOS = isMinSunOS4 = isMinSunOS5 = isMinSunOS5_5 = false;

Expand All @@ -146,6 +153,11 @@ if (isWin) {
|| sUserAgent.indexOf("Windows 2000") > -1;
isWinXP = sUserAgent.indexOf("Windows NT 5.1") > -1
|| sUserAgent.indexOf("Windows XP") > -1;
isWinVista = sUserAgent.indexOf("Windows NT 6.0") > -1;
isWin7 = sUserAgent.indexOf("Windows NT 6.1") > -1;
isWin8 = sUserAgent.indexOf("Windows NT 6.2") > -1;
isWin8_1 = sUserAgent.indexOf("Windows NT 6.3") > -1;
isWin10 = sUserAgent.indexOf("Windows NT 10.0") > -1;
isWinNT4 = sUserAgent.indexOf("WinNT") > -1
|| sUserAgent.indexOf("Windows NT") > -1
|| sUserAgent.indexOf("WinNT4.0") > -1
Expand Down

0 comments on commit 6c724a1

Please sign in to comment.