Members
-
CSSColorStrings
-
Common shorthands for CSS colors.
- Source:
Examples
colorStrings.teal = "008080";
colorStrings["aqua"] = "00ffff";
-
TrackLib
-
Auxiliary functions to track the user activity. Library borrowed from https://github.com/luileito/evtrack
- Version:
- 0.2
- License:
- Dual licensed under the MIT and GPL licenses.
- Source:
Methods
-
getElementsByClassName(cls) → {array}
-
Retrieves a DOM NodeList of elements matching a given class. This is actually a fallback of Node.prototype.getElementsByClassName for old browsers.
Parameters:
Name Type Description cls
string CSS class name. Returns:
- Type
- array
-
indexOf(obj, start) → {int}
-
Retrieves the index of an element in array. This is actually a fallback of Array.prototype.indexOf for old browsers.
Parameters:
Name Type Description obj
mixed Array item to search for. start
int Offset to start search. Returns:
Item index > 0 on success, -1 otherwise.- Type
- int