id
int32
0
58k
repo
stringlengths
5
67
path
stringlengths
4
116
func_name
stringlengths
0
58
original_string
stringlengths
52
373k
language
stringclasses
1 value
code
stringlengths
52
373k
code_tokens
list
docstring
stringlengths
4
11.8k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
86
226
42,800
neyric/webhookit
public/javascripts/inputex/js/fields/SerializeField-beta.js
function(sValue) { if(!XML || !YAHOO.lang.isFunction(XML.ObjTree) ) { alert("ObjTree.js not loaded."); return null; } var xotree = new XML.ObjTree(); var tree = xotree.parseXML( sValue ); return tree; }
javascript
function(sValue) { if(!XML || !YAHOO.lang.isFunction(XML.ObjTree) ) { alert("ObjTree.js not loaded."); return null; } var xotree = new XML.ObjTree(); var tree = xotree.parseXML( sValue ); return tree; }
[ "function", "(", "sValue", ")", "{", "if", "(", "!", "XML", "||", "!", "YAHOO", ".", "lang", ".", "isFunction", "(", "XML", ".", "ObjTree", ")", ")", "{", "alert", "(", "\"ObjTree.js not loaded.\"", ")", ";", "return", "null", ";", "}", "var", "xotre...
deserialize from XML @static
[ "deserialize", "from", "XML" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/SerializeField-beta.js#L144-L152
42,801
neyric/webhookit
server.js
function(req, res){ return function(){ var buf = [], messages = req.flash(), types = Object.keys(messages), len = types.length; if (!len) { return ''; } buf.push('<div id="messages">'); for (var i = 0 ; i < ...
javascript
function(req, res){ return function(){ var buf = [], messages = req.flash(), types = Object.keys(messages), len = types.length; if (!len) { return ''; } buf.push('<div id="messages">'); for (var i = 0 ; i < ...
[ "function", "(", "req", ",", "res", ")", "{", "return", "function", "(", ")", "{", "var", "buf", "=", "[", "]", ",", "messages", "=", "req", ".", "flash", "(", ")", ",", "types", "=", "Object", ".", "keys", "(", "messages", ")", ",", "len", "="...
req.flash to html helper
[ "req", ".", "flash", "to", "html", "helper" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/server.js#L70-L93
42,802
neyric/webhookit
public/javascripts/yui/slider/slider.js
Slider
function Slider(sElementId, sGroup, oThumb, sType) { Slider.ANIM_AVAIL = (!YAHOO.lang.isUndefined(YAHOO.util.Anim)); if (sElementId) { this.init(sElementId, sGroup, true); this.initSlider(sType); this.initThumb(oThumb); } }
javascript
function Slider(sElementId, sGroup, oThumb, sType) { Slider.ANIM_AVAIL = (!YAHOO.lang.isUndefined(YAHOO.util.Anim)); if (sElementId) { this.init(sElementId, sGroup, true); this.initSlider(sType); this.initThumb(oThumb); } }
[ "function", "Slider", "(", "sElementId", ",", "sGroup", ",", "oThumb", ",", "sType", ")", "{", "Slider", ".", "ANIM_AVAIL", "=", "(", "!", "YAHOO", ".", "lang", ".", "isUndefined", "(", "YAHOO", ".", "util", ".", "Anim", ")", ")", ";", "if", "(", "...
A DragDrop implementation that can be used as a background for a slider. It takes a reference to the thumb instance so it can delegate some of the events to it. The goal is to make the thumb jump to the location on the background when the background is clicked. @class Slider @extends YAHOO.util.DragDrop @uses YAHOO....
[ "A", "DragDrop", "implementation", "that", "can", "be", "used", "as", "a", "background", "for", "a", "slider", ".", "It", "takes", "a", "reference", "to", "the", "thumb", "instance", "so", "it", "can", "delegate", "some", "of", "the", "events", "to", "it...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L43-L52
42,803
neyric/webhookit
public/javascripts/yui/slider/slider.js
function (sBGElId, sHandleElId, iUp, iDown, iTickSize) { return new Slider(sBGElId, sBGElId, new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 0, 0, iUp, iDown, iTickSize), "vert"); }
javascript
function (sBGElId, sHandleElId, iUp, iDown, iTickSize) { return new Slider(sBGElId, sBGElId, new YAHOO.widget.SliderThumb(sHandleElId, sBGElId, 0, 0, iUp, iDown, iTickSize), "vert"); }
[ "function", "(", "sBGElId", ",", "sHandleElId", ",", "iUp", ",", "iDown", ",", "iTickSize", ")", "{", "return", "new", "Slider", "(", "sBGElId", ",", "sBGElId", ",", "new", "YAHOO", ".", "widget", ".", "SliderThumb", "(", "sHandleElId", ",", "sBGElId", "...
Factory method for creating a vertical slider @method YAHOO.widget.Slider.getVertSlider @static @param {String} sBGElId the id of the slider's background element @param {String} sHandleElId the id of the thumb element @param {int} iUp the number of pixels the element can move up @param {int} iDown the number of pixels ...
[ "Factory", "method", "for", "creating", "a", "vertical", "slider" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L87-L91
42,804
neyric/webhookit
public/javascripts/yui/slider/slider.js
function(t) { var self = this; /** * A YAHOO.widget.SliderThumb instance that we will use to * reposition the thumb when the background is clicked * @property thumb * @type YAHOO.widget.SliderThumb */ this.thumb = t; t.cacheBetweenDrags = ...
javascript
function(t) { var self = this; /** * A YAHOO.widget.SliderThumb instance that we will use to * reposition the thumb when the background is clicked * @property thumb * @type YAHOO.widget.SliderThumb */ this.thumb = t; t.cacheBetweenDrags = ...
[ "function", "(", "t", ")", "{", "var", "self", "=", "this", ";", "/**\n * A YAHOO.widget.SliderThumb instance that we will use to \n * reposition the thumb when the background is clicked\n * @property thumb\n * @type YAHOO.widget.SliderThumb\n */", "this...
Initializes the slider's thumb. Executed in the constructor. @method initThumb @param {YAHOO.widget.SliderThumb} t the slider thumb
[ "Initializes", "the", "slider", "s", "thumb", ".", "Executed", "in", "the", "constructor", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L340-L379
42,805
neyric/webhookit
public/javascripts/yui/slider/slider.js
function () { Event.on(this.id, "keydown", this.handleKeyDown, this, true); Event.on(this.id, "keypress", this.handleKeyPress, this, true); }
javascript
function () { Event.on(this.id, "keydown", this.handleKeyDown, this, true); Event.on(this.id, "keypress", this.handleKeyPress, this, true); }
[ "function", "(", ")", "{", "Event", ".", "on", "(", "this", ".", "id", ",", "\"keydown\"", ",", "this", ".", "handleKeyDown", ",", "this", ",", "true", ")", ";", "Event", ".", "on", "(", "this", ".", "id", ",", "\"keypress\"", ",", "this", ".", "...
Sets up the listeners for keydown and key press events. @method _bindKeyEvents @protected
[ "Sets", "up", "the", "listeners", "for", "keydown", "and", "key", "press", "events", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L395-L398
42,806
neyric/webhookit
public/javascripts/yui/slider/slider.js
function(e) { if (this.enableKeys) { var kc = Event.getCharCode(e); switch (kc) { case 0x25: // left case 0x26: // up case 0x27: // right case 0x28: // down case 0x24: // home case 0x23: // e...
javascript
function(e) { if (this.enableKeys) { var kc = Event.getCharCode(e); switch (kc) { case 0x25: // left case 0x26: // up case 0x27: // right case 0x28: // down case 0x24: // home case 0x23: // e...
[ "function", "(", "e", ")", "{", "if", "(", "this", ".", "enableKeys", ")", "{", "var", "kc", "=", "Event", ".", "getCharCode", "(", "e", ")", ";", "switch", "(", "kc", ")", "{", "case", "0x25", ":", "// left", "case", "0x26", ":", "// up", "case"...
Executed when a keypress event happens with the control focused. Prevents the default behavior for navigation keys. The actual logic for moving the slider thumb in response to a key event happens in handleKeyDown. @param {Event} e the keypress event
[ "Executed", "when", "a", "keypress", "event", "happens", "with", "the", "control", "focused", ".", "Prevents", "the", "default", "behavior", "for", "navigation", "keys", ".", "The", "actual", "logic", "for", "moving", "the", "slider", "thumb", "in", "response"...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L407-L423
42,807
neyric/webhookit
public/javascripts/yui/slider/slider.js
function(e) { if (this.enableKeys) { var kc = Event.getCharCode(e), t = this.thumb, h = this.getXValue(), v = this.getYValue(), changeValue = true; switch (kc) { // left case 0x25: h -= t...
javascript
function(e) { if (this.enableKeys) { var kc = Event.getCharCode(e), t = this.thumb, h = this.getXValue(), v = this.getYValue(), changeValue = true; switch (kc) { // left case 0x25: h -= t...
[ "function", "(", "e", ")", "{", "if", "(", "this", ".", "enableKeys", ")", "{", "var", "kc", "=", "Event", ".", "getCharCode", "(", "e", ")", ",", "t", "=", "this", ".", "thumb", ",", "h", "=", "this", ".", "getXValue", "(", ")", ",", "v", "=...
Executed when a keydown event happens with the control focused. Updates the slider value and display when the keypress is an arrow key, home, or end as long as enableKeys is set to true. @param {Event} e the keydown event
[ "Executed", "when", "a", "keydown", "event", "happens", "with", "the", "control", "focused", ".", "Updates", "the", "slider", "value", "and", "display", "when", "the", "keypress", "is", "an", "arrow", "key", "home", "or", "end", "as", "long", "as", "enable...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L431-L477
42,808
neyric/webhookit
public/javascripts/yui/slider/slider.js
function() { var el = this.thumb.getEl(); if (el) { /** * The center of the slider element is stored so we can * place it in the correct position when the background is clicked. * @property thumbCenterPoint * @type {"x": int, "y": int} ...
javascript
function() { var el = this.thumb.getEl(); if (el) { /** * The center of the slider element is stored so we can * place it in the correct position when the background is clicked. * @property thumbCenterPoint * @type {"x": int, "y": int} ...
[ "function", "(", ")", "{", "var", "el", "=", "this", ".", "thumb", ".", "getEl", "(", ")", ";", "if", "(", "el", ")", "{", "/**\n * The center of the slider element is stored so we can \n * place it in the correct position when the background is clicke...
When the thumb is available, we cache the centerpoint of the element so we can position the element correctly when the background is clicked @method setThumbCenterPoint
[ "When", "the", "thumb", "is", "available", "we", "cache", "the", "centerpoint", "of", "the", "element", "so", "we", "can", "position", "the", "element", "correctly", "when", "the", "background", "is", "clicked" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L521-L538
42,809
neyric/webhookit
public/javascripts/yui/slider/slider.js
function() { var args = _AS.call(arguments); args.unshift(Slider.SOURCE_SET_VALUE); return this._setValue.apply(this,args); }
javascript
function() { var args = _AS.call(arguments); args.unshift(Slider.SOURCE_SET_VALUE); return this._setValue.apply(this,args); }
[ "function", "(", ")", "{", "var", "args", "=", "_AS", ".", "call", "(", "arguments", ")", ";", "args", ".", "unshift", "(", "Slider", ".", "SOURCE_SET_VALUE", ")", ";", "return", "this", ".", "_setValue", ".", "apply", "(", "this", ",", "args", ")", ...
Provides a way to set the value of the slider in code. @method setValue @param {int} newOffset the number of pixels the thumb should be positioned away from the initial start point @param {boolean} skipAnim set to true to disable the animation for this move action (but not others). @param {boolean} force ignore the lo...
[ "Provides", "a", "way", "to", "set", "the", "value", "of", "the", "slider", "in", "code", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L686-L690
42,810
neyric/webhookit
public/javascripts/yui/slider/slider.js
function(finalCoord) { var t = this.thumb, self = this, nextCoord = null, tmpX, tmpY; if (t._isRegion) { nextCoord = this._getNextX(this.curCoord, finalCoord); tmpX = (nextCoord !== null) ? nextCoord[0] : this.curCoord[0]; nextCoo...
javascript
function(finalCoord) { var t = this.thumb, self = this, nextCoord = null, tmpX, tmpY; if (t._isRegion) { nextCoord = this._getNextX(this.curCoord, finalCoord); tmpX = (nextCoord !== null) ? nextCoord[0] : this.curCoord[0]; nextCoo...
[ "function", "(", "finalCoord", ")", "{", "var", "t", "=", "this", ".", "thumb", ",", "self", "=", "this", ",", "nextCoord", "=", "null", ",", "tmpX", ",", "tmpY", ";", "if", "(", "t", ".", "_isRegion", ")", "{", "nextCoord", "=", "this", ".", "_g...
Move the slider one tick mark towards its final coordinate. Used for the animation when tick marks are defined @method moveOneTick @param {int[]} the destination coordinate @private
[ "Move", "the", "slider", "one", "tick", "mark", "towards", "its", "final", "coordinate", ".", "Used", "for", "the", "animation", "when", "tick", "marks", "are", "defined" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L950-L996
42,811
neyric/webhookit
public/javascripts/yui/slider/slider.js
function(e) { if (!this.backgroundEnabled || this.isLocked()) { return false; } this._mouseDown = true; var x = Event.getPageX(e), y = Event.getPageY(e); this.focus(); this._slideStart(); this.moveThumb(x, y); }
javascript
function(e) { if (!this.backgroundEnabled || this.isLocked()) { return false; } this._mouseDown = true; var x = Event.getPageX(e), y = Event.getPageY(e); this.focus(); this._slideStart(); this.moveThumb(x, y); }
[ "function", "(", "e", ")", "{", "if", "(", "!", "this", ".", "backgroundEnabled", "||", "this", ".", "isLocked", "(", ")", ")", "{", "return", "false", ";", "}", "this", ".", "_mouseDown", "=", "true", ";", "var", "x", "=", "Event", ".", "getPageX"...
Handles the mousedown event for the slider background @method onMouseDown @private
[ "Handles", "the", "mousedown", "event", "for", "the", "slider", "background" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1069-L1083
42,812
neyric/webhookit
public/javascripts/yui/slider/slider.js
function () { var t = this.thumb; t.setXConstraint(t.leftConstraint, t.rightConstraint, t.xTickSize); t.setYConstraint(t.topConstraint, t.bottomConstraint, t.xTickSize); }
javascript
function () { var t = this.thumb; t.setXConstraint(t.leftConstraint, t.rightConstraint, t.xTickSize); t.setYConstraint(t.topConstraint, t.bottomConstraint, t.xTickSize); }
[ "function", "(", ")", "{", "var", "t", "=", "this", ".", "thumb", ";", "t", ".", "setXConstraint", "(", "t", ".", "leftConstraint", ",", "t", ".", "rightConstraint", ",", "t", ".", "xTickSize", ")", ";", "t", ".", "setYConstraint", "(", "t", ".", "...
Resets the X and Y contraints for the thumb. Used in lieu of the thumb instance's inherited resetConstraints because some logic was not applicable. @method resetThumbConstraints @protected
[ "Resets", "the", "X", "and", "Y", "contraints", "for", "the", "thumb", ".", "Used", "in", "lieu", "of", "the", "thumb", "instance", "s", "inherited", "resetConstraints", "because", "some", "logic", "was", "not", "applicable", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1117-L1122
42,813
neyric/webhookit
public/javascripts/yui/slider/slider.js
function(parentPos) { var myPos = YAHOO.util.Dom.getXY(this.getEl()), ppos = parentPos || YAHOO.util.Dom.getXY(this.parentElId); return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ]; }
javascript
function(parentPos) { var myPos = YAHOO.util.Dom.getXY(this.getEl()), ppos = parentPos || YAHOO.util.Dom.getXY(this.parentElId); return [ (myPos[0] - ppos[0]), (myPos[1] - ppos[1]) ]; }
[ "function", "(", "parentPos", ")", "{", "var", "myPos", "=", "YAHOO", ".", "util", ".", "Dom", ".", "getXY", "(", "this", ".", "getEl", "(", ")", ")", ",", "ppos", "=", "parentPos", "||", "YAHOO", ".", "util", ".", "Dom", ".", "getXY", "(", "this...
Returns the difference between the location of the thumb and its parent. @method getOffsetFromParent @param {[int, int]} parentPos Optionally accepts the position of the parent @type [int, int]
[ "Returns", "the", "difference", "between", "the", "location", "of", "the", "thumb", "and", "its", "parent", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1303-L1308
42,814
neyric/webhookit
public/javascripts/yui/slider/slider.js
function (iLeft, iRight, iUp, iDown, iTickSize) { this.initLeft = iLeft; this.initRight = iRight; this.initUp = iUp; this.initDown = iDown; this.setXConstraint(iLeft, iRight, iTickSize); this.setYConstraint(iUp, iDown, iTickSize); if (iTickSize && iTickSize > 1)...
javascript
function (iLeft, iRight, iUp, iDown, iTickSize) { this.initLeft = iLeft; this.initRight = iRight; this.initUp = iUp; this.initDown = iDown; this.setXConstraint(iLeft, iRight, iTickSize); this.setYConstraint(iUp, iDown, iTickSize); if (iTickSize && iTickSize > 1)...
[ "function", "(", "iLeft", ",", "iRight", ",", "iUp", ",", "iDown", ",", "iTickSize", ")", "{", "this", ".", "initLeft", "=", "iLeft", ";", "this", ".", "initRight", "=", "iRight", ";", "this", ".", "initUp", "=", "iUp", ";", "this", ".", "initDown", ...
Set up the slider, must be called in the constructor of all subclasses @method initSlider @param {int} iLeft the number of pixels the element can move left @param {int} iRight the number of pixels the element can move right @param {int} iUp the number of pixels the element can move up @param {int} iDown the number of p...
[ "Set", "up", "the", "slider", "must", "be", "called", "in", "the", "constructor", "of", "all", "subclasses" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1352-L1369
42,815
neyric/webhookit
public/javascripts/yui/slider/slider.js
function () { if (!this.available) { return 0; } var newOffset = this.getOffsetFromParent(); if (YAHOO.lang.isNumber(newOffset[0])) { this.lastOffset = newOffset; return (newOffset[0] - this.startOffset[0]); } else { return (this....
javascript
function () { if (!this.available) { return 0; } var newOffset = this.getOffsetFromParent(); if (YAHOO.lang.isNumber(newOffset[0])) { this.lastOffset = newOffset; return (newOffset[0] - this.startOffset[0]); } else { return (this....
[ "function", "(", ")", "{", "if", "(", "!", "this", ".", "available", ")", "{", "return", "0", ";", "}", "var", "newOffset", "=", "this", ".", "getOffsetFromParent", "(", ")", ";", "if", "(", "YAHOO", ".", "lang", ".", "isNumber", "(", "newOffset", ...
Gets the current X offset from the element's start position in pixels. @method getXValue @return {int} the number of pixels (positive or negative) the slider has moved horizontally from the start position.
[ "Gets", "the", "current", "X", "offset", "from", "the", "element", "s", "start", "position", "in", "pixels", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1400-L1411
42,816
neyric/webhookit
public/javascripts/yui/slider/slider.js
function (slider) { Event.on(slider.id,'keydown', this._handleKeyDown, this,true); Event.on(slider.id,'keypress',this._handleKeyPress,this,true); }
javascript
function (slider) { Event.on(slider.id,'keydown', this._handleKeyDown, this,true); Event.on(slider.id,'keypress',this._handleKeyPress,this,true); }
[ "function", "(", "slider", ")", "{", "Event", ".", "on", "(", "slider", ".", "id", ",", "'keydown'", ",", "this", ".", "_handleKeyDown", ",", "this", ",", "true", ")", ";", "Event", ".", "on", "(", "slider", ".", "id", ",", "'keypress'", ",", "this...
Set up the listeners for the keydown and keypress events. @method _bindKeyEvents @protected
[ "Set", "up", "the", "listeners", "for", "the", "keydown", "and", "keypress", "events", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1700-L1703
42,817
neyric/webhookit
public/javascripts/yui/slider/slider.js
function (min, max, skipAnim, force, silent) { var mins = this.minSlider, maxs = this.maxSlider, mint = mins.thumb, maxt = maxs.thumb, self = this, done = { min : false, max : false }; // Clear constraints to prevent animated thumbs from prema...
javascript
function (min, max, skipAnim, force, silent) { var mins = this.minSlider, maxs = this.maxSlider, mint = mins.thumb, maxt = maxs.thumb, self = this, done = { min : false, max : false }; // Clear constraints to prevent animated thumbs from prema...
[ "function", "(", "min", ",", "max", ",", "skipAnim", ",", "force", ",", "silent", ")", "{", "var", "mins", "=", "this", ".", "minSlider", ",", "maxs", "=", "this", ".", "maxSlider", ",", "mint", "=", "mins", ".", "thumb", ",", "maxt", "=", "maxs", ...
Sets the min and max thumbs to new values. @method setValues @param min {int} Pixel offset to assign to the min thumb @param max {int} Pixel offset to assign to the max thumb @param skipAnim {boolean} (optional) Set to true to skip thumb animation. Default false @param force {boolean} (optional) ignore the locked setti...
[ "Sets", "the", "min", "and", "max", "thumbs", "to", "new", "values", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1739-L1789
42,818
neyric/webhookit
public/javascripts/yui/slider/slider.js
function (min, skipAnim, force, silent) { var mins = this.minSlider, self = this; this.activeSlider = mins; // Use a one-time event callback to delay the updateValue call // until after the slide operation is done self = this; this._oneTimeCallback(mins,'sli...
javascript
function (min, skipAnim, force, silent) { var mins = this.minSlider, self = this; this.activeSlider = mins; // Use a one-time event callback to delay the updateValue call // until after the slide operation is done self = this; this._oneTimeCallback(mins,'sli...
[ "function", "(", "min", ",", "skipAnim", ",", "force", ",", "silent", ")", "{", "var", "mins", "=", "this", ".", "minSlider", ",", "self", "=", "this", ";", "this", ".", "activeSlider", "=", "mins", ";", "// Use a one-time event callback to delay the updateVal...
Set the min thumb position to a new value. @method setMinValue @param min {int} Pixel offset for min thumb @param skipAnim {boolean} (optional) Set to true to skip thumb animation. Default false @param force {boolean} (optional) ignore the locked setting and set value anyway. Default false @param silent {boolean} (opti...
[ "Set", "the", "min", "thumb", "position", "to", "a", "new", "value", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1802-L1819
42,819
neyric/webhookit
public/javascripts/yui/slider/slider.js
function (max, skipAnim, force, silent) { var maxs = this.maxSlider, self = this; this.activeSlider = maxs; // Use a one-time event callback to delay the updateValue call // until after the slide operation is done this._oneTimeCallback(maxs,'slideEnd',function () { ...
javascript
function (max, skipAnim, force, silent) { var maxs = this.maxSlider, self = this; this.activeSlider = maxs; // Use a one-time event callback to delay the updateValue call // until after the slide operation is done this._oneTimeCallback(maxs,'slideEnd',function () { ...
[ "function", "(", "max", ",", "skipAnim", ",", "force", ",", "silent", ")", "{", "var", "maxs", "=", "this", ".", "maxSlider", ",", "self", "=", "this", ";", "this", ".", "activeSlider", "=", "maxs", ";", "// Use a one-time event callback to delay the updateVal...
Set the max thumb position to a new value. @method setMaxValue @param max {int} Pixel offset for max thumb @param skipAnim {boolean} (optional) Set to true to skip thumb animation. Default false @param force {boolean} (optional) ignore the locked setting and set value anyway. Default false @param silent {boolean} (opti...
[ "Set", "the", "max", "thumb", "position", "to", "a", "new", "value", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1832-L1848
42,820
neyric/webhookit
public/javascripts/yui/slider/slider.js
function(silent) { var min = this.minSlider.getValue(), max = this.maxSlider.getValue(), changed = false, mint,maxt,dim,minConstraint,maxConstraint,thumbInnerWidth; if (min != this.minVal || max != this.maxVal) { changed = true; mint ...
javascript
function(silent) { var min = this.minSlider.getValue(), max = this.maxSlider.getValue(), changed = false, mint,maxt,dim,minConstraint,maxConstraint,thumbInnerWidth; if (min != this.minVal || max != this.maxVal) { changed = true; mint ...
[ "function", "(", "silent", ")", "{", "var", "min", "=", "this", ".", "minSlider", ".", "getValue", "(", ")", ",", "max", "=", "this", ".", "maxSlider", ".", "getValue", "(", ")", ",", "changed", "=", "false", ",", "mint", ",", "maxt", ",", "dim", ...
Executed when one of the sliders is moved @method updateValue @param silent {boolean} (optional) Set to true to skip firing change events. Default false @private
[ "Executed", "when", "one", "of", "the", "sliders", "is", "moved" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1857-L1899
42,821
neyric/webhookit
public/javascripts/yui/slider/slider.js
function(e) { var min = this.minSlider, max = this.maxSlider, minLocked = min.isLocked() || !min.backgroundEnabled, maxLocked = max.isLocked() || !min.backgroundEnabled, Ev = YAHOO.util.Event, d; if (minLocked || maxLocked) { this...
javascript
function(e) { var min = this.minSlider, max = this.maxSlider, minLocked = min.isLocked() || !min.backgroundEnabled, maxLocked = max.isLocked() || !min.backgroundEnabled, Ev = YAHOO.util.Event, d; if (minLocked || maxLocked) { this...
[ "function", "(", "e", ")", "{", "var", "min", "=", "this", ".", "minSlider", ",", "max", "=", "this", ".", "maxSlider", ",", "minLocked", "=", "min", ".", "isLocked", "(", ")", "||", "!", "min", ".", "backgroundEnabled", ",", "maxLocked", "=", "max",...
A background click will move the slider thumb nearest to the click. Override if you need different behavior. @method selectActiveSlider @param e {Event} the mousedown event @private
[ "A", "background", "click", "will", "move", "the", "slider", "thumb", "nearest", "to", "the", "click", ".", "Override", "if", "you", "need", "different", "behavior", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1908-L1927
42,822
neyric/webhookit
public/javascripts/yui/slider/slider.js
function(e) { if (!e._handled && !this.minSlider._sliding && !this.maxSlider._sliding) { e._handled = true; this.selectActiveSlider(e); return YW.Slider.prototype.onMouseDown.call(this.activeSlider, e); } else { return false; } }
javascript
function(e) { if (!e._handled && !this.minSlider._sliding && !this.maxSlider._sliding) { e._handled = true; this.selectActiveSlider(e); return YW.Slider.prototype.onMouseDown.call(this.activeSlider, e); } else { return false; } }
[ "function", "(", "e", ")", "{", "if", "(", "!", "e", ".", "_handled", "&&", "!", "this", ".", "minSlider", ".", "_sliding", "&&", "!", "this", ".", "maxSlider", ".", "_sliding", ")", "{", "e", ".", "_handled", "=", "true", ";", "this", ".", "sele...
Delegates the onMouseDown to the appropriate Slider @method _handleMouseDown @param e {Event} mouseup event @protected
[ "Delegates", "the", "onMouseDown", "to", "the", "appropriate", "Slider" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1936-L1944
42,823
neyric/webhookit
public/javascripts/yui/slider/slider.js
function (o,evt,fn) { var sub = function () { // Unsubscribe myself o.unsubscribe(evt, sub); // Pass the event handler arguments to the one time callback fn.apply({},arguments); }; o.subscribe(evt,sub); }
javascript
function (o,evt,fn) { var sub = function () { // Unsubscribe myself o.unsubscribe(evt, sub); // Pass the event handler arguments to the one time callback fn.apply({},arguments); }; o.subscribe(evt,sub); }
[ "function", "(", "o", ",", "evt", ",", "fn", ")", "{", "var", "sub", "=", "function", "(", ")", "{", "// Unsubscribe myself", "o", ".", "unsubscribe", "(", "evt", ",", "sub", ")", ";", "// Pass the event handler arguments to the one time callback", "fn", ".", ...
Schedule an event callback that will execute once, then unsubscribe itself. @method _oneTimeCallback @param o {EventProvider} Object to attach the event to @param evt {string} Name of the event @param fn {Function} function to execute once @private
[ "Schedule", "an", "event", "callback", "that", "will", "execute", "once", "then", "unsubscribe", "itself", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1967-L1975
42,824
neyric/webhookit
public/javascripts/yui/slider/slider.js
function (o,evt) { var ce,i,len,j,subs,newSubs; if (o.__yui_events && o.events[evt]) { for (i = o.__yui_events.length; i >= 0; --i) { if (o.__yui_events[i].type === evt) { ce = o.__yui_events[i]; break; } } ...
javascript
function (o,evt) { var ce,i,len,j,subs,newSubs; if (o.__yui_events && o.events[evt]) { for (i = o.__yui_events.length; i >= 0; --i) { if (o.__yui_events[i].type === evt) { ce = o.__yui_events[i]; break; } } ...
[ "function", "(", "o", ",", "evt", ")", "{", "var", "ce", ",", "i", ",", "len", ",", "j", ",", "subs", ",", "newSubs", ";", "if", "(", "o", ".", "__yui_events", "&&", "o", ".", "events", "[", "evt", "]", ")", "{", "for", "(", "i", "=", "o", ...
Clean up the slideEnd event subscribers array, since each one-time callback will be replaced in the event's subscribers property with null. This will cause memory bloat and loss of performance. @method _cleanEvent @param o {EventProvider} object housing the CustomEvent @param evt {string} name of the CustomEvent @priv...
[ "Clean", "up", "the", "slideEnd", "event", "subscribers", "array", "since", "each", "one", "-", "time", "callback", "will", "be", "replaced", "in", "the", "event", "s", "subscribers", "property", "with", "null", ".", "This", "will", "cause", "memory", "bloat...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/slider/slider.js#L1986-L2008
42,825
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
createElement
function createElement(el, attrs) { var newEl = document.createElement(el); attrs = attrs || {}; if (attrs.className) { Dom.addClass(newEl, attrs.className); } if (attrs.styles) { setStyles(newEl, attrs.styles); } if (attrs.parent) { ...
javascript
function createElement(el, attrs) { var newEl = document.createElement(el); attrs = attrs || {}; if (attrs.className) { Dom.addClass(newEl, attrs.className); } if (attrs.styles) { setStyles(newEl, attrs.styles); } if (attrs.parent) { ...
[ "function", "createElement", "(", "el", ",", "attrs", ")", "{", "var", "newEl", "=", "document", ".", "createElement", "(", "el", ")", ";", "attrs", "=", "attrs", "||", "{", "}", ";", "if", "(", "attrs", ".", "className", ")", "{", "Dom", ".", "add...
Create an element, set its class name and optionally install the element to its parent. @method createElement @param el {String} The element to be created @param attrs {Object} Configuration of parent, class and id attributes. If the content is specified, it is inserted after creation of the element. The content can al...
[ "Create", "an", "element", "set", "its", "class", "name", "and", "optionally", "install", "the", "element", "to", "its", "parent", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L314-L343
42,826
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
getStyle
function getStyle(el, style, type) { var value; if (!el) { return 0; } function getStyleIntVal(el, style) { var val; /* * XXX: Safari calculates incorrect marginRight for an element * which has its parent element style set ...
javascript
function getStyle(el, style, type) { var value; if (!el) { return 0; } function getStyleIntVal(el, style) { var val; /* * XXX: Safari calculates incorrect marginRight for an element * which has its parent element style set ...
[ "function", "getStyle", "(", "el", ",", "style", ",", "type", ")", "{", "var", "value", ";", "if", "(", "!", "el", ")", "{", "return", "0", ";", "}", "function", "getStyleIntVal", "(", "el", ",", "style", ")", "{", "var", "val", ";", "/*\n ...
Get the computed style of an element. @method getStyle @param el {HTMLElement} The element for which the style needs to be returned. @param style {String} The style attribute @param type {String} "int", "float", etc. (defaults to int) @private
[ "Get", "the", "computed", "style", "of", "an", "element", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L355-L445
42,827
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
getCarouselItemSize
function getCarouselItemSize(which) { var carousel = this, child, item, size = 0, first = carousel.get("firstVisible"), vertical = false; if (carousel._itemsTable.numItems === 0) { return 0; } item = carousel._...
javascript
function getCarouselItemSize(which) { var carousel = this, child, item, size = 0, first = carousel.get("firstVisible"), vertical = false; if (carousel._itemsTable.numItems === 0) { return 0; } item = carousel._...
[ "function", "getCarouselItemSize", "(", "which", ")", "{", "var", "carousel", "=", "this", ",", "child", ",", "item", ",", "size", "=", "0", ",", "first", "=", "carousel", ".", "get", "(", "\"firstVisible\"", ")", ",", "vertical", "=", "false", ";", "i...
Compute and return the height or width of a single Carousel item depending upon the orientation. @method getCarouselItemSize @param which {String} "height" or "width" to be returned. If this is passed explicitly, the calculated size is not cached. @private
[ "Compute", "and", "return", "the", "height", "or", "width", "of", "a", "single", "Carousel", "item", "depending", "upon", "the", "orientation", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L456-L496
42,828
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
getCarouselItemPosition
function getCarouselItemPosition(pos) { var carousel = this, itemsPerRow = carousel._cols, itemsPerCol = carousel._rows, page, sz, isVertical, itemsCol, itemsRow, sentinel, delta = 0, top, ...
javascript
function getCarouselItemPosition(pos) { var carousel = this, itemsPerRow = carousel._cols, itemsPerCol = carousel._rows, page, sz, isVertical, itemsCol, itemsRow, sentinel, delta = 0, top, ...
[ "function", "getCarouselItemPosition", "(", "pos", ")", "{", "var", "carousel", "=", "this", ",", "itemsPerRow", "=", "carousel", ".", "_cols", ",", "itemsPerCol", "=", "carousel", ".", "_rows", ",", "page", ",", "sz", ",", "isVertical", ",", "itemsCol", "...
Compute and return the position of a Carousel item based on its position. @method getCarouselItemPosition @param position {Number} The position of the Carousel item. @private
[ "Compute", "and", "return", "the", "position", "of", "a", "Carousel", "item", "based", "on", "its", "position", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L521-L596
42,829
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
getScrollOffset
function getScrollOffset(delta) { var itemSize = 0, size = 0; itemSize = getCarouselItemSize.call(this); size = itemSize * delta; return size; }
javascript
function getScrollOffset(delta) { var itemSize = 0, size = 0; itemSize = getCarouselItemSize.call(this); size = itemSize * delta; return size; }
[ "function", "getScrollOffset", "(", "delta", ")", "{", "var", "itemSize", "=", "0", ",", "size", "=", "0", ";", "itemSize", "=", "getCarouselItemSize", ".", "call", "(", "this", ")", ";", "size", "=", "itemSize", "*", "delta", ";", "return", "size", ";...
Return the scrolling offset size given the number of elements to scroll. @method getScrollOffset @param delta {Number} The delta number of elements to scroll by. @private
[ "Return", "the", "scrolling", "offset", "size", "given", "the", "number", "of", "elements", "to", "scroll", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L619-L627
42,830
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
setItemSelection
function setItemSelection(newpos, oldpos) { var carousel = this, cssClass = carousel.CLASSES, el, firstItem = carousel._firstItem, isCircular = carousel.get("isCircular"), numItems = carousel.get("numItems"), numVisible = carousel.get(...
javascript
function setItemSelection(newpos, oldpos) { var carousel = this, cssClass = carousel.CLASSES, el, firstItem = carousel._firstItem, isCircular = carousel.get("isCircular"), numItems = carousel.get("numItems"), numVisible = carousel.get(...
[ "function", "setItemSelection", "(", "newpos", ",", "oldpos", ")", "{", "var", "carousel", "=", "this", ",", "cssClass", "=", "carousel", ".", "CLASSES", ",", "el", ",", "firstItem", "=", "carousel", ".", "_firstItem", ",", "isCircular", "=", "carousel", "...
Set the selected item. @method setItemSelection @param {Number} newpos The index of the new position @param {Number} oldpos The index of the previous position @private
[ "Set", "the", "selected", "item", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L663-L706
42,831
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
syncPagerUi
function syncPagerUi(page) { var carousel = this, numPages, numVisible; // Don't do anything if the Carousel is not rendered if (!carousel._hasRendered) { return; } numVisible = carousel.get("numVisible"); if (!JS.isNumber(page)) { page = Math.f...
javascript
function syncPagerUi(page) { var carousel = this, numPages, numVisible; // Don't do anything if the Carousel is not rendered if (!carousel._hasRendered) { return; } numVisible = carousel.get("numVisible"); if (!JS.isNumber(page)) { page = Math.f...
[ "function", "syncPagerUi", "(", "page", ")", "{", "var", "carousel", "=", "this", ",", "numPages", ",", "numVisible", ";", "// Don't do anything if the Carousel is not rendered", "if", "(", "!", "carousel", ".", "_hasRendered", ")", "{", "return", ";", "}", "num...
Synchronize and redraw the Pager UI if necessary. @method syncPagerUi @private
[ "Synchronize", "and", "redraw", "the", "Pager", "UI", "if", "necessary", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L800-L824
42,832
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
getDimensions
function getDimensions(el, which) { switch (which) { case 'height': return getStyle(el, "marginTop") + getStyle(el, "marginBottom") + getStyle(el, "paddingTop") + getStyle(el, "paddingBottom") + ...
javascript
function getDimensions(el, which) { switch (which) { case 'height': return getStyle(el, "marginTop") + getStyle(el, "marginBottom") + getStyle(el, "paddingTop") + getStyle(el, "paddingBottom") + ...
[ "function", "getDimensions", "(", "el", ",", "which", ")", "{", "switch", "(", "which", ")", "{", "case", "'height'", ":", "return", "getStyle", "(", "el", ",", "\"marginTop\"", ")", "+", "getStyle", "(", "el", ",", "\"marginBottom\"", ")", "+", "getStyl...
Get full dimensions of an element. @method getDimensions @param {Object} el The element to get the dimensions of @param {String} which Get the height or width of an element @private
[ "Get", "full", "dimensions", "of", "an", "element", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L834-L855
42,833
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
syncUi
function syncUi(o) { var carousel = this; if (!JS.isObject(o)) { return; } switch (o.ev) { case itemAddedEvent: carousel._syncUiForItemAdd(o); break; case itemRemovedEvent: carousel._syncUiForItemRemove(o); bre...
javascript
function syncUi(o) { var carousel = this; if (!JS.isObject(o)) { return; } switch (o.ev) { case itemAddedEvent: carousel._syncUiForItemAdd(o); break; case itemRemovedEvent: carousel._syncUiForItemRemove(o); bre...
[ "function", "syncUi", "(", "o", ")", "{", "var", "carousel", "=", "this", ";", "if", "(", "!", "JS", ".", "isObject", "(", "o", ")", ")", "{", "return", ";", "}", "switch", "(", "o", ".", "ev", ")", "{", "case", "itemAddedEvent", ":", "carousel",...
Handle UI update. Call the appropriate methods on events fired when an item is added, or removed for synchronizing the DOM. @method syncUi @param {Object} o The item that needs to be added or removed @private
[ "Handle", "UI", "update", ".", "Call", "the", "appropriate", "methods", "on", "events", "fired", "when", "an", "item", "is", "added", "or", "removed", "for", "synchronizing", "the", "DOM", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L866-L889
42,834
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
updateStateAfterScroll
function updateStateAfterScroll(item, sentinel) { var carousel = this, page = carousel.get("currentPage"), newPage, numPerPage = carousel.get("numVisible"); newPage = parseInt(carousel._firstItem / numPerPage, 10); if (newPage != page) { c...
javascript
function updateStateAfterScroll(item, sentinel) { var carousel = this, page = carousel.get("currentPage"), newPage, numPerPage = carousel.get("numVisible"); newPage = parseInt(carousel._firstItem / numPerPage, 10); if (newPage != page) { c...
[ "function", "updateStateAfterScroll", "(", "item", ",", "sentinel", ")", "{", "var", "carousel", "=", "this", ",", "page", "=", "carousel", ".", "get", "(", "\"currentPage\"", ")", ",", "newPage", ",", "numPerPage", "=", "carousel", ".", "get", "(", "\"num...
Update the state variables after scrolling the Carousel view port. @method updateStateAfterScroll @param {Integer} item The index to which the Carousel has scrolled to. @param {Integer} sentinel The last element in the view port. @private
[ "Update", "the", "state", "variables", "after", "scrolling", "the", "Carousel", "view", "port", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L899-L927
42,835
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, n = carousel.get("numItems"); while (n > 0) { if (!carousel.removeItem(0)) { YAHOO.log("Item could not be removed - missing?", "warn", WidgetName); } /* ...
javascript
function () { var carousel = this, n = carousel.get("numItems"); while (n > 0) { if (!carousel.removeItem(0)) { YAHOO.log("Item could not be removed - missing?", "warn", WidgetName); } /* ...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "n", "=", "carousel", ".", "get", "(", "\"numItems\"", ")", ";", "while", "(", "n", ">", "0", ")", "{", "if", "(", "!", "carousel", ".", "removeItem", "(", "0", ")", ")", "{", "YAH...
Clears the items from Carousel. @method clearItems @public
[ "Clears", "the", "items", "from", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L1564-L1586
42,836
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, first, focusEl, isSelectionInvisible, itemsTable, last, numVisible, selectOnScroll, selected, selItem; // Don't do a...
javascript
function () { var carousel = this, first, focusEl, isSelectionInvisible, itemsTable, last, numVisible, selectOnScroll, selected, selItem; // Don't do a...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "first", ",", "focusEl", ",", "isSelectionInvisible", ",", "itemsTable", ",", "last", ",", "numVisible", ",", "selectOnScroll", ",", "selected", ",", "selItem", ";", "// Don't do anything if the Car...
Set focus on the Carousel. @method focus @public
[ "Set", "focus", "on", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L1594-L1643
42,837
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this; if (carousel.fireEvent(beforeHideEvent) !== false) { carousel.removeClass(carousel.CLASSES.VISIBLE); carousel.fireEvent(hideEvent); } }
javascript
function () { var carousel = this; if (carousel.fireEvent(beforeHideEvent) !== false) { carousel.removeClass(carousel.CLASSES.VISIBLE); carousel.fireEvent(hideEvent); } }
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ";", "if", "(", "carousel", ".", "fireEvent", "(", "beforeHideEvent", ")", "!==", "false", ")", "{", "carousel", ".", "removeClass", "(", "carousel", ".", "CLASSES", ".", "VISIBLE", ")", ";", "...
Hide the Carousel. @method hide @public
[ "Hide", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L1651-L1658
42,838
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (el, attrs) { var carousel = this, elId = el, // save for a rainy day parse = false, selected; if (!el) { YAHOO.log(el + " is neither an HTML element, nor a string", "error", WidgetName); ...
javascript
function (el, attrs) { var carousel = this, elId = el, // save for a rainy day parse = false, selected; if (!el) { YAHOO.log(el + " is neither an HTML element, nor a string", "error", WidgetName); ...
[ "function", "(", "el", ",", "attrs", ")", "{", "var", "carousel", "=", "this", ",", "elId", "=", "el", ",", "// save for a rainy day", "parse", "=", "false", ",", "selected", ";", "if", "(", "!", "el", ")", "{", "YAHOO", ".", "log", "(", "el", "+",...
Initialize the Carousel. @method init @public @param el {HTMLElement | String} The html element that represents the Carousel container. @param attrs {Object} The set of configuration attributes for creating the Carousel.
[ "Initialize", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L1670-L1742
42,839
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (attrs) { var carousel = this; attrs = attrs || {}; Carousel.superclass.initAttributes.call(carousel, attrs); /** * @attribute carouselEl * @description The type of the Carousel element. * @default OL * @type ...
javascript
function (attrs) { var carousel = this; attrs = attrs || {}; Carousel.superclass.initAttributes.call(carousel, attrs); /** * @attribute carouselEl * @description The type of the Carousel element. * @default OL * @type ...
[ "function", "(", "attrs", ")", "{", "var", "carousel", "=", "this", ";", "attrs", "=", "attrs", "||", "{", "}", ";", "Carousel", ".", "superclass", ".", "initAttributes", ".", "call", "(", "carousel", ",", "attrs", ")", ";", "/**\n * @attribute...
Initialize the configuration attributes used to create the Carousel. @method initAttributes @public @param attrs {Object} The set of configuration attributes for creating the Carousel.
[ "Initialize", "the", "configuration", "attributes", "used", "to", "create", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L1752-L1975
42,840
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (index) { var carousel = this; if (index < 0 || index >= carousel.get("numItems")) { YAHOO.log("Index out of bounds", "error", WidgetName); return null; } if (carousel._itemsTable.items[index]) { return Dom.get(ca...
javascript
function (index) { var carousel = this; if (index < 0 || index >= carousel.get("numItems")) { YAHOO.log("Index out of bounds", "error", WidgetName); return null; } if (carousel._itemsTable.items[index]) { return Dom.get(ca...
[ "function", "(", "index", ")", "{", "var", "carousel", "=", "this", ";", "if", "(", "index", "<", "0", "||", "index", ">=", "carousel", ".", "get", "(", "\"numItems\"", ")", ")", "{", "YAHOO", ".", "log", "(", "\"Index out of bounds\"", ",", "\"error\"...
Return the carouselItemEl at index or null if the index is not found. @method getElementForItem @param index {Number} The index of the item to be returned @return {Element} Return the item at index or null if not found @public
[ "Return", "the", "carouselItemEl", "at", "index", "or", "null", "if", "the", "index", "is", "not", "found", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2119-L2132
42,841
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, els = [], i; for (i = 0; i < carousel._itemsTable.numItems; i++) { els.push(carousel.getElementForItem(i)); } return els; }
javascript
function () { var carousel = this, els = [], i; for (i = 0; i < carousel._itemsTable.numItems; i++) { els.push(carousel.getElementForItem(i)); } return els; }
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "els", "=", "[", "]", ",", "i", ";", "for", "(", "i", "=", "0", ";", "i", "<", "carousel", ".", "_itemsTable", ".", "numItems", ";", "i", "++", ")", "{", "els", ".", "push", "(",...
Return the carouselItemEl for all items in the Carousel. @method getElementForItems @return {Array} Return all the items @public
[ "Return", "the", "carouselItemEl", "for", "all", "items", "in", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2141-L2149
42,842
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (index) { var carousel = this; if (index < 0 || index >= carousel.get("numItems")) { YAHOO.log("Index out of bounds", "error", WidgetName); return null; } if (carousel._itemsTable.numItems > index) { if (!JS.isUnd...
javascript
function (index) { var carousel = this; if (index < 0 || index >= carousel.get("numItems")) { YAHOO.log("Index out of bounds", "error", WidgetName); return null; } if (carousel._itemsTable.numItems > index) { if (!JS.isUnd...
[ "function", "(", "index", ")", "{", "var", "carousel", "=", "this", ";", "if", "(", "index", "<", "0", "||", "index", ">=", "carousel", ".", "get", "(", "\"numItems\"", ")", ")", "{", "YAHOO", ".", "log", "(", "\"Index out of bounds\"", ",", "\"error\"...
Return the item at index or null if the index is not found. @method getItem @param index {Number} The index of the item to be returned @return {Object} Return the item at index or null if not found @public
[ "Return", "the", "item", "at", "index", "or", "null", "if", "the", "index", "is", "not", "found", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2159-L2174
42,843
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (id) { var carousel = this, n = carousel.get("numItems"), i = 0, items = carousel._itemsTable.items, item; while (i < n) { item = items[i] || {}; if(item.id == id) { retu...
javascript
function (id) { var carousel = this, n = carousel.get("numItems"), i = 0, items = carousel._itemsTable.items, item; while (i < n) { item = items[i] || {}; if(item.id == id) { retu...
[ "function", "(", "id", ")", "{", "var", "carousel", "=", "this", ",", "n", "=", "carousel", ".", "get", "(", "\"numItems\"", ")", ",", "i", "=", "0", ",", "items", "=", "carousel", ".", "_itemsTable", ".", "items", ",", "item", ";", "while", "(", ...
Return the position of the Carousel item that has the id "id", or -1 if the id is not found. @method getItemPositionById @param index {Number} The index of the item to be returned @public
[ "Return", "the", "position", "of", "the", "Carousel", "item", "that", "has", "the", "id", "id", "or", "-", "1", "if", "the", "id", "is", "not", "found", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2228-L2244
42,844
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, i = carousel.get("firstVisible"), n = i + carousel.get("numVisible"), r = []; while (i < n) { r.push(carousel.getElementForItem(i)); i++; } ...
javascript
function () { var carousel = this, i = carousel.get("firstVisible"), n = i + carousel.get("numVisible"), r = []; while (i < n) { r.push(carousel.getElementForItem(i)); i++; } ...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "i", "=", "carousel", ".", "get", "(", "\"firstVisible\"", ")", ",", "n", "=", "i", "+", "carousel", ".", "get", "(", "\"numVisible\"", ")", ",", "r", "=", "[", "]", ";", "while", "(...
Return all visible items as an array. @method getVisibleItems @return {Array} The array of visible items @public
[ "Return", "all", "visible", "items", "as", "an", "array", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2253-L2265
42,845
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (index) { var carousel = this, item, num = carousel.get("numItems"); if (index < 0 || index >= num) { YAHOO.log("Index out of bounds", "error", WidgetName); return false; } item = carousel._it...
javascript
function (index) { var carousel = this, item, num = carousel.get("numItems"); if (index < 0 || index >= num) { YAHOO.log("Index out of bounds", "error", WidgetName); return false; } item = carousel._it...
[ "function", "(", "index", ")", "{", "var", "carousel", "=", "this", ",", "item", ",", "num", "=", "carousel", ".", "get", "(", "\"numItems\"", ")", ";", "if", "(", "index", "<", "0", "||", "index", ">=", "num", ")", "{", "YAHOO", ".", "log", "(",...
Remove an item at index from the Carousel. @method removeItem @public @param index {Number} The position to where in the list (starts from zero). @return {Boolean} Return true on success, false otherwise
[ "Remove", "an", "item", "at", "index", "from", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2276-L2297
42,846
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (item, index) { var carousel = this, className, content, elId, numItems = carousel.get("numItems"), oel, el = item; if (!item) { return false; } if (...
javascript
function (item, index) { var carousel = this, className, content, elId, numItems = carousel.get("numItems"), oel, el = item; if (!item) { return false; } if (...
[ "function", "(", "item", ",", "index", ")", "{", "var", "carousel", "=", "this", ",", "className", ",", "content", ",", "elId", ",", "numItems", "=", "carousel", ".", "get", "(", "\"numItems\"", ")", ",", "oel", ",", "el", "=", "item", ";", "if", "...
Replace an item at index witin Carousel. @method replaceItem @public @param item {String | Object | HTMLElement} The item to be appended to the Carousel. If the parameter is a string, it is assumed to be the content of the newly created item. If the parameter is an object, it is assumed to supply the content and an op...
[ "Replace", "an", "item", "at", "index", "witin", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2313-L2362
42,847
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (appendTo) { var carousel = this, cssClass = carousel.CLASSES, rows = carousel._rows; carousel.addClass(cssClass.CAROUSEL); if (!carousel._clipEl) { carousel._clipEl = carousel._createCarouselClip(); carouse...
javascript
function (appendTo) { var carousel = this, cssClass = carousel.CLASSES, rows = carousel._rows; carousel.addClass(cssClass.CAROUSEL); if (!carousel._clipEl) { carousel._clipEl = carousel._createCarouselClip(); carouse...
[ "function", "(", "appendTo", ")", "{", "var", "carousel", "=", "this", ",", "cssClass", "=", "carousel", ".", "CLASSES", ",", "rows", "=", "carousel", ".", "_rows", ";", "carousel", ".", "addClass", "(", "cssClass", ".", "CAROUSEL", ")", ";", "if", "("...
Render the Carousel. @method render @public @param appendTo {HTMLElement | String} The element to which the Carousel should be appended prior to rendering. @return {Boolean} Status of the operation
[ "Render", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2400-L2444
42,848
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, isVertical = carousel.get("isVertical"), cols = carousel._cols, item = carousel._firstItem - carousel.get("numVisible"); if (item < 0) { // only account for multi-row when scrolling backwards from item ...
javascript
function () { var carousel = this, isVertical = carousel.get("isVertical"), cols = carousel._cols, item = carousel._firstItem - carousel.get("numVisible"); if (item < 0) { // only account for multi-row when scrolling backwards from item ...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "isVertical", "=", "carousel", ".", "get", "(", "\"isVertical\"", ")", ",", "cols", "=", "carousel", ".", "_cols", ",", "item", "=", "carousel", ".", "_firstItem", "-", "carousel", ".", "g...
Scroll the Carousel by a page backward. @method scrollPageBackward @public
[ "Scroll", "the", "Carousel", "by", "a", "page", "backward", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2476-L2493
42,849
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, item = carousel._firstItem + carousel.get("numVisible"); if (item > carousel.get("numItems")) { item = 0; } if (carousel.get("selectOnScroll")) { carousel._selectedItem = carousel._ge...
javascript
function () { var carousel = this, item = carousel._firstItem + carousel.get("numVisible"); if (item > carousel.get("numItems")) { item = 0; } if (carousel.get("selectOnScroll")) { carousel._selectedItem = carousel._ge...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "item", "=", "carousel", ".", "_firstItem", "+", "carousel", ".", "get", "(", "\"numVisible\"", ")", ";", "if", "(", "item", ">", "carousel", ".", "get", "(", "\"numItems\"", ")", ")", "...
Scroll the Carousel by a page forward. @method scrollPageForward @public
[ "Scroll", "the", "Carousel", "by", "a", "page", "forward", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2501-L2514
42,850
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, newpos = 0, selected = carousel.get("selectedItem"); if (selected == this._firstItem) { newpos = selected - carousel.get("numVisible"); carousel._selectedItem = carousel._getSelectedItem(selecte...
javascript
function () { var carousel = this, newpos = 0, selected = carousel.get("selectedItem"); if (selected == this._firstItem) { newpos = selected - carousel.get("numVisible"); carousel._selectedItem = carousel._getSelectedItem(selecte...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "newpos", "=", "0", ",", "selected", "=", "carousel", ".", "get", "(", "\"selectedItem\"", ")", ";", "if", "(", "selected", "==", "this", ".", "_firstItem", ")", "{", "newpos", "=", "sel...
Select the previous item in the Carousel. @method selectPreviousItem @public
[ "Select", "the", "previous", "item", "in", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2667-L2681
42,851
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, newpos = 0; newpos = carousel.get("selectedItem") + carousel.get("scrollIncrement"); carousel.set("selectedItem", carousel._getSelectedItem(newpos)); }
javascript
function () { var carousel = this, newpos = 0; newpos = carousel.get("selectedItem") + carousel.get("scrollIncrement"); carousel.set("selectedItem", carousel._getSelectedItem(newpos)); }
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "newpos", "=", "0", ";", "newpos", "=", "carousel", ".", "get", "(", "\"selectedItem\"", ")", "+", "carousel", ".", "get", "(", "\"scrollIncrement\"", ")", ";", "carousel", ".", "set", "("...
Select the next item in the Carousel. @method selectNextItem @public
[ "Select", "the", "next", "item", "in", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2689-L2695
42,852
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, cssClass = carousel.CLASSES; if (carousel.fireEvent(beforeShowEvent) !== false) { carousel.addClass(cssClass.VISIBLE); carousel.fireEvent(showEvent); } }
javascript
function () { var carousel = this, cssClass = carousel.CLASSES; if (carousel.fireEvent(beforeShowEvent) !== false) { carousel.addClass(cssClass.VISIBLE); carousel.fireEvent(showEvent); } }
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "cssClass", "=", "carousel", ".", "CLASSES", ";", "if", "(", "carousel", ".", "fireEvent", "(", "beforeShowEvent", ")", "!==", "false", ")", "{", "carousel", ".", "addClass", "(", "cssClass"...
Display the Carousel. @method show @public
[ "Display", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2703-L2711
42,853
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, timer; if (JS.isUndefined(carousel._autoPlayTimer)) { timer = carousel.get("autoPlayInterval"); if (timer <= 0) { return; } carousel._isAutoPlayInProgress = true; ...
javascript
function () { var carousel = this, timer; if (JS.isUndefined(carousel._autoPlayTimer)) { timer = carousel.get("autoPlayInterval"); if (timer <= 0) { return; } carousel._isAutoPlayInProgress = true; ...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "timer", ";", "if", "(", "JS", ".", "isUndefined", "(", "carousel", ".", "_autoPlayTimer", ")", ")", "{", "timer", "=", "carousel", ".", "get", "(", "\"autoPlayInterval\"", ")", ";", "if",...
Start auto-playing the Carousel. @method startAutoPlay @public
[ "Start", "auto", "-", "playing", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2719-L2733
42,854
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this; if (!JS.isUndefined(carousel._autoPlayTimer)) { clearTimeout(carousel._autoPlayTimer); delete carousel._autoPlayTimer; carousel._isAutoPlayInProgress = false; carousel.fireEvent(stopAutoPlayEvent)...
javascript
function () { var carousel = this; if (!JS.isUndefined(carousel._autoPlayTimer)) { clearTimeout(carousel._autoPlayTimer); delete carousel._autoPlayTimer; carousel._isAutoPlayInProgress = false; carousel.fireEvent(stopAutoPlayEvent)...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ";", "if", "(", "!", "JS", ".", "isUndefined", "(", "carousel", ".", "_autoPlayTimer", ")", ")", "{", "clearTimeout", "(", "carousel", ".", "_autoPlayTimer", ")", ";", "delete", "carousel", ".", ...
Stop auto-playing the Carousel. @method stopAutoPlay @public
[ "Stop", "auto", "-", "playing", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2741-L2750
42,855
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, pagination = carousel._pagination; if(!pagination.el){ return false; } var numItems = carousel.get('numItems'), numVisible = carousel.get('numVisible'), firstVisible = carousel.get('firstVisible')+1, ...
javascript
function () { var carousel = this, pagination = carousel._pagination; if(!pagination.el){ return false; } var numItems = carousel.get('numItems'), numVisible = carousel.get('numVisible'), firstVisible = carousel.get('firstVisible')+1, ...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "pagination", "=", "carousel", ".", "_pagination", ";", "if", "(", "!", "pagination", ".", "el", ")", "{", "return", "false", ";", "}", "var", "numItems", "=", "carousel", ".", "get", "(...
Update interface's pagination data within a registered template. @method updatePagination @public
[ "Update", "interface", "s", "pagination", "data", "within", "a", "registered", "template", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2758-L2781
42,856
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (tpl, pos, cb) { var carousel = this; carousel._pagination.template = tpl; carousel._pagination.callback = cb || {}; if(!carousel._pagination.el){ carousel._pagination.el = createElement('DIV', {className:carousel.CLASSES.PAGINATION}); ...
javascript
function (tpl, pos, cb) { var carousel = this; carousel._pagination.template = tpl; carousel._pagination.callback = cb || {}; if(!carousel._pagination.el){ carousel._pagination.el = createElement('DIV', {className:carousel.CLASSES.PAGINATION}); ...
[ "function", "(", "tpl", ",", "pos", ",", "cb", ")", "{", "var", "carousel", "=", "this", ";", "carousel", ".", "_pagination", ".", "template", "=", "tpl", ";", "carousel", ".", "_pagination", ".", "callback", "=", "cb", "||", "{", "}", ";", "if", "...
Register carousels pagination template, append to interface, and populate. @method registerPagination @param template {String} Pagination template as passed to lang.substitute @public
[ "Register", "carousels", "pagination", "template", "append", "to", "interface", "and", "populate", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2790-L2810
42,857
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (ev, p, o) { o.scope._isAnimationInProgress = false; updateStateAfterScroll.call(o.scope, o.item, o.last); }
javascript
function (ev, p, o) { o.scope._isAnimationInProgress = false; updateStateAfterScroll.call(o.scope, o.item, o.last); }
[ "function", "(", "ev", ",", "p", ",", "o", ")", "{", "o", ".", "scope", ".", "_isAnimationInProgress", "=", "false", ";", "updateStateAfterScroll", ".", "call", "(", "o", ".", "scope", ",", "o", ".", "item", ",", "o", ".", "last", ")", ";", "}" ]
Handle the animation complete event. @method _animationCompleteHandler @param {Event} ev The event. @param {Array} p The event parameters. @param {Object} o The object that has the state of the Carousel @protected
[ "Handle", "the", "animation", "complete", "event", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2868-L2871
42,858
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function() { var carousel = this, currIndex = carousel._firstItem, index; if (currIndex >= carousel.get("numItems") - 1) { if (carousel.get("isCircular")) { index = 0; } else { carousel.stop...
javascript
function() { var carousel = this, currIndex = carousel._firstItem, index; if (currIndex >= carousel.get("numItems") - 1) { if (carousel.get("isCircular")) { index = 0; } else { carousel.stop...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "currIndex", "=", "carousel", ".", "_firstItem", ",", "index", ";", "if", "(", "currIndex", ">=", "carousel", ".", "get", "(", "\"numItems\"", ")", "-", "1", ")", "{", "if", "(", "carous...
Automatically scroll the contents of the Carousel. @method _autoScroll @protected
[ "Automatically", "scroll", "the", "contents", "of", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2878-L2895
42,859
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (elId) { var carousel = this, cssClass = carousel.CLASSES, el = Dom.get(elId); if (!el) { el = createElement("DIV", { className : cssClass.CAROUSEL, id : elId })...
javascript
function (elId) { var carousel = this, cssClass = carousel.CLASSES, el = Dom.get(elId); if (!el) { el = createElement("DIV", { className : cssClass.CAROUSEL, id : elId })...
[ "function", "(", "elId", ")", "{", "var", "carousel", "=", "this", ",", "cssClass", "=", "carousel", ".", "CLASSES", ",", "el", "=", "Dom", ".", "get", "(", "elId", ")", ";", "if", "(", "!", "el", ")", "{", "el", "=", "createElement", "(", "\"DIV...
Create the Carousel. @method createCarousel @param elId {String} The id of the element to be created @protected
[ "Create", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2904-L2922
42,860
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (obj) { var attr, carousel = this, styles = getCarouselItemPosition.call(carousel, obj.pos); return createElement(carousel.get("carouselItemEl"), { className : obj.className, styles : obj.styles, content :...
javascript
function (obj) { var attr, carousel = this, styles = getCarouselItemPosition.call(carousel, obj.pos); return createElement(carousel.get("carouselItemEl"), { className : obj.className, styles : obj.styles, content :...
[ "function", "(", "obj", ")", "{", "var", "attr", ",", "carousel", "=", "this", ",", "styles", "=", "getCarouselItemPosition", ".", "call", "(", "carousel", ",", "obj", ".", "pos", ")", ";", "return", "createElement", "(", "carousel", ".", "get", "(", "...
Create the Carousel item. @method createCarouselItem @param obj {Object} The attributes of the element to be created @protected
[ "Create", "the", "Carousel", "item", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2941-L2951
42,861
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (index) { var carousel = this, isCircular = carousel.get("isCircular"), numItems = carousel.get("numItems"), numVisible = carousel.get("numVisible"), sentinel = numItems - 1; if (index < 0) { index = ...
javascript
function (index) { var carousel = this, isCircular = carousel.get("isCircular"), numItems = carousel.get("numItems"), numVisible = carousel.get("numVisible"), sentinel = numItems - 1; if (index < 0) { index = ...
[ "function", "(", "index", ")", "{", "var", "carousel", "=", "this", ",", "isCircular", "=", "carousel", ".", "get", "(", "\"isCircular\"", ")", ",", "numItems", "=", "carousel", ".", "get", "(", "\"numItems\"", ")", ",", "numVisible", "=", "carousel", "....
Return a valid item for a possibly out of bounds index considering the isCircular property. @method _getValidIndex @param index {Number} The index of the item to be returned @return {Object} Return a valid item index @protected
[ "Return", "a", "valid", "item", "for", "a", "possibly", "out", "of", "bounds", "index", "considering", "the", "isCircular", "property", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2962-L2977
42,862
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (val) { var carousel = this, isCircular = carousel.get("isCircular"), numItems = carousel.get("numItems"), sentinel = numItems - 1; if (val < 0) { if (isCircular) { val = numItems + val; ...
javascript
function (val) { var carousel = this, isCircular = carousel.get("isCircular"), numItems = carousel.get("numItems"), sentinel = numItems - 1; if (val < 0) { if (isCircular) { val = numItems + val; ...
[ "function", "(", "val", ")", "{", "var", "carousel", "=", "this", ",", "isCircular", "=", "carousel", ".", "get", "(", "\"isCircular\"", ")", ",", "numItems", "=", "carousel", ".", "get", "(", "\"numItems\"", ")", ",", "sentinel", "=", "numItems", "-", ...
Get the value for the selected item. @method _getSelectedItem @param val {Number} The new value for "selected" item @return {Number} The new value that would be set @protected
[ "Get", "the", "value", "for", "the", "selected", "item", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L2987-L3007
42,863
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (ev) { var carousel = this, carouselItem = carousel.get("carouselItemEl"), container = carousel.get("element"), el, item, target = Event.getTarget(ev), tag = target.tagName.toUpperC...
javascript
function (ev) { var carousel = this, carouselItem = carousel.get("carouselItemEl"), container = carousel.get("element"), el, item, target = Event.getTarget(ev), tag = target.tagName.toUpperC...
[ "function", "(", "ev", ")", "{", "var", "carousel", "=", "this", ",", "carouselItem", "=", "carousel", ".", "get", "(", "\"carouselItemEl\"", ")", ",", "container", "=", "carousel", ".", "get", "(", "\"element\"", ")", ",", "el", ",", "item", ",", "tar...
The "click" handler for the item. @method _itemClickHandler @param {Event} ev The event object @protected
[ "The", "click", "handler", "for", "the", "item", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3016-L3045
42,864
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (ev) { var carousel = this, key = Event.getCharCode(ev), target = Event.getTarget(ev), prevent = false; // do not mess while animation is in progress or naving via select if (carousel.isAnimating() || target.tagName.to...
javascript
function (ev) { var carousel = this, key = Event.getCharCode(ev), target = Event.getTarget(ev), prevent = false; // do not mess while animation is in progress or naving via select if (carousel.isAnimating() || target.tagName.to...
[ "function", "(", "ev", ")", "{", "var", "carousel", "=", "this", ",", "key", "=", "Event", ".", "getCharCode", "(", "ev", ")", ",", "target", "=", "Event", ".", "getTarget", "(", "ev", ")", ",", "prevent", "=", "false", ";", "// do not mess while anima...
The keyboard event handler for Carousel. @method _keyboardEventHandler @param ev {Event} The event that is being handled. @protected
[ "The", "keyboard", "event", "handler", "for", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3054-L3092
42,865
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function(last) { var carousel = this, numItems = carousel.get("numItems"), numVisible = carousel.get("numVisible"), reveal = carousel.get("revealAmount"), first = carousel._itemsTable.items.length, lastVisible ...
javascript
function(last) { var carousel = this, numItems = carousel.get("numItems"), numVisible = carousel.get("numVisible"), reveal = carousel.get("revealAmount"), first = carousel._itemsTable.items.length, lastVisible ...
[ "function", "(", "last", ")", "{", "var", "carousel", "=", "this", ",", "numItems", "=", "carousel", ".", "get", "(", "\"numItems\"", ")", ",", "numVisible", "=", "carousel", ".", "get", "(", "\"numVisible\"", ")", ",", "reveal", "=", "carousel", ".", ...
The load the required set of items that are needed for display. @method _loadItems @protected
[ "The", "load", "the", "required", "set", "of", "items", "that", "are", "needed", "for", "display", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3100-L3123
42,866
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (ev) { var carousel = this, target = Event.getTarget(ev), page = target.value, item; if (page) { item = carousel.getFirstVisibleOnPage(page); carousel._selectedItem = item; carousel.sc...
javascript
function (ev) { var carousel = this, target = Event.getTarget(ev), page = target.value, item; if (page) { item = carousel.getFirstVisibleOnPage(page); carousel._selectedItem = item; carousel.sc...
[ "function", "(", "ev", ")", "{", "var", "carousel", "=", "this", ",", "target", "=", "Event", ".", "getTarget", "(", "ev", ")", ",", "page", "=", "target", ".", "value", ",", "item", ";", "if", "(", "page", ")", "{", "item", "=", "carousel", ".",...
The "onchange" handler for select box pagination. @method _pagerChangeHandler @param {Event} ev The event object @protected
[ "The", "onchange", "handler", "for", "select", "box", "pagination", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3132-L3144
42,867
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (ev) { var carousel = this, css = carousel.CLASSES, target = Event.getTarget(ev), elNode = target.nodeName.toUpperCase(), val, stringIndex, page, item; if (Dom.hasCl...
javascript
function (ev) { var carousel = this, css = carousel.CLASSES, target = Event.getTarget(ev), elNode = target.nodeName.toUpperCase(), val, stringIndex, page, item; if (Dom.hasCl...
[ "function", "(", "ev", ")", "{", "var", "carousel", "=", "this", ",", "css", "=", "carousel", ".", "CLASSES", ",", "target", "=", "Event", ".", "getTarget", "(", "ev", ")", ",", "elNode", "=", "target", ".", "nodeName", ".", "toUpperCase", "(", ")", ...
The "click" handler for anchor pagination. @method _pagerClickHandler @param {Event} ev The event object @protected
[ "The", "click", "handler", "for", "anchor", "pagination", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3152-L3177
42,868
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (parent) { var carousel = this, child, cssClass, domEl, found, node; cssClass = carousel.CLASSES; domEl = carousel.get("carouselEl"); found = false; for (child = parent.firstChild; child; child = child.nextSibling) { if (chi...
javascript
function (parent) { var carousel = this, child, cssClass, domEl, found, node; cssClass = carousel.CLASSES; domEl = carousel.get("carouselEl"); found = false; for (child = parent.firstChild; child; child = child.nextSibling) { if (chi...
[ "function", "(", "parent", ")", "{", "var", "carousel", "=", "this", ",", "child", ",", "cssClass", ",", "domEl", ",", "found", ",", "node", ";", "cssClass", "=", "carousel", ".", "CLASSES", ";", "domEl", "=", "carousel", ".", "get", "(", "\"carouselEl...
Find the Carousel within a container. The Carousel is identified by the first element that matches the carousel element tag or the element that has the Carousel class. @method parseCarousel @param parent {HTMLElement} The parent element to look under @return {Boolean} True if Carousel is found, false otherwise @protec...
[ "Find", "the", "Carousel", "within", "a", "container", ".", "The", "Carousel", "is", "identified", "by", "the", "first", "element", "that", "matches", "the", "carousel", "element", "tag", "or", "the", "element", "that", "has", "the", "Carousel", "class", "."...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3189-L3212
42,869
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, cssClass = carousel.CLASSES, i=0, rows, child, domItemEl, elId, node, index = carousel.get("firstVisible"), parent = carousel._...
javascript
function () { var carousel = this, cssClass = carousel.CLASSES, i=0, rows, child, domItemEl, elId, node, index = carousel.get("firstVisible"), parent = carousel._...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "cssClass", "=", "carousel", ".", "CLASSES", ",", "i", "=", "0", ",", "rows", ",", "child", ",", "domItemEl", ",", "elId", ",", "node", ",", "index", "=", "carousel", ".", "get", "(", ...
Find the items within the Carousel and add them to the items table. A Carousel item is identified by elements that matches the carousel item element tag. @method parseCarouselItems @protected
[ "Find", "the", "items", "within", "the", "Carousel", "and", "add", "them", "to", "the", "items", "table", ".", "A", "Carousel", "item", "is", "identified", "by", "elements", "that", "matches", "the", "carousel", "item", "element", "tag", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3222-L3252
42,870
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (parent) { var carousel = this, cfg, cssClass = carousel.CLASSES, el, i, j, nav, rv = false; nav = Dom.getElementsByClassName(cssClass.PREV_PAGE, "*", parent); ...
javascript
function (parent) { var carousel = this, cfg, cssClass = carousel.CLASSES, el, i, j, nav, rv = false; nav = Dom.getElementsByClassName(cssClass.PREV_PAGE, "*", parent); ...
[ "function", "(", "parent", ")", "{", "var", "carousel", "=", "this", ",", "cfg", ",", "cssClass", "=", "carousel", ".", "CLASSES", ",", "el", ",", "i", ",", "j", ",", "nav", ",", "rv", "=", "false", ";", "nav", "=", "Dom", ".", "getElementsByClassN...
Find the Carousel navigation within a container. The navigation elements need to match the carousel navigation class names. @method parseCarouselNavigation @param parent {HTMLElement} The parent element to look under @return {Boolean} True if at least one is found, false otherwise @protected
[ "Find", "the", "Carousel", "navigation", "within", "a", "container", ".", "The", "navigation", "elements", "need", "to", "match", "the", "carousel", "navigation", "class", "names", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3263-L3339
42,871
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, i, isVertical = carousel.get("isVertical"), firstVisible = carousel.get("firstVisible"), item, n, rsz, sz; if (carousel._itemsTable.numItems < 1) { return; } sz = getCarouselItemSize.call(carousel, ...
javascript
function () { var carousel = this, i, isVertical = carousel.get("isVertical"), firstVisible = carousel.get("firstVisible"), item, n, rsz, sz; if (carousel._itemsTable.numItems < 1) { return; } sz = getCarouselItemSize.call(carousel, ...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "i", ",", "isVertical", "=", "carousel", ".", "get", "(", "\"isVertical\"", ")", ",", "firstVisible", "=", "carousel", ".", "get", "(", "\"firstVisible\"", ")", ",", "item", ",", "n", ",",...
Refresh the widget UI if it is not already rendered, on first item addition. @method _refreshUi @protected
[ "Refresh", "the", "widget", "UI", "if", "it", "is", "not", "already", "rendered", "on", "first", "item", "addition", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3348-L3370
42,872
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (offset) { var carousel = this, which; which = carousel.get("isVertical") ? "top" : "left"; Dom.setStyle(carousel._carouselEl, which, offset + "px"); }
javascript
function (offset) { var carousel = this, which; which = carousel.get("isVertical") ? "top" : "left"; Dom.setStyle(carousel._carouselEl, which, offset + "px"); }
[ "function", "(", "offset", ")", "{", "var", "carousel", "=", "this", ",", "which", ";", "which", "=", "carousel", ".", "get", "(", "\"isVertical\"", ")", "?", "\"top\"", ":", "\"left\"", ";", "Dom", ".", "setStyle", "(", "carousel", ".", "_carouselEl", ...
Set the Carousel offset to the passed offset. @method _setCarouselOffset @protected
[ "Set", "the", "Carousel", "offset", "to", "the", "passed", "offset", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3378-L3383
42,873
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (clip, attr) { var carousel = this, config = carousel.CONFIG, cssClass = carousel.CLASSES, isVertical, rows, cols, size; isVertical = carousel.get("isVertical"); rows = c...
javascript
function (clip, attr) { var carousel = this, config = carousel.CONFIG, cssClass = carousel.CLASSES, isVertical, rows, cols, size; isVertical = carousel.get("isVertical"); rows = c...
[ "function", "(", "clip", ",", "attr", ")", "{", "var", "carousel", "=", "this", ",", "config", "=", "carousel", ".", "CONFIG", ",", "cssClass", "=", "carousel", ".", "CLASSES", ",", "isVertical", ",", "rows", ",", "cols", ",", "size", ";", "isVertical"...
Set the container size. @method _setContainerSize @param clip {HTMLElement} The clip container element. @param attr {String} Either set the height or width. @protected
[ "Set", "the", "container", "size", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3556-L3609
42,874
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (val) { var carousel = this; if (val >= 0 && val < carousel.get("numItems")) { carousel.scrollTo(val); } else { val = carousel.get("firstVisible"); } return val; }
javascript
function (val) { var carousel = this; if (val >= 0 && val < carousel.get("numItems")) { carousel.scrollTo(val); } else { val = carousel.get("firstVisible"); } return val; }
[ "function", "(", "val", ")", "{", "var", "carousel", "=", "this", ";", "if", "(", "val", ">=", "0", "&&", "val", "<", "carousel", ".", "get", "(", "\"numItems\"", ")", ")", "{", "carousel", ".", "scrollTo", "(", "val", ")", ";", "}", "else", "{",...
Set the value for the Carousel's first visible item. @method _setFirstVisible @param val {Number} The new value for firstVisible @return {Number} The new value that would be set @protected
[ "Set", "the", "value", "for", "the", "Carousel", "s", "first", "visible", "item", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3619-L3628
42,875
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (cfg) { var carousel = this; if (cfg.prev) { Event.on(cfg.prev, "click", scrollPageBackward, carousel); } if (cfg.next) { Event.on(cfg.next, "click", scrollPageForward, carousel); } }
javascript
function (cfg) { var carousel = this; if (cfg.prev) { Event.on(cfg.prev, "click", scrollPageBackward, carousel); } if (cfg.next) { Event.on(cfg.next, "click", scrollPageForward, carousel); } }
[ "function", "(", "cfg", ")", "{", "var", "carousel", "=", "this", ";", "if", "(", "cfg", ".", "prev", ")", "{", "Event", ".", "on", "(", "cfg", ".", "prev", ",", "\"click\"", ",", "scrollPageBackward", ",", "carousel", ")", ";", "}", "if", "(", "...
Set the value for the Carousel's navigation. @method _setNavigation @param cfg {Object} The navigation configuration @return {Object} The new value that would be set @protected
[ "Set", "the", "value", "for", "the", "Carousel", "s", "navigation", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3638-L3647
42,876
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (val) { var carousel = this, numVisible = val; if(JS.isArray(val)) { carousel._cols = val[0]; carousel._rows = val[1]; numVisible = val[0] * val[1]; } return numVisible; }
javascript
function (val) { var carousel = this, numVisible = val; if(JS.isArray(val)) { carousel._cols = val[0]; carousel._rows = val[1]; numVisible = val[0] * val[1]; } return numVisible; }
[ "function", "(", "val", ")", "{", "var", "carousel", "=", "this", ",", "numVisible", "=", "val", ";", "if", "(", "JS", ".", "isArray", "(", "val", ")", ")", "{", "carousel", ".", "_cols", "=", "val", "[", "0", "]", ";", "carousel", ".", "_rows", ...
Set the value for the number of visible items in the Carousel. @method _numVisibleSetter @param val {Number} The new value for numVisible @return {Number} The new value that would be set @protected
[ "Set", "the", "value", "for", "the", "number", "of", "visible", "items", "in", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3671-L3681
42,877
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (val) { var carousel = this, cssClass = carousel.CLASSES; if (val) { carousel.replaceClass(cssClass.HORIZONTAL, cssClass.VERTICAL); } else { carousel.replaceClass(cssClass.VERTICAL, cssClass.HORIZONTAL); } ...
javascript
function (val) { var carousel = this, cssClass = carousel.CLASSES; if (val) { carousel.replaceClass(cssClass.HORIZONTAL, cssClass.VERTICAL); } else { carousel.replaceClass(cssClass.VERTICAL, cssClass.HORIZONTAL); } ...
[ "function", "(", "val", ")", "{", "var", "carousel", "=", "this", ",", "cssClass", "=", "carousel", ".", "CLASSES", ";", "if", "(", "val", ")", "{", "carousel", ".", "replaceClass", "(", "cssClass", ".", "HORIZONTAL", ",", "cssClass", ".", "VERTICAL", ...
Set the orientation of the Carousel. @method _setOrientation @param val {Boolean} The new value for isVertical @return {Boolean} The new value that would be set @protected
[ "Set", "the", "orientation", "of", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3735-L3747
42,878
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (val) { var carousel = this; if (val >= 0 && val <= 100) { val = parseInt(val, 10); val = JS.isNumber(val) ? val : 0; carousel._setClipContainerSize(); } else { val = carousel.get("revealAmount"); }...
javascript
function (val) { var carousel = this; if (val >= 0 && val <= 100) { val = parseInt(val, 10); val = JS.isNumber(val) ? val : 0; carousel._setClipContainerSize(); } else { val = carousel.get("revealAmount"); }...
[ "function", "(", "val", ")", "{", "var", "carousel", "=", "this", ";", "if", "(", "val", ">=", "0", "&&", "val", "<=", "100", ")", "{", "val", "=", "parseInt", "(", "val", ",", "10", ")", ";", "val", "=", "JS", ".", "isNumber", "(", "val", ")...
Set the value for the reveal amount percentage in the Carousel. @method _setRevealAmount @param val {Number} The new value for revealAmount @return {Number} The new value that would be set @protected
[ "Set", "the", "value", "for", "the", "reveal", "amount", "percentage", "in", "the", "Carousel", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3757-L3768
42,879
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this; return carousel.get("currentPage") + 1 == carousel.get("numPages") ? carousel.get("numItems") - 1: carousel.get("firstVisible") + carousel.get("numVisible") - 1; }
javascript
function () { var carousel = this; return carousel.get("currentPage") + 1 == carousel.get("numPages") ? carousel.get("numItems") - 1: carousel.get("firstVisible") + carousel.get("numVisible") - 1; }
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ";", "return", "carousel", ".", "get", "(", "\"currentPage\"", ")", "+", "1", "==", "carousel", ".", "get", "(", "\"numPages\"", ")", "?", "carousel", ".", "get", "(", "\"numItems\"", ")", "-",...
Get the index of the last visible item @method _getLastVisible @protected
[ "Get", "the", "index", "of", "the", "last", "visible", "item" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3799-L3804
42,880
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (obj) { var attr, carousel = this, carouselEl = carousel._carouselEl, el, item, itemsTable = carousel._itemsTable, oel, pos, sibling, styles; ...
javascript
function (obj) { var attr, carousel = this, carouselEl = carousel._carouselEl, el, item, itemsTable = carousel._itemsTable, oel, pos, sibling, styles; ...
[ "function", "(", "obj", ")", "{", "var", "attr", ",", "carousel", "=", "this", ",", "carouselEl", "=", "carousel", ".", "_carouselEl", ",", "el", ",", "item", ",", "itemsTable", "=", "carousel", ".", "_itemsTable", ",", "oel", ",", "pos", ",", "sibling...
Synchronize and redraw the UI after an item is added. @method _syncUiForItemAdd @protected
[ "Synchronize", "and", "redraw", "the", "UI", "after", "an", "item", "is", "added", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3812-L3883
42,881
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (o) { var carousel = this, carouselEl = carousel._carouselEl, itemsTable = carousel._itemsTable, pos = o.pos, item = o.newItem, oel = o.oldItem, el; el = carousel._crea...
javascript
function (o) { var carousel = this, carouselEl = carousel._carouselEl, itemsTable = carousel._itemsTable, pos = o.pos, item = o.newItem, oel = o.oldItem, el; el = carousel._crea...
[ "function", "(", "o", ")", "{", "var", "carousel", "=", "this", ",", "carouselEl", "=", "carousel", ".", "_carouselEl", ",", "itemsTable", "=", "carousel", ".", "_itemsTable", ",", "pos", "=", "o", ".", "pos", ",", "item", "=", "o", ".", "newItem", "...
Synchronize and redraw the UI after an item is replaced. @method _syncUiForItemReplace @protected
[ "Synchronize", "and", "redraw", "the", "UI", "after", "an", "item", "is", "replaced", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3891-L3923
42,882
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (obj) { var carousel = this, carouselEl = carousel._carouselEl, el, item, num, pos; num = carousel.get("numItems"); item = obj.item; pos = obj.pos; if (item && (el = Dom.get(item.id))) { if (el && ...
javascript
function (obj) { var carousel = this, carouselEl = carousel._carouselEl, el, item, num, pos; num = carousel.get("numItems"); item = obj.item; pos = obj.pos; if (item && (el = Dom.get(item.id))) { if (el && ...
[ "function", "(", "obj", ")", "{", "var", "carousel", "=", "this", ",", "carouselEl", "=", "carousel", ".", "_carouselEl", ",", "el", ",", "item", ",", "num", ",", "pos", ";", "num", "=", "carousel", ".", "get", "(", "\"numItems\"", ")", ";", "item", ...
Synchronize and redraw the UI after an item is removed. @method _syncUiForItemAdd @protected
[ "Synchronize", "and", "redraw", "the", "UI", "after", "an", "item", "is", "removed", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3931-L3954
42,883
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (obj) { var carousel = this, carouselEl = carousel._carouselEl, itemsTable = carousel._itemsTable, len = itemsTable.items.length, sibling = itemsTable.items[obj.last + 1], el, j; // attemp...
javascript
function (obj) { var carousel = this, carouselEl = carousel._carouselEl, itemsTable = carousel._itemsTable, len = itemsTable.items.length, sibling = itemsTable.items[obj.last + 1], el, j; // attemp...
[ "function", "(", "obj", ")", "{", "var", "carousel", "=", "this", ",", "carouselEl", "=", "carousel", ".", "_carouselEl", ",", "itemsTable", "=", "carousel", ".", "_itemsTable", ",", "len", "=", "itemsTable", ".", "items", ".", "length", ",", "sibling", ...
Synchronize and redraw the UI for lazy loading. @method _syncUiForLazyLoading @protected
[ "Synchronize", "and", "redraw", "the", "UI", "for", "lazy", "loading", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L3962-L4006
42,884
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var attr, carousel = this, numItems = carousel.get("numItems"), i, itemsTable = carousel._itemsTable, items = itemsTable.items, loading = itemsTable.loading, item, st...
javascript
function () { var attr, carousel = this, numItems = carousel.get("numItems"), i, itemsTable = carousel._itemsTable, items = itemsTable.items, loading = itemsTable.loading, item, st...
[ "function", "(", ")", "{", "var", "attr", ",", "carousel", "=", "this", ",", "numItems", "=", "carousel", ".", "get", "(", "\"numItems\"", ")", ",", "i", ",", "itemsTable", "=", "carousel", ".", "_itemsTable", ",", "items", "=", "itemsTable", ".", "ite...
Redraw the UI for item positioning. @method _syncUiItems @protected
[ "Redraw", "the", "UI", "for", "item", "positioning", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4014-L4039
42,885
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (el, setFocus) { var children, cssClass = this.CLASSES, grandParent, parent = el.parentNode; if (!parent) { return; } grandParent = parent.parentNode; if (el.nodeName.toUpperCase() ==...
javascript
function (el, setFocus) { var children, cssClass = this.CLASSES, grandParent, parent = el.parentNode; if (!parent) { return; } grandParent = parent.parentNode; if (el.nodeName.toUpperCase() ==...
[ "function", "(", "el", ",", "setFocus", ")", "{", "var", "children", ",", "cssClass", "=", "this", ".", "CLASSES", ",", "grandParent", ",", "parent", "=", "el", ".", "parentNode", ";", "if", "(", "!", "parent", ")", "{", "return", ";", "}", "grandPar...
Set the correct class for the navigation buttons. @method _updateNavButtons @param el {Object} The target button @param setFocus {Boolean} True to set focus ring, false otherwise. @protected
[ "Set", "the", "correct", "class", "for", "the", "navigation", "buttons", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4049-L4074
42,886
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, css = carousel.CLASSES, cur = carousel._pages.cur, // current page el, html, i, item, n = carousel.get("numVisible"), n...
javascript
function () { var carousel = this, css = carousel.CLASSES, cur = carousel._pages.cur, // current page el, html, i, item, n = carousel.get("numVisible"), n...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "css", "=", "carousel", ".", "CLASSES", ",", "cur", "=", "carousel", ".", "_pages", ".", "cur", ",", "// current page", "el", ",", "html", ",", "i", ",", "item", ",", "n", "=", "carous...
Update the UI for the pager buttons based on the current page and the number of pages. @method _updatePagerButtons @protected
[ "Update", "the", "UI", "for", "the", "pager", "buttons", "based", "on", "the", "current", "page", "and", "the", "number", "of", "pages", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4083-L4128
42,887
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function () { var carousel = this, css = carousel.CLASSES, cur = carousel._pages.cur, // current page el, i, item, n = carousel.get("numVisible"), num = carousel._pages.num, ...
javascript
function () { var carousel = this, css = carousel.CLASSES, cur = carousel._pages.cur, // current page el, i, item, n = carousel.get("numVisible"), num = carousel._pages.num, ...
[ "function", "(", ")", "{", "var", "carousel", "=", "this", ",", "css", "=", "carousel", ".", "CLASSES", ",", "cur", "=", "carousel", ".", "_pages", ".", "cur", ",", "// current page", "el", ",", "i", ",", "item", ",", "n", "=", "carousel", ".", "ge...
Update the UI for the pager menu based on the current page and the number of pages. If the number of pages is greater than MAX_PAGER_BUTTONS, then the selection of pages is provided by a drop down menu instead of a set of buttons. @method _updatePagerMenu @protected
[ "Update", "the", "UI", "for", "the", "pager", "menu", "based", "on", "the", "current", "page", "and", "the", "number", "of", "pages", ".", "If", "the", "number", "of", "pages", "is", "greater", "than", "MAX_PAGER_BUTTONS", "then", "the", "selection", "of",...
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4139-L4197
42,888
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (el) { var carousel = this; if (el) { if (carousel._focusableItemEl) { carousel._focusableItemEl.tabIndex = -1; } carousel._focusableItemEl = el; el.tabIndex = 0; } }
javascript
function (el) { var carousel = this; if (el) { if (carousel._focusableItemEl) { carousel._focusableItemEl.tabIndex = -1; } carousel._focusableItemEl = el; el.tabIndex = 0; } }
[ "function", "(", "el", ")", "{", "var", "carousel", "=", "this", ";", "if", "(", "el", ")", "{", "if", "(", "carousel", ".", "_focusableItemEl", ")", "{", "carousel", ".", "_focusableItemEl", ".", "tabIndex", "=", "-", "1", ";", "}", "carousel", ".",...
Set the correct tab index for the Carousel items. @method _updateTabIndex @param el {Object} The element to be focussed @protected
[ "Set", "the", "correct", "tab", "index", "for", "the", "Carousel", "items", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4206-L4216
42,889
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (cfg) { var rv = true; if (JS.isObject(cfg)) { if (cfg.speed) { rv = rv && JS.isNumber(cfg.speed); } if (cfg.effect) { rv = rv && JS.isFunction(cfg.effect); } else if (!JS.isUndefine...
javascript
function (cfg) { var rv = true; if (JS.isObject(cfg)) { if (cfg.speed) { rv = rv && JS.isNumber(cfg.speed); } if (cfg.effect) { rv = rv && JS.isFunction(cfg.effect); } else if (!JS.isUndefine...
[ "function", "(", "cfg", ")", "{", "var", "rv", "=", "true", ";", "if", "(", "JS", ".", "isObject", "(", "cfg", ")", ")", "{", "if", "(", "cfg", ".", "speed", ")", "{", "rv", "=", "rv", "&&", "JS", ".", "isNumber", "(", "cfg", ".", "speed", ...
Validate animation parameters. @method _validateAnimation @param cfg {Object} The animation configuration @return {Boolean} The status of the validation @protected
[ "Validate", "animation", "parameters", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4226-L4243
42,890
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (val) { var carousel = this, numItems = carousel.get("numItems"); if (JS.isNumber(val)) { if (numItems === 0 && val == numItems) { return true; } else { return (val >= 0 && val < numItems); } ...
javascript
function (val) { var carousel = this, numItems = carousel.get("numItems"); if (JS.isNumber(val)) { if (numItems === 0 && val == numItems) { return true; } else { return (val >= 0 && val < numItems); } ...
[ "function", "(", "val", ")", "{", "var", "carousel", "=", "this", ",", "numItems", "=", "carousel", ".", "get", "(", "\"numItems\"", ")", ";", "if", "(", "JS", ".", "isNumber", "(", "val", ")", ")", "{", "if", "(", "numItems", "===", "0", "&&", "...
Validate the firstVisible value. @method _validateFirstVisible @param val {Number} The first visible value @return {Boolean} The status of the validation @protected
[ "Validate", "the", "firstVisible", "value", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4253-L4265
42,891
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (cfg) { var i; if (!JS.isObject(cfg)) { return false; } if (cfg.prev) { if (!JS.isArray(cfg.prev)) { return false; } for (i in cfg.prev) { if (cfg.prev.hasOw...
javascript
function (cfg) { var i; if (!JS.isObject(cfg)) { return false; } if (cfg.prev) { if (!JS.isArray(cfg.prev)) { return false; } for (i in cfg.prev) { if (cfg.prev.hasOw...
[ "function", "(", "cfg", ")", "{", "var", "i", ";", "if", "(", "!", "JS", ".", "isObject", "(", "cfg", ")", ")", "{", "return", "false", ";", "}", "if", "(", "cfg", ".", "prev", ")", "{", "if", "(", "!", "JS", ".", "isArray", "(", "cfg", "."...
Validate and navigation parameters. @method _validateNavigation @param cfg {Object} The navigation configuration @return {Boolean} The status of the validation @protected
[ "Validate", "and", "navigation", "parameters", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4275-L4309
42,892
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (val) { var rv = false; if (JS.isNumber(val)) { rv = val > 0 && val <= this.get("numItems"); } else if (JS.isArray(val)) { if (JS.isNumber(val[0]) && JS.isNumber(val[1])) { rv = val[0] * val[1] > 0 && val.length == 2; ...
javascript
function (val) { var rv = false; if (JS.isNumber(val)) { rv = val > 0 && val <= this.get("numItems"); } else if (JS.isArray(val)) { if (JS.isNumber(val[0]) && JS.isNumber(val[1])) { rv = val[0] * val[1] > 0 && val.length == 2; ...
[ "function", "(", "val", ")", "{", "var", "rv", "=", "false", ";", "if", "(", "JS", ".", "isNumber", "(", "val", ")", ")", "{", "rv", "=", "val", ">", "0", "&&", "val", "<=", "this", ".", "get", "(", "\"numItems\"", ")", ";", "}", "else", "if"...
Validate the numVisible value. @method _validateNumVisible @param val {Number} The numVisible value @return {Boolean} The status of the validation @protected
[ "Validate", "the", "numVisible", "value", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4331-L4343
42,893
neyric/webhookit
public/javascripts/yui/carousel/carousel-debug.js
function (val) { var rv = false; if (JS.isNumber(val)) { rv = val >= 0 && val < 100; } return rv; }
javascript
function (val) { var rv = false; if (JS.isNumber(val)) { rv = val >= 0 && val < 100; } return rv; }
[ "function", "(", "val", ")", "{", "var", "rv", "=", "false", ";", "if", "(", "JS", ".", "isNumber", "(", "val", ")", ")", "{", "rv", "=", "val", ">=", "0", "&&", "val", "<", "100", ";", "}", "return", "rv", ";", "}" ]
Validate the revealAmount value. @method _validateRevealAmount @param val {Number} The revealAmount value @return {Boolean} The status of the validation @protected
[ "Validate", "the", "revealAmount", "value", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/carousel/carousel-debug.js#L4353-L4361
42,894
neyric/webhookit
public/javascripts/yui/colorpicker/colorpicker-debug.js
function() { var size = this.get(this.OPT.PICKER_SIZE), h = this.get(this.OPT.HUE); h = size - Math.round(h / 360 * size); // 0 is at the top and bottom of the hue slider. Always go to // the top so we don't end up sending the thumb to the b...
javascript
function() { var size = this.get(this.OPT.PICKER_SIZE), h = this.get(this.OPT.HUE); h = size - Math.round(h / 360 * size); // 0 is at the top and bottom of the hue slider. Always go to // the top so we don't end up sending the thumb to the b...
[ "function", "(", ")", "{", "var", "size", "=", "this", ".", "get", "(", "this", ".", "OPT", ".", "PICKER_SIZE", ")", ",", "h", "=", "this", ".", "get", "(", "this", ".", "OPT", ".", "HUE", ")", ";", "h", "=", "size", "-", "Math", ".", "round"...
Moves the hue slider into the position dictated by the current state of the control @method _updateHueSlider @protected
[ "Moves", "the", "hue", "slider", "into", "the", "position", "dictated", "by", "the", "current", "state", "of", "the", "control" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L564-L580
42,895
neyric/webhookit
public/javascripts/yui/colorpicker/colorpicker-debug.js
function() { var size = this.get(this.OPT.PICKER_SIZE), s = this.get(this.OPT.SATURATION), v = this.get(this.OPT.VALUE); s = Math.round(s * size / 100); v = Math.round(size - (v * size / 100)); this.logger.log("Setting picker slider to " ...
javascript
function() { var size = this.get(this.OPT.PICKER_SIZE), s = this.get(this.OPT.SATURATION), v = this.get(this.OPT.VALUE); s = Math.round(s * size / 100); v = Math.round(size - (v * size / 100)); this.logger.log("Setting picker slider to " ...
[ "function", "(", ")", "{", "var", "size", "=", "this", ".", "get", "(", "this", ".", "OPT", ".", "PICKER_SIZE", ")", ",", "s", "=", "this", ".", "get", "(", "this", ".", "OPT", ".", "SATURATION", ")", ",", "v", "=", "this", ".", "get", "(", "...
Moves the picker slider into the position dictated by the current state of the control @method _updatePickerSlider @protected
[ "Moves", "the", "picker", "slider", "into", "the", "position", "dictated", "by", "the", "current", "state", "of", "the", "control" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L588-L599
42,896
neyric/webhookit
public/javascripts/yui/colorpicker/colorpicker-debug.js
function() { this.logger.log("hsv " + [this._getH(),this._getS(),this._getV()]); this.set(this.OPT.RGB, Color.hsv2rgb(this._getH(), this._getS(), this._getV())); }
javascript
function() { this.logger.log("hsv " + [this._getH(),this._getS(),this._getV()]); this.set(this.OPT.RGB, Color.hsv2rgb(this._getH(), this._getS(), this._getV())); }
[ "function", "(", ")", "{", "this", ".", "logger", ".", "log", "(", "\"hsv \"", "+", "[", "this", ".", "_getH", "(", ")", ",", "this", ".", "_getS", "(", ")", ",", "this", ".", "_getV", "(", ")", "]", ")", ";", "this", ".", "set", "(", "this",...
Reads the sliders and converts the values to RGB, updating the internal state for all the individual form fields @method _getValuesFromSliders @protected
[ "Reads", "the", "sliders", "and", "converts", "the", "values", "to", "RGB", "updating", "the", "internal", "state", "for", "all", "the", "individual", "form", "fields" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L709-L712
42,897
neyric/webhookit
public/javascripts/yui/colorpicker/colorpicker-debug.js
function(newOffset) { this.logger.log("hue update: " + newOffset , "warn"); var h = this._getH(), rgb = Color.hsv2rgb(h, 1, 1), styleDef = "rgb(" + rgb.join(",") + ")"; this.set(this.OPT.HUE, h, true); // set picker backgroun...
javascript
function(newOffset) { this.logger.log("hue update: " + newOffset , "warn"); var h = this._getH(), rgb = Color.hsv2rgb(h, 1, 1), styleDef = "rgb(" + rgb.join(",") + ")"; this.set(this.OPT.HUE, h, true); // set picker backgroun...
[ "function", "(", "newOffset", ")", "{", "this", ".", "logger", ".", "log", "(", "\"hue update: \"", "+", "newOffset", ",", "\"warn\"", ")", ";", "var", "h", "=", "this", ".", "_getH", "(", ")", ",", "rgb", "=", "Color", ".", "hsv2rgb", "(", "h", ",...
Event handler for the hue slider. @method _onHueSliderChange @param newOffset {int} pixels from the start position @protected
[ "Event", "handler", "for", "the", "hue", "slider", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L739-L757
42,898
neyric/webhookit
public/javascripts/yui/colorpicker/colorpicker-debug.js
function () { // bind all of our elements var o=this.OPT, ids = this.get(o.IDS), els = this.get(o.ELEMENTS), i, el, id; // Add the default value as a key for each element for easier lookup for (i in this.ID) { ...
javascript
function () { // bind all of our elements var o=this.OPT, ids = this.get(o.IDS), els = this.get(o.ELEMENTS), i, el, id; // Add the default value as a key for each element for easier lookup for (i in this.ID) { ...
[ "function", "(", ")", "{", "// bind all of our elements", "var", "o", "=", "this", ".", "OPT", ",", "ids", "=", "this", ".", "get", "(", "o", ".", "IDS", ")", ",", "els", "=", "this", ".", "get", "(", "o", ".", "ELEMENTS", ")", ",", "i", ",", "...
Creates any missing DOM structure. @method _initElements @protected
[ "Creates", "any", "missing", "DOM", "structure", "." ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L1234-L1274
42,899
neyric/webhookit
public/javascripts/yui/colorpicker/colorpicker-debug.js
function() { var hsv = [this.get(this.OPT.HUE), this.get(this.OPT.SATURATION)/100, this.get(this.OPT.VALUE)/100], rgb = Color.hsv2rgb(hsv); this.logger.log("HSV converted to RGB " + hsv + " : " + rgb); this.set(this.OPT....
javascript
function() { var hsv = [this.get(this.OPT.HUE), this.get(this.OPT.SATURATION)/100, this.get(this.OPT.VALUE)/100], rgb = Color.hsv2rgb(hsv); this.logger.log("HSV converted to RGB " + hsv + " : " + rgb); this.set(this.OPT....
[ "function", "(", ")", "{", "var", "hsv", "=", "[", "this", ".", "get", "(", "this", ".", "OPT", ".", "HUE", ")", ",", "this", ".", "get", "(", "this", ".", "OPT", ".", "SATURATION", ")", "/", "100", ",", "this", ".", "get", "(", "this", ".", ...
Updates the RGB values from the current state of the HSV values. Executed when the one of the HSV form fields are updated _updateRGBFromHSV @protected
[ "Updates", "the", "RGB", "values", "from", "the", "current", "state", "of", "the", "HSV", "values", ".", "Executed", "when", "the", "one", "of", "the", "HSV", "form", "fields", "are", "updated", "_updateRGBFromHSV" ]
13abf6f072e23d536432235da78fd3e4e5d742b6
https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker-debug.js#L1373-L1383