1.0.0 • Published 6 years ago
matchgame v1.0.0
Classes
Functions
wordMatch
Kind: global class
new wordMatch()
Create a word match game
isNode(o) ⇒ Boolean
Check if is DOM Node
Kind: global function Returns: Boolean - true if is DOM Node
Param | Type |
---|---|
o | * |
isElement(o) ⇒ Boolean
Check if is HTMLELement
Kind: global function Returns: Boolean - true if is Element
Param | Type |
---|---|
o | * |
getParent(el, className) ⇒ HTMLElement
Get first parent to have a give className
Kind: global function Returns: HTMLElement - parent element having the className
Param | Type | Description |
---|---|---|
el | HTMLElement | child element |
className | String | className to look for |
1.0.0
6 years ago