-
Notifications
You must be signed in to change notification settings - Fork 1
Cave Browser API
james edited this page Nov 4, 2017
·
1 revision
These methods are part of the cave
JavaScript API. Among other things, they provide means to scroll the page and check if the user is still connected to the internet.
-
Arguments:
-
{Number}
x -
{Number}
y
-
-
Usage:
Scroll the window to position (x, y) - similar to window.scroll.
-
Returns:
{Number}
-
Usage:
Get the current X position of the window relative to the document.
-
Returns:
{Number}
-
Usage:
Get the current Y position of the window relative to the document.
-
Returns:
{Boolean}
-
Usage:
Check if the user is currently connected to the internet.
-
Usage:
(untested) Seems to be used whenever a scroll is about to happen. Perhaps it triggers a transition?
-
Arguments:
-
{Boolean}
useWhiteFlag
-
-
Usage:
(untested) Same as
brw_notifyPageMoving
, but seems to include a white fade.
- Usage: (unknown).
- Usage: (unknown).