Classes
Members
(static) _ :module:extensions/prototype.slDOM
- Source:
Type:
(static) __ :module:extensions/prototype.slDOMSet
- Source:
Type:
(static) fn :object
Properties:
Name | Type | Description |
---|---|---|
window |
module:extensions/prototype~WindowFunctions | |
mouse |
module:extensions/prototype~MouseFunctions | |
getRandId |
module:extensions/prototype~getRandId_1 | module:extensions/prototype~getRandId_2 |
Type:
- object
(static) object :object
Properties:
Name | Type | Description |
---|---|---|
extend |
module:extensions/prototype~ObjectExtend_1 | module:extensions/prototype~ObjectExtend_2 |
Type:
- object
(static) slDOM :module:extensions/prototype.slDOM
- Source:
Type:
(static) slDOM_env :module:extensions/prototype.slDOM_env
- Source:
Type:
(static) string :object
Type:
- object
(static) WindowExtend :any
Type:
- any
Example
window.addEvent(elem, type, handler);
window.removeEvent(elem, type, handlerId);
window.addEventListener(eventName, function (event) {});
Type Definitions
slDOM
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
env |
slDOM_env | Environment Flags |
||
__ |
function | if params is |
||
a2D |
function | apply Css Transforms on elements |
||
opacity |
function | ( short form o ) change element opacity |
||
setE |
function | ( short form e ) set a HTMLElement or Create Element for slDOM Pointer |
||
sClass |
function | =slDOMlib.sClass; |
||
setArg |
function | ( short form A ) set Attributes to HTMLElement, arguments order: |
||
adEto |
function | add current HTMLElement to other HTMLElement; |
||
putBfto |
function | insert current HTMLElement before other HTMLElement |
||
putAfto |
function | insert current HTMLElement after other HTMLElement |
||
putBf |
function | =slDOMlib.putBf; |
||
putAf |
function | =slDOMlib.putAf; |
||
addE |
function | =slDOMlib.addE; |
||
addB |
function | =slDOMlib.addB; |
||
addT |
function | ( short form t ) add text node to HTMLElement; |
||
nextTo |
function |
<optional> |
1
|
( short form N ) moving pointer forward to N neighbors |
backTo |
function |
<optional> |
1
|
( short form B ) moving pointer backward to N neighbors |
nUP |
function | ( short form is U ) goes up on level in doom |
||
nChild |
function | ( short form is C ) select the N th child element |
||
getParentN |
function | ( short form is P ) select the N th parent element |
||
clearE |
function | ( short form is d ) remove all childObjects from node |
||
delE |
function | remove HTMLElement from its Parent |
||
copyE |
function | =slDOMlib.copyE; |
||
getParentTag |
function | =slDOMlib.getParentTag; |
||
getByTag |
function | =slDOMlib.getByTag; |
||
getByQuery |
function | =slDOMlib.getByQuery; |
||
getById |
function | =slDOMlib.getById; |
||
getTags |
function | =slDOMlib.getTags; |
||
getTagsByQuery |
function | =slDOMlib.getTagsByQuery; |
||
triger |
function | ( short form T ) trigger / emit an event on HTMLElement |
||
getE |
function | ( short form _ ) return HTMLElement ;
|
||
setStyle |
function | ( short form f ) setting css proprieties to HTMLElement |
||
setVar |
function | ( short form V ) set dot property on HTMLElement |
||
setObjVar |
function | ( short form v ) setting attributes to HTMLElement |
||
setStyleSPEED |
function | ( short form F ) setting css proprieties to HTMLElement with normalizing values by adding units |
||
pagePXY |
function | ( short form PXY ) get element position on page |
||
in_e |
function | check if HTMLElement is still attached to DOM ( Document Object Manager ) |
||
g_wh |
function | returns width and height of HTMLElement |
||
getLIST |
function | =slDOMlib.getLIST; |
||
toFunction |
function | =slDOMlib.toFunction; |
||
removeFromDOM |
function | ( short form free ) remove elements from DOM |
||
o |
function | ( short form opacity ) change element opacity |
||
E |
function | ( long form setE ) set a HTMLElement or Create Element for slDOM Pointer |
||
c |
* | =slDOMlib.sClass; |
||
attrs |
function | = slDOMlib.attrs; |
||
A |
* | =slDOMlib.setArg; |
||
Et |
* | =slDOMlib.adEto; |
||
Bt |
* | =slDOMlib.putBfto; |
||
At |
* | =slDOMlib.putAfto; |
||
pB |
* | =slDOMlib.putBf; |
||
pA |
* | =slDOMlib.putAf; |
||
e |
* | =slDOMlib.addE; |
||
b |
* | =slDOMlib.addB; |
||
t |
* | =slDOMlib.addT; |
||
N |
* | =slDOMlib.nextTo; |
||
B |
* | =slDOMlib.backTo; |
||
U |
* | =slDOMlib.nUP; |
||
C |
* | =slDOMlib.nChild; |
||
P |
* | =slDOMlib.getParentN; |
||
d |
* | =slDOMlib.clearE; |
||
D |
* | =slDOMlib.delE; |
||
X |
* | =slDOMlib.copyE; |
||
p |
* | =slDOMlib.getParentTag; |
||
S |
* | =slDOMlib.getByTag; |
||
Q |
* | =slDOMlib.getByQuery; |
||
I |
* | =slDOMlib.getById; |
||
s |
* | =slDOMlib.getTags; |
||
q |
* | =slDOMlib.getTagsByQuery; |
||
T |
* | =slDOMlib.triger; |
||
_ |
* | =slDOMlib.getE; |
||
$ |
* | =slDOMlib.getLIST; |
||
F |
* | =slDOMlib.setStyleSPEED; |
||
f |
* | =slDOMlib.setStyle; |
||
L |
* | =slDOMlib.getLIST; |
||
V |
* | =slDOMlib.setVar; |
||
v |
* | =slDOMlib.setObjVar; |
||
p |
* | =slDOMlib.setObjProto; |
||
PXY |
* | =slDOMlib.pagePosXY; |
||
i |
* | =slDOMlib.in_e; |
||
r |
* | =slDOMlib.g_wh; |
||
x |
* | =slDOMlib.toFunction; |
||
free |
function | = slDOMlib.removeFromDOM; |
||
is_free |
function | = slDOMlib.is_free; |
||
is_focused |
function | = slDOMlib.is_focused; |
||
is_inview |
function | = slDOMlib.elementInViewport; |
||
is_visible |
function | = slDOMlib.elementIsVisible; |
||
_normalizeCssValues |
* | = slDOMlib._normalizeCssValues; |
||
on |
* | = slDOMlib.on; |
||
off |
* | = slDOMlib.off; |
||
eventsCache |
function | = slDOMlib.eventsCache; |
returns a pointer that walks over DOM and applying needed operations
Type:
- object
slDOM_env
- Source:
Properties:
Name | Type | Description |
---|---|---|
gecko |
Boolean | |
old_ie |
Boolean | |
ie_lt8 |
Boolean | |
ie_lt9 |
Boolean | |
ie_gt10 |
Boolean | |
ie |
Boolean | |
webkit |
Boolean | |
qtwebkit |
Boolean | |
chrome |
Boolean | |
opera |
Boolean | |
firefox |
Boolean | |
safari |
Boolean | |
khtml |
Boolean | |
mac_geLion |
Boolean | |
mac_geMountainLion |
Boolean | |
phantom |
Boolean | |
ios |
Boolean | |
mobile |
Boolean | |
mac |
Boolean | |
windows |
Boolean | |
opera_version |
Array | null | |
flipCtrlCmd |
Boolean | |
captureMiddleClick |
Boolean | |
android |
Boolean | |
android_version |
String | false |
getRandId_1(prefix, minimize)
Parameters:
Name | Type | Description |
---|---|---|
prefix |
string | |
minimize |
boolean |
getRandId_2(minimize)
Parameters:
Name | Type | Description |
---|---|---|
minimize |
boolean |
MouseFunctions
Properties:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
event |
external:MouseEvent | |||||||
position |
module:extensions/prototype~MousePosition | |||||||
config |
object |
Properties
|
Type:
- object
MousePosition(eventMouseMoveopt, contextopt) → {module:extensions/prototype~MousePositionCache}
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eventMouseMove |
MouseEvent |
<optional> |
|||||||||||||
context |
object |
<optional> |
Properties
|
Returns:
MousePositionCache
Properties:
Name | Type | Description |
---|---|---|
x |
number | |
y |
number | |
xmax |
number | |
ymax |
number |
Type:
- object
ObjectExtend_1(object, options)
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
object |
object | ||||||||||||||||||||||||||
options |
object |
Properties
|
ObjectExtend_2(object, options)
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
object |
object | ||||||||||||||||||||||||||
options |
object |
Properties
|
WindowFunctions
Properties:
Name | Type | Attributes | Default | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sizeLimit |
object |
Properties
|
|||||||||||
refreshRate |
number |
<optional> |
200
|
how often to recalculate window size |
|||||||||
sizeActive |
module:extensions/prototype~windowSizeActive | ||||||||||||
size |
module:extensions/prototype~windowSize |
Type:
- object
windowSize() → {module:extensions/prototype~windowSizeCache}
Properties:
Name | Type | Description |
---|---|---|
refreshed |
boolean |
Returns:
windowSizeActive() → {module:extensions/prototype~windowSizeCache}
Properties:
Name | Type | Description |
---|---|---|
refreshed |
boolean |
Returns:
windowSizeCache
Properties:
Name | Type | Description |
---|---|---|
w |
number | |
h |
number |
Type:
- object