cms7-query-media
v1.0.2
Published
- ### __queryMedia function(query, callOnChange, callback) -> void__: - ### @param {string} query: e.g: '(max-width: 769px)' - ### @param {boolean} callOnChange: whether or not to invoke _callback_ parameter on window resize - ### @event ca
Downloads
3
Readme
media query helpers
Exports:
queryMedia function(query, callOnChange, callback) -> void:
@param {string} query: e.g: '(max-width: 769px)'
@param {boolean} callOnChange: whether or not to invoke callback parameter on window resize
@event callback : function (isMatch: boolean) -> void
queryMediaSync function(query = '(max-width: 769px)') -> Boolean: checks css query and returns the result immediateley