npm.io
1.0.0 • Published 8 years ago

matchgame

Licence
—
Version
1.0.0
Deps
1
Size
24 kB
Vulns
0
Weekly
0

Classes

wordMatch

Functions

isNode(o) ⇒ Boolean

Check if is DOM Node

isElement(o) ⇒ Boolean

Check if is HTMLELement

getParent(el, className) ⇒ HTMLElement

Get first parent to have a give className

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

Keywords