Namespace CKFinder.env
Constructor Attributes | Constructor Name and Description |
---|---|
Environment and browser information.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
CKFinder.env.air
Indicates that CKFinder is running on Adobe AIR.
|
<static> |
CKFinder.env.chrome
Indicates that CKFinder is running on Chrome.
|
<static> |
CKFinder.env.gecko
Indicates that CKFinder is running on a Gecko based browser, like
Firefox.
|
<static> |
CKFinder.env.ie
Indicates that CKFinder is running on Internet Explorer.
|
<static> |
CKFinder.env.ie6Compat
Indicates that CKFinder is running on an IE6-like environment, which
includes IE6 itself and IE7 and IE8 quirks mode.
|
<static> |
CKFinder.env.ie7Compat
Indicates that CKFinder is running on an IE7-like environment, which
includes IE7 itself and IE8's IE7 document mode.
|
<static> |
CKFinder.env.ie8
Indicates IE8 browser.
|
<static> |
CKFinder.env.ie8Compat
Indicates that CKFinder is running on an IE8-like environment.
|
<static> |
CKFinder.env.iemodern
Indicates that CKFinder is running on Internet Explorer 11+.
|
<static> |
CKFinder.env.isCompatible
Indicates that CKFinder is running on a compatible browser.
|
<static> |
CKFinder.env.isMobile
Indicates that CKFinder is running on a mobile browser.
|
<static> |
CKFinder.env.mac
Indicates that CKFinder is running on Macintosh.
|
<static> |
CKFinder.env.opera
Indicates that CKFinder is running on Opera.
|
<static> |
CKFinder.env.safari
Indicates that CKFinder is running on Safari.
|
<static> |
CKFinder.env.version
Contains the browser version.
|
<static> |
CKFinder.env.webkit
Indicates that CKFinder is running on a WebKit based browser, like
Safari.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
CKFinder.env.isCustomDomain()
|
Field Detail
<static>
{Boolean}
CKFinder.env.air
Since:
2.0
Indicates that CKFinder is running on Adobe AIR.
if ( CKFinder.env.air ) alert( "I'm on AIR!" );
<static>
{Boolean}
CKFinder.env.chrome
Since:
2.2
Indicates that CKFinder is running on Chrome.
if ( CKFinder.env.chrome ) alert( "I'm on Chrome!" );
<static>
{Boolean}
CKFinder.env.gecko
Since:
2.0
Indicates that CKFinder is running on a Gecko based browser, like
Firefox.
if ( CKFinder.env.gecko ) alert( "I'm riding a gecko!" );
<static>
{Boolean}
CKFinder.env.ie
Since:
2.0
Indicates that CKFinder is running on Internet Explorer.
if ( CKFinder.env.ie ) alert( "I'm on IE!" );
<static>
{Boolean}
CKFinder.env.ie6Compat
Since:
2.0
Indicates that CKFinder is running on an IE6-like environment, which
includes IE6 itself and IE7 and IE8 quirks mode.
if ( CKFinder.env.ie6Compat ) alert( "I'm on IE6 or quirks mode!" );
<static>
{Boolean}
CKFinder.env.ie7Compat
Since:
2.0
Indicates that CKFinder is running on an IE7-like environment, which
includes IE7 itself and IE8's IE7 document mode.
<static>
{Boolean}
CKFinder.env.ie8
Since:
2.0
Indicates IE8 browser.
<static>
{Boolean}
CKFinder.env.ie8Compat
Since:
2.0
Indicates that CKFinder is running on an IE8-like environment.
<static>
{Boolean}
CKFinder.env.iemodern
Since:
2.0
Indicates that CKFinder is running on Internet Explorer 11+.
if ( CKFinder.env.iemodern ) alert( "I'm on IE Modern!" );
<static>
{Boolean}
CKFinder.env.isCompatible
Since:
2.0
Indicates that CKFinder is running on a compatible browser.
if ( CKFinder.env.isCompatible ) alert( "Your browser is pretty cool!" );
<static>
{Boolean}
CKFinder.env.isMobile
Since:
2.0
Indicates that CKFinder is running on a mobile browser.
if ( CKFinder.env.isMobile ) alert( "We're on the road" );
<static>
{Boolean}
CKFinder.env.mac
Since:
2.0
Indicates that CKFinder is running on Macintosh.
if ( CKFinder.env.mac ) alert( "I love apples!" );
<static>
{Boolean}
CKFinder.env.opera
Since:
2.0
Indicates that CKFinder is running on Opera.
if ( CKFinder.env.opera ) alert( "I'm on Opera!" );
<static>
{Boolean}
CKFinder.env.safari
Since:
2.2
Indicates that CKFinder is running on Safari.
if ( CKFinder.env.safari ) alert( "I'm on Safari!" );
<static>
{Boolean}
CKFinder.env.version
Since:
2.0
Contains the browser version.
For gecko based browsers (like Firefox) it contains the revision
number with first three parts concatenated with a padding zero
(e.g. for revision 1.9.0.2 we have 10900).
For webkit based browser (like Safari and Chrome) it contains the
WebKit build version (e.g. 522).
if ( CKFinder.env.ie && CKFinder.env.version <= 6 ) alert( "Ouch!" );
<static>
{Boolean}
CKFinder.env.webkit
Since:
2.0
Indicates that CKFinder is running on a WebKit based browser, like
Safari.
if ( CKFinder.env.webkit ) alert( "I'm on WebKit!" );
Method Detail
<static>
{Undefined}
CKFinder.env.isCustomDomain()
Since:
2.0
NO EXAMPLE AVAILABLE