Classes
- API Home
- _global_
- Array
- Jelo
- Jelo.Ajax
- Jelo.Anim
- Jelo.Core
- Jelo.CSS
- Jelo.Dom
- Jelo.DragDrop
- Jelo.Env
- Jelo.Event
- Jelo.JSON
- Jelo.Widget
Namespace Jelo.Env
Information about the current browsing environment (browser type
and capabilities, screen size, browser viewport size, etc.)
Defined in: Jelo.Environment.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
Jelo.Env.isAir
True in an Adobe AIR environment.
|
| <static> |
Jelo.Env.isBot
True if the visitor appears to be a robot.
|
| <static> |
Jelo.Env.isChrome
True if the browser identifies itself as Google Chrome.
|
| <static> |
Jelo.Env.isFirefox
True if the browser identifies itself as Mozilla Firefox.
|
| <static> |
Jelo.Env.isFirefoxOld
True if the browser identifies itself as Mozilla Firefox 2 or less.
|
| <static> |
Jelo.Env.isGecko
True if the browser identifies itself as using the Gecko rendering
engine (includes Firefox and several "microbrew" browsers).
|
| <static> |
Jelo.Env.isGoogle
True if the visitor identifies itself as a Google service, including the
Googlebot search engine and various other Google robots (which may or
may not support JavaScript anyway.
|
| <static> |
Jelo.Env.isIE
True if the browser identifies itself as Microsoft Internet Explorer.
|
| <static> |
Jelo.Env.isIE7
True if the browser identifies itself as Microsoft Internet Explorer
7.
|
| <static> |
Jelo.Env.isIE8
True if the browser identifies itself as Microsoft Internet Explorer
8.
|
| <static> |
Jelo.Env.isIEOld
True if the browser identifies itself as Microsoft Internet Explorer
6 or less.
|
| <static> |
Jelo.Env.isLinux
True in a Linux environment.
|
| <static> |
Jelo.Env.isMac
True in an Apple Macintosh environment.
|
| <static> |
Jelo.Env.isModern
True in all modern browsers, indicates native AJAX support via
XMLHttpRequest.
|
| <static> |
Jelo.Env.isOpera
True if the browser identifies itself as Opera.
|
| <static> |
Jelo.Env.isSecure
True if the browser is in secure mode (HTTPS).
|
| <static> |
Jelo.Env.isStrict
True if the browser is in strict mode.
|
| <static> |
Jelo.Env.isWebkit
True if the browser identifies itself as using the Webkit rendering
engine (includes Safari and Google Chrome).
|
| <static> |
Jelo.Env.isWindows
True in a Windows environment.
|
| <static> |
Jelo.Env.isYahoo
True if the visitor identifies itself as a Yahoo service, including the
Yahoo Slurp search engine (which may or may not support JavaScript
anyway.
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
Jelo.Env.getDocumentHeight()
|
| <static> |
Jelo.Env.getDocumentWidth()
|
| <static> |
Jelo.Env.getScreenHeight(full)
When "full" is true, returns the height of the physical display screen.
|
| <static> |
Jelo.Env.getScreenWidth(full)
When "full" is true, returns the width of the physical display screen.
|
| <static> |
Jelo.Env.getUA()
|
| <static> |
Jelo.Env.getViewHeight(full)
When "full" is true, shorthand for getDocumentHeight.
|
| <static> |
Jelo.Env.getViewportHeight()
|
| <static> |
Jelo.Env.getViewportWidth()
|
| <static> |
Jelo.Env.getViewWidth(full)
When "full" is true, shorthand for getDocumentWidth.
|
Field Detail
<static>
{Boolean}
Jelo.Env.isAir
True in an Adobe AIR environment.
<static>
{Boolean}
Jelo.Env.isBot
True if the visitor appears to be a robot. Not necessarily a good or
bad thing, nor does this imply support (or lack thereof) for any
particular JS or CSS feature.
<static>
{Boolean}
Jelo.Env.isChrome
True if the browser identifies itself as Google Chrome.
<static>
{Boolean}
Jelo.Env.isFirefox
True if the browser identifies itself as Mozilla Firefox.
<static>
{Boolean}
Jelo.Env.isFirefoxOld
True if the browser identifies itself as Mozilla Firefox 2 or less.
<static>
{Boolean}
Jelo.Env.isGecko
True if the browser identifies itself as using the Gecko rendering
engine (includes Firefox and several "microbrew" browsers).
<static>
{Boolean}
Jelo.Env.isGoogle
True if the visitor identifies itself as a Google service, including the
Googlebot search engine and various other Google robots (which may or
may not support JavaScript anyway...). Chrome is NOT necessarily included.
<static>
{Boolean}
Jelo.Env.isIE
True if the browser identifies itself as Microsoft Internet Explorer.
<static>
{Boolean}
Jelo.Env.isIE7
True if the browser identifies itself as Microsoft Internet Explorer
7.
<static>
{Boolean}
Jelo.Env.isIE8
True if the browser identifies itself as Microsoft Internet Explorer
8.
<static>
{Boolean}
Jelo.Env.isIEOld
True if the browser identifies itself as Microsoft Internet Explorer
6 or less.
<static>
{Boolean}
Jelo.Env.isLinux
True in a Linux environment.
<static>
{Boolean}
Jelo.Env.isMac
True in an Apple Macintosh environment.
<static>
{Boolean}
Jelo.Env.isModern
True in all modern browsers, indicates native AJAX support via
XMLHttpRequest. IE 6 and older are known to return false,
nearly every other browser supports XMLHttpRequest natively.
<static>
{Boolean}
Jelo.Env.isOpera
True if the browser identifies itself as Opera.
<static>
{Boolean}
Jelo.Env.isSecure
True if the browser is in secure mode (HTTPS).
<static>
{Boolean}
Jelo.Env.isStrict
True if the browser is in strict mode.
<static>
{Boolean}
Jelo.Env.isWebkit
True if the browser identifies itself as using the Webkit rendering
engine (includes Safari and Google Chrome).
<static>
{Boolean}
Jelo.Env.isWindows
True in a Windows environment.
<static>
{Boolean}
Jelo.Env.isYahoo
True if the visitor identifies itself as a Yahoo service, including the
Yahoo Slurp search engine (which may or may not support JavaScript
anyway...)
Method Detail
<static>
{Number}
Jelo.Env.getDocumentHeight()
- Returns:
- {Number} The complete vertical size of the document, including scrollable content.
<static>
{Number}
Jelo.Env.getDocumentWidth()
- Returns:
- {Number} The complete horizontal size of the document, including scrollable content.
<static>
{Number}
Jelo.Env.getScreenHeight(full)
When "full" is true, returns the height of the physical display screen.
When "full" is false, returns the screen height minus the taskbar (if applicable).
- Parameters:
- {Boolean} full Optional
- Returns:
- {Number}
<static>
{Number}
Jelo.Env.getScreenWidth(full)
When "full" is true, returns the width of the physical display screen.
When "full" is false, returns the screen width minus the taskbar (if applicable).
- Parameters:
- {Boolean} full Optional
- Returns:
- {Number}
<static>
{String}
Jelo.Env.getUA()
- Returns:
- {String} The browser's User Agent.
<static>
{Number}
Jelo.Env.getViewHeight(full)
When "full" is true, shorthand for getDocumentHeight.
When "full" is false, shorthand for getViewportHeight.
- Parameters:
- {Boolean} full Optional
- Returns:
- {Number} The Viewport or Document height.
<static>
{Number}
Jelo.Env.getViewportHeight()
- Returns:
- {Number} The current height of the browser's visible area.
<static>
{Number}
Jelo.Env.getViewportWidth()
- Returns:
- {Number} The current width of the browser's visible area.
<static>
{Number}
Jelo.Env.getViewWidth(full)
When "full" is true, shorthand for getDocumentWidth.
When "full" is false, shorthand for getViewportWidth.
- Parameters:
- {Boolean} full Optional
- Returns:
- {Number}
- recent changes — (see all)
-
- Sep 14, 2010 — Simplified DragDrop.
- Jul 19, 2010 — Fixed typo preventing reliably aborting pending Ajax requests.
- Jun 17, 2010 — Fixed a conflict preventing Easing.SWINGOUT and Easing.SWINGBOTH from running simultaneously.
- Apr 22, 2010 — Added Array support to CSS.toggleClass.
- random jelo shots — (see all)
