... | ... | @@ -24,23 +24,28 @@ Writ tests in `test/test.js` file then run: |
|
|
## Available helpers
|
|
|
|
|
|
* [ajaxRequest](ajaxRequest) - Performs ajax requests
|
|
|
* [jsonpRequest](jsonpRequest) - Performs JSONP requests
|
|
|
* [cookieCreate](cookieCreate) - Creates a cookie with optional expiration date
|
|
|
* [cookieDelete](cookieDelete) - Deletes a named cookie
|
|
|
* [cookieRead](cookieRead) - Returns the value of a named cookie
|
|
|
* cookieHandler - cookie helpers
|
|
|
* [create](cookieHandler-create) - Creates a cookie with optional expiration date
|
|
|
* [delete](cookieHandler-delete) - Deletes a named cookie
|
|
|
* [read](cookieHandler-read) - Returns the value of a named cookie
|
|
|
* [copyTextToClipboard](copyTextToClipboard) - Copies text to clipboard
|
|
|
* [debounce](debounce) - Debounced function call
|
|
|
* [escapeString](escapeString) - Escapes and URL encodes a string
|
|
|
* [extend](extend) - Merges the contents of two objects together
|
|
|
* [fontObservers](fontObservers) - Adds a class and to the document and writes a cookie when fonts have loaded
|
|
|
* [fontLoadObserver](fontLoadObserver) - Adds a class and to the document and writes a cookie when fonts have loaded
|
|
|
* [forEach](forEach) - run a function on each item of an array
|
|
|
* [getCurrentMediaQuery](getCurrentMediaQuery) - Returns the current media query in use in the CSS
|
|
|
* [getIndex](getIndex) - Returns the index of a node in a nodeList
|
|
|
* [getCurrentMediaQuery](getCurrentMediaQuery) - Returns the current media query in use by looking at the font-family of the head of the document and text in some pseudo content
|
|
|
* [getMetaContentByName](getMetaContentByName) - Returns a metatag content by name
|
|
|
* [getOffset](getOffset) - Get the current coordinates of a node, relative to the document
|
|
|
* [getOffset](getOffset) - Get the current coordinates of a node, relative to the document (uses `getBoundingClientRect`)
|
|
|
* [getUrlParameterByName](getUrlParameterByName) - Returns value of a parameter from a query string
|
|
|
* [keyCodes](keyCodes) - Abstraction of commonly used keycodes **NB: object not a function**
|
|
|
* [messages](messages) - Tracks site wide requests for messaging and displays a message on screen for a short amount of time
|
|
|
* [jsonpRequest](jsonpRequest) - Performs JSONP requests
|
|
|
* [lazyLoad](lazyLoad) - Lazy load images, videos, iframes, a A17-helperised version of: [https://github.com/area17/lazyload](https://github.com/area17/lazyload)
|
|
|
* [manageBehaviors](manageBehaviors) - inits and manages page data-behaviors on initial load and on page update
|
|
|
* [messages](messages) - Growl like messages
|
|
|
* [objectifyForm](objectifyForm) - Generates a JS Object out of a form
|
|
|
|
|
|
* [oritentationChangeFix](oritentationChangeFix) - Stopping iOS devices scaling up when rotating from portrait to landscape
|
|
|
* [resized](resized) - What to do on document resize, also checks if current media query has changed
|
|
|
* [setFocusOnTarget](setFocusOnTarget) - Sets focus on target node
|
... | ... | |