Lines Matching refs:i

6 	var i = t.jCarousel = {};  variable
7 i.version = "0.3.0-beta.5";
9 i.parseTarget = function (t) {
10 var i = !1,
12 …return e ? (t = parseInt(e[2], 10) || 0, e[1] && (i = !0, "-=" === e[1] && (t *= -1))) : "object" …
14 relative: i
16 }, i.detectCarousel = function (t) {
17 for (var i; t.size() > 0;) {
18 if (i = t.filter("[data-jcarousel]"), i.size() > 0) return i;
19 if (i = t.find("[data-jcarousel]"), i.size() > 0) return i;
23 }, i.base = function (s) {
25 version: i.version,
45 options: function (i, s) {
47 if ("string" == typeof i) {
48 if (s === void 0) return this._options[i] === void 0 ? null : this._options[i];
49 this._options[i] = s
50 } else this._options = t.extend({}, this._options, i);
54 …return this._carousel || (this._carousel = i.detectCarousel(this.options("carousel") || this._elem…
56 _trigger: function (i, e, r) {
59 …n = t.Event((i + "." + s).toLowerCase()), t(this).trigger(n, r), n.isDefaultPrevented() && (o = !0)
63 }, i.plugin = function (s, e) {
64 var r = t[s] = function (i, s) {
65 this._element = t(i), this.options(s), this._init(), this.create()
67 return r.fn = r.prototype = t.extend({}, i.base(s), e), t.fn[s] = function (i) { argument
70 return "string" == typeof i ? this.each(function () {
72 …not call methods on " + s + " prior to initialization; " + 'attempted to call method "' + i + '"');
73 …if (!t.isFunction(r[i]) || "_" === i.charAt(0)) return t.error('No such method "' + i + '" for ' +…
74 var o = r[i].apply(r, e);
78 e instanceof r ? e.reload(i) : new r(this, i)
83 function (t, i) {
128 this._reload(), t(i).on("resize.jcarousel", this.onWindowResize)
131 t(i).off("resize.jcarousel", this.onWindowResize)
134 …his.list().width()), this.rtl = this.options("rtl"), null == this.rtl && (this.rtl = function (i) { argument
135 if ("rtl" === ("" + i.attr("dir")).toLowerCase()) return !0;
137 return i.parents("[dir]").each(function () {
138 return /rtl/i.test(t(this).attr("dir")) ? (s = !0, !1) : void 0
141 var i = this._target && this.index(this._target) >= 0 ? this._target : this.closest();
147i.size() > 0 && (this._prepare(i), this.list().find("[data-jcarousel-clone]").remove(), this._item…
151 var i = this.options("list");
152 this._list = t.isFunction(i) ? i.call(this) : this._element.find(i)
158 var i = this.options("items");
159 … this._items = (t.isFunction(i) ? i.call(this) : this.list().find(i)).not("[data-jcarousel-clone]")
167 var i, e = this,
176 if (i = l - s(n.css("margin-" + a)), !(0 >= Math.abs(r) - l + i / 2)) return !1;
199 i = this.items().size() - 1;
200 …return i >= 0 && (t && "first" !== t || i > this.index(this._last) || this.tail && !this.inTail) ?…
213 scroll: function (i, e, r) { argument
215 if (!1 === this._trigger("scroll", null, [i, e])) return this;
217 var n = t.jCarousel.parseTarget(i);
244 moveBy: function (t, i) { argument
246 …& (t.left = e.left + s(t.left) + "px"), t.top && (t.top = e.top + s(t.top) + "px"), this.move(t, i)
248 move: function (i, s) { argument
256 if (!r && a > 0) return l.animate(i, s), void 0;
268 return n || o ? "all" : i.left ? "left" : "top"
273 …te3d(" + (i.left || 0) + "," + (i.top || 0) + ",0)" : n ? u.transform = "translate(" + (i.left || …
277 _scroll: function (i, e, r) { argument
279 …if ("object" != typeof i ? i = this.items().eq(i) : i.jquery === void 0 && (i = t(i)), 0 === i.siz…
280 this.inTail = !1, this._prepare(i);
281 var n = this._position(i),
287 _scrollTail: function (i, s) { argument
295 }), this._animate(r, i, s), this
297 _animate: function (i, s, e) { argument
311 }, this.move(i, o), this
313 _prepare: function (i) { argument
314 var e, r, n, o = this.index(i),
316 l = this.dimension(i),
321 target: i,
322 first: i,
323 last: i,
324 visible: i,
325 fullyvisible: h >= l ? i : t()
331 if (e = this.items().eq(0), r = this._visible.index(e) >= 0, i.get(0) === e.get(0)) break;
349 var i = this._first,
350 s = i.position()[this.lt],
352 r = e ? this.clipping() / 2 - this.dimension(i) / 2 : 0;
353 …rtical ? (s -= this.clipping() - this.dimension(i), s += r) : s -= r, !e && (this.index(t) > this.…
355 _update: function (i) { argument
363 }, n = this.index(i.first || r.first) < this.index(r.first),
367 i[s].each(function () {
370 0 > i[s].index(this) && a.push(this)
371 …rse(), e._trigger("item" + s + "in", t(o)), e._trigger("item" + s + "out", t(a)), e["_" + s] = i[s]
373 for (s in i) o(s);
380 t.jcarousel.fn.scrollIntoView = function (i, s, e) { argument
381 var r, n = t.jCarousel.parseTarget(i),
411 }, this), this.onReload = t.proxy(this._reload, this), this.onEvent = t.proxy(function (i) { argument
412 i.preventDefault();
424 var i, s = t.jCarousel.parseTarget(this.options("target")),
426 if (s.relative) i = e.jcarousel(s.target > 0 ? "hasNext" : "hasPrev");
429 i = e.jcarousel("target").index(r) >= 0
431 return this._active !== i && (this._trigger(i ? "active" : "inactive"), this._active = i), this
461 var i = this.options("perPage");
462 …if (this._pages = {}, this._items = {}, t.isFunction(i) && (i = i.call(this)), null == i) this._pa…
464 … for (var s, e = parseInt(i, 10) || 0, r = this.carousel().jcarousel("items"), n = 1, o = 0; ;) {
473 t.each(this._pages, function (i, s) { argument
474 var e = a._items[i] = t(u.call(a, i, s));
480 …parseFloat(i) > parseFloat(a._currentPage) ? e > r && (t = "+=" + (l.items().size() - e + r)) : r …
487 var i, s = this.carousel().jcarousel("target");
490 return s.is(this) ? (i = t, !1) : void 0
491 }), i ? !1 : void 0
492 …entPage !== i && (this._trigger("inactive", this._items[this._currentPage]), this._trigger("active…
501 …for (var t, i = this.carousel().data("jcarousel"), s = i.items(), e = i.clipping(), r = 0, n = 0, …
503 a[o] = a[o] ? a[o].add(t) : t, r += i.dimension(t), r >= e && (o++, r = 0)