PageSourceSearch

https://www.wewyn.com/asset/js/carrousel.js

js wewyn.com collected 2026-09-26 12:53:51 UTC 27,047 bytes, 496 lines download raw bytes

vendor: 4,486 bytes, lines 1-3
1/*! modernizr 3.0.0 (Custom Build) | MIT *
2 * http://modernizr.com/download/?-csstransforms-csstransforms3d !*/
3!function(e,n,t){function r(e,n){return typeof e===n}function o(){var e,n,t,o,s,i,f;for(var a in y){if(e=[],n=y[a],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t<n.options.aliases.length;t++)e.push(n.options.aliases[t].toLowerCase());for(o=r(n.fn,"function")?n.fn():n.fn,s=0;s<e.length;s++)i=e[s],f=i.split("."),1===f.length?Modernizr[f[0]]=o:(!Modernizr[f[0]]||Modernizr[f[0]]instanceof Boolean||(Modernizr[f[0]]=new Boolean(Modernizr[f[0]])),Modernizr[f[0]][f[1]]=o),C.push((o?"":"no-")+f.join("-"))}}function s(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):_?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function i(){var e=n.body;return e||(e=s(_?"svg":"body"),e.fake=!0),e}function f(e,t,r,o){var f,a,u,l,p="modernizr",d=s("div"),c=i();if(parseInt(r,10))for(;r--;)u=s("div"),u.id=o?o[r]:p+(r+1),d.appendChild(u);return f=s("style"),f.type="text/css",f.id="s"+p,(c.fake?c:d).appendChild(f),c.appendChild(d),f.styleSheet?f.styleSheet.cssText=e:f.appendChild(n.createTextNode(e)),d.id=p,c.fake&&(c.style.background="",c.style.overflow="hidden",l=S.style.overflow,S.style.overflow="hidden",S.appendChild(c)),a=t(d,e),c.fake?(c.parentNode.removeChild(c),S.style.overflow=l,S.offsetHeight):d.parentNode.removeChild(d),!!a}function a(e,n){return!!~(""+e).indexOf(n)}function u(e){return e.replace(/([a-z])-([a-z])/g,function(e,n,t){return n+t.toUpperCase()}).replace(/^-/,"")}function l(e){return e.replace(/([A-Z])/g,function(e,n){return"-"+n.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(n,r){var o=n.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(l(n[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var s=[];o--;)s.push("("+l(n[o])+":"+r+")");return s=s.join(" or "),f("@supports ("+s+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return t}function d(e,n,o,i){function f(){d&&(delete k.style,delete k.modElem)}if(i=r(i,"undefined")?!1:i,!r(o,"undefined")){var l=p(e,o);if(!r(l,"undefined"))return l}for(var d,c,m,v,h,y=["modernizr","tspan"];!k.style;)d=!0,k.modElem=s(y.shift()),k.style=k.modElem.style;for(m=e.length,c=0;m>c;c++)if(v=e[c],h=k.style[v],a(v,"-")&&(v=u(v)),k.style[v]!==t){if(i||r(o,"undefined"))return f(),"pfx"==n?v:!0;try{k.style[v]=o}catch(g){}if(k.style[v]!=h)return f(),"pfx"==n?v:!0}return f(),!1}function c(e,n){return function(){return e.apply(n,arguments)}}function m(e,n,t){var o;for(var s in e)if(e[s]in n)return t===!1?e[s]:(o=n[e[s]],r(o,"function")?c(o,t||n):o);return!1}function v(e,n,t,o,s){var i=e.charAt(0).toUpperCase()+e.slice(1),f=(e+" "+P.join(i+" ")+i).split(" ");return r(n,"string")||r(n,"undefined")?d(f,n,o,s):(f=(e+" "+T.join(i+" ")+i).split(" "),m(f,n,t))}function h(e,n,r){return v(e,t,t,n,r)}var y=[],g={_version:"3.0.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,n){var t=this;setTimeout(function(){n(t[e])},0)},addTest:function(e,n,t){y.push({name:e,fn:n,options:t})},addAsyncTest:function(e){y.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=g,Modernizr=new Modernizr;var C=[],S=n.documentElement,w="CSS"in e&&"supports"in e.CSS,x="supportsCSS"in e;Modernizr.addTest("supports",w||x);var _="svg"===S.nodeName.toLowerCase(),b=g.testStyles=f,z="Moz O ms Webkit",P=g._config.usePrefixes?z.split(" "):[];g._cssomPrefixes=P;var T=g._config.usePrefixes?z.toLowerCase().split(" "):[];g._domPrefixes=T;var E={elem:s("modernizr")};Modernizr._q.push(function(){delete E.elem});var k={style:E.elem.style};Modernizr._q.unshift(function(){delete k.style}),g.testAllProps=v,g.testAllProps=h,Modernizr.addTest("csstransforms3d",function(){var e=!!h("perspective","1px",!0),n=Modernizr._config.usePrefixes;if(e&&(!n||"webkitPerspective"in S.style)){var t;Modernizr.supports?t="@supports (perspective: 1px)":(t="@media (transform-3d)",n&&(t+=",(-webkit-transform-3d)")),t+="{#modernizr{left:9px;position:absolute;height:5px;margin:0;padding:0;border:0}}",b(t,function(n){e=9===n.offsetLeft&&5===n.offsetHeight})}return e}),Modernizr.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&h("transform","scale(1)",!0)}),o(),delete g.addTest,delete g.addAsyncTest;for(var A=0;A<Modernizr._q.length;
3A++)Modernizr._q[A]();e.Modernizr=Modernizr}(window,document);
4
5
6/**
7 *
8 * http://www.anotherhome.net
9 * Copyright 2015, DIYgod
10 * Free to use under the MIT license.
11 *
12 */
13(function ($) {
14
15    $.carrousel = function (options, element) {
16        this.$el = $(element);
17        this._init(options);
18    };
19
20    $.carrousel.defaults = {
21        current: 0,	// index of current item
22        autoplay: true,// slideshow on / off
23        interval: 3000  // time between transitions
24    };
25
26    $.carrousel.prototype = {
27        // 初始化
28        _init: function (options) {
29            this.options = $.extend(true, {}, $.carrousel.defaults, options);
30
31            this.support3d = Modernizr.csstransforms3d;
32            this.support2d = Modernizr.csstransforms;
33
34            this.$wrapper = this.$el.find('.dg-wrapper');
35            this.$items = this.$wrapper.children();
36            this.itemsCount = this.$items.length;
37            this.$nav = this.$el.find('nav');
38            this.$navPrev = this.$nav.find('.dg-prev');
39            this.$navNext = this.$nav.find('.dg-next');
40            this.button = $('#lightButton li');
41            this.box = $('.banner');
42            this.imgWidth = $('.banner .dg-wrapper img').width();
43
44            this.indexB = 0;
45            this.CSSX = 0;
46            this.CSSXout = 0;
47
48            this.button[0].classList.add('light');
49
50            this.current = this.options.current;
51            this.isAnim = false;
52            this.$items.css({
53                'opacity': 1
54            });
55            this._updateWidth();
56            this._layout();
57            // load the events
58            this._loadEvents();
59            // slideshow
60            if (this.options.autoplay) {
61                this._startSlideshow();
62            }
63
64            var _self = this;
65            for (var i = 0, len = this.button.length; i < len; i++) {     // 点击小圆点
66                this.button[i].addEventListener('click', function() {
67                    var toIndex = parseInt(this.getAttribute('index'));
68                    var toMove = toIndex - _self.indexB;
69                    switch (toMove) {
70                        case 0:
71                            break;
72                        case 1:
73                            _self._navigate('next', 'dg-transition');
74                            break;
75                        case -1:
76                            _self._navigate('prev', 'dg-transition');
77                            break;
78                        default:
79                            _self._stopSlideshow();
80                            var bTime = setInterval(function () {
81                                if (!_self.isAnim) {
82                                    if (!toMove) {
83                                        clearInterval(bTime);
84                                        if (_self.options.autoplay) {
85                                            _self._startSlideshow();
86                                        }
87                                    }
88                                    else if (toMove > 0) {
89                                        _self._navigate('next', 'dg-transition-fast');
90                                        toMove--;
91                                    }
92                                    else if (toMove < 0) {
93                                        _self._navigate('prev', 'dg-transition-fast');
94                                        toMove++;
95                                    }
96                                }
97                            }, 0);
98                            break;
99                    }
100                });
101            }
102        },
103
104        // 自适应宽度
105        _updateWidth: function () {
106            if (this.support3d) {
107                if (document.body.clientWidth < 1300) {
108                    this.CSSX = ($(this.box).width() - 10 - this.imgWidth * 0.7) / 2;
109                    this.CSSXout = 0;
110                }
111                else if (document.body.clientWidth >= 1300) {
112                    this.CSSX = ($(this.box).width() * 1.2 - 10 - this.imgWidth * 0.5) / 2 * 0.5;
113                    this.CSSXout = ($(this.box).width() * 1.2 - 10 - this.imgWidth * 0.5) / 2;
114                }
115            }
116            else if (this.support2d) {
117                if (document.body.clientWidth < 1464) {
118                    this.CSSX = ($(this.box).width() - 10 - this.imgWidth * 0.9) / 2;
119                    this.CSSXout = 0;
120                }
121                else if (document.body.clientWidth >= 1464) {
122                    this.CSSX = (($(this.box).width() - 10 - this.imgWidth * 0.8) / 2) * 0.7;
123                    this.CSSXout = ($(this.box).width() - 10 - this.imgWidth * 0.8) / 2;
124                }
125            }
126        },
127
128        // 显示小圆点
129        _showButton: function () {
130            var _self = this;
131            for (var i = 0, len = _self.button.length; i < len; i++) {
132                if (_self.button[i].classList.contains('light')) {
133                    _self.button[i].classList.remove('light');
134                    break;
135                }
136            }
137            _self.button[_self.indexB].classList.add('light');
138        },
139
140        // 用来绑定点击事件
141        _click: function (element, move) {
142            var _self = this;
143            element.off('click.gallery');
144            element.on('click.gallery', function () {
145                if (!this.isAnim) {
146                    _self._navigate(move);
147                    if (_self.options.autoplay) {
148                        _self._startSlideshow();
149                    }
150                }
151            });
152        },
153
154        // 初始样式
155        _layout: function () {
156            this._setItems();
157
158            this.$leftItm.css(this._getCoordinates('left'));
159            this.$rightItm.css(this._getCoordinates('right'));
160            this.$currentItm.css(this._getCoordinates('center')).addClass('dg-center');
161
162            this._click(this.$leftItm, 'prev');
163            this._click(this.$prevItm, 'prev');
164
165            this.$currentItm.off('click.carrousel');
166
167            this._click(this.$rightItm, 'next');
168            this._click(this.$nextItm, 'next');
169
170            this.$nextItm.css(this._getCoordinates('outright'));
171            this.$prevItm.css(this._getCoordinates('outleft'));
172
173            this.$currentItm[0].href = this.$currentItm[0].getAttribute('link');
174        },
175
176        // 更新图片位置
177        _setItems: function () {
178
179            this.$items.removeClass('dg-center');
180
181            this.$currentItm = this.$items.eq(this.current);
182            this.$leftItm = ( this.current === 0 ) ? this.$items.eq(this.itemsCount - 1) : this.$items.eq(this.current - 1);
183            this.$rightItm = ( this.current === this.itemsCount - 1 ) ? this.$items.eq(0) : this.$items.eq(this.current + 1);
184            this.$nextItm = ( this.$rightItm.index() === this.itemsCount - 1 ) ? this.$items.eq(0) : this.$rightItm.next();
185            this.$prevItm = ( this.$leftItm.index() === 0 ) ? this.$items.eq(this.itemsCount - 1) : this.$leftItm.prev();
186        },
187
188        _loadEvents: function () {
189            var _self = this;
190            this.$navPrev.on('click.carrousel', function () {
191                _self._navigate('prev');
192                return false;
193            });
194
195            this.$navNext.on('click.carrousel', function () {
196                _self._navigate('next');
197                return false;
198            });
199
200            this.$wrapper.on('webkitTransitionEnd.carrousel transitionend.carrousel OTransitionEnd.carrousel', function () {
201                _self.$currentItm.addClass('dg-center');
202                _self.$items.removeClass('dg-transition');
203                _self.$items.removeClass('dg-transition-fast');
204                _self.isAnim = false;
205
206                // 处理中间元素的href
207                _self.$currentItm[0].href = _self.$currentItm[0].getAttribute('link');
208                _self.$leftItm[0].href = '#';
209                _self.$rightItm[0].href = '#';
210
211                // 处理左右元素的点击事件
212                _self._click(_self.$leftItm, 'prev');
213                _self._click(_self.$prevItm, 'prev');
214
215                _self.$currentItm.off('click.gallery');
216
217                _self._click(_self.$rightItm, 'next');
218                _self._click(_self.$nextItm, 'next');
219            });
220        },
221
222        // 定义样式
223        _getCoordinates: function (position) {
224            if (this.support3d) {
225                switch (position) {
226                    case 'outleft':
227                        return {
228                            '-webkit-transform': 'translateX(-' + this.CSSXout + 'px) translateZ(-560px) rotateY(45deg)',
229                            '-moz-transform': 'translateX(-' + this.CSSXout + 'px) translateZ(-560px) rotateY(45deg)',
230                            '-o-transform': 'translateX(-' + this.CSSXout + 'px) translateZ(-560px) rotateY(45deg)',
231                            '-ms-transform': 'translateX(-' + this.CSSXout + 'px) translateZ(-560px) rotateY(45deg)',
232                            'transform': 'translateX(-' + this.CSSXout + 'px) translateZ(-560px) rotateY(45deg)',
233                            'opacity': 1
234                        };
235                        break;
236                    case 'outright':
237                        return {
238                            '-webkit-transform': 'translateX(' + this.CSSXout + 'px) translateZ(-560px) rotateY(-45deg)',
239                            '-moz-transform': 'translateX(' + this.CSSXout + 'px) translateZ(-560px) rotateY(-45deg)',
240                            '-o-transform': 'translateX(' + this.CSSXout + 'px) translateZ(-560px) rotateY(-45deg)',
241                            '-ms-transform': 'translateX(' + this.CSSXout + 'px) translateZ(-560px) rotateY(-45deg)',
242                            'transform': 'translateX(' + this.CSSXout + 'px) translateZ(-560px) rotateY(-45deg)',
243                            'opacity': 1
244                        };
245                        break;
246                    case 'left':
247                        return {
248                            '-webkit-transform': 'translateX(-' + this.CSSX + 'px) translateZ(-300px) rotateY(25deg)',
249                            '-moz-transform': 'translateX(-' + this.CSSX + 'px) translateZ(-300px) rotateY(25deg)',
250                            '-o-transform': 'translateX(-' + this.CSSX + 'px) translateZ(-300px) rotateY(25deg)',
251                            '-ms-transform': 'translateX(-' + this.CSSX + 'px) translateZ(-300px) rotateY(25deg)',
252                            'transform': 'translateX(-' + this.CSSX + 'px) translateZ(-300px) rotateY(25deg)',
253                            'opacity': 1,
254                            'visibility': 'visible'
255                        };
256                        break;
257                    case 'right':
258                        return {
259                            '-webkit-transform': 'translateX(' + this.CSSX + 'px) translateZ(-300px) rotateY(-25deg)',
260                            '-moz-transform': 'translateX(' + this.CSSX + 'px) translateZ(-300px) rotateY(-25deg)',
261                            '-o-transform': 'translateX(' + this.CSSX + 'px) translateZ(-300px) rotateY(-25deg)',
262                            '-ms-transform': 'translateX(' + this.CSSX + 'px) translateZ(-300px) rotateY(-25deg)',
263                            'transform': 'translateX(' + this.CSSX + 'px) translateZ(-300px) rotateY(-25deg)',
264                            'opacity': 1,
265                            'visibility': 'visible'
266                        };
267                        break;
268                    case 'center':
269                        return {
270                            '-webkit-transform': 'translateX(0px) translateZ(0px) rotateY(0deg)',
271                            '-moz-transform': 'translateX(0px) translateZ(0px) rotateY(0deg)',
272                            '-o-transform': 'translateX(0px) translateZ(0px) rotateY(0deg)',
273                            '-ms-transform': 'translateX(0px) translateZ(0px) rotateY(0deg)',
274                            'transform': 'translateX(0px) translateZ(0px) rotateY(0deg)',
275                            'opacity': 1,
276                            'visibility': 'visible'
277                        };
278                        break;
279                    case 'hide':
280                        return {
281                            '-webkit-transform': 'translate(0px) scale(0.7)',
282                            'opacity': 1,
283                            'visibility': 'visible',
284                            'z-index': 1
285                        };
286                        break;
287                }
288            }
289            else if (this.support2d) {
290                switch (position) {
291                    case 'outleft':
292                        return {
293                            '-webkit-transform': 'translate(-' + this.CSSXout + 'px) scale(0.8)',
294                            '-moz-transform': 'translate(-' + this.CSSXout + 'px) scale(0.8)',
295                            '-o-transform': 'translate(-' + this.CSSXout + 'px) scale(0.8)',
296                            '-ms-transform': 'translate(-' + this.CSSXout + 'px) scale(0.8)',
297                            'transform': 'translate(-' + this.CSSXout + 'px) scale(0.8)',
298                            'opacity': 1,
299                            'z-index': 2
300                        };
301                        break;
302                    case 'outright':
303                        return {
304                            '-webkit-transform': 'translate(' + this.CSSXout + 'px) scale(0.8)',
305                            '-moz-transform': 'translate(' + this.CSSXout + 'px) scale(0.8)',
306                            '-o-transform': 'translate(' + this.CSSXout + 'px) scale(0.8)',
307                            '-ms-transform': 'translate(' + this.CSSXout + 'px) scale(0.8)',
308                            'transform': 'translate(' + this.CSSXout + 'px) scale(0.8)',
309                            'opacity': 1,
310                            'z-index': 2
311                        };
312                        break;
313                    case 'left':
314                        return {
315                            '-webkit-transform': 'translate(-' + this.CSSX + 'px) scale(0.9)',
316                            '-moz-transform': 'translate(-' + this.CSSX + 'px) scale(0.9)',
317                            '-o-transform': 'translate(-' + this.CSSX + 'px) scale(0.9)',
318                            '-ms-transform': 'translate(-' + this.CSSX + 'px) scale(0.9)',
319                            'transform': 'translate(-' + this.CSSX + 'px) scale(0.9)',
320                            'opacity': 1,
321                            'visibility': 'visible',
322                            'z-index': 3
323                        };
324                        break;
325                    case 'right':
326                        return {
327                            '-webkit-transform': 'translate(' + this.CSSX + 'px) scale(0.9)',
328                            '-moz-transform': 'translate(' + this.CSSX + 'px) scale(0.9)',
329                            '-o-transform': 'translate(' + this.CSSX + 'px) scale(0.9)',
330                            '-ms-transform': 'translate(' + this.CSSX + 'px) scale(0.9)',
331                            'transform': 'translate(' + this.CSSX + 'px) scale(0.9)',
332                            'opacity': 1,
333                            'visibility': 'visible',
334                            'z-index': 3
335                        };
336                        break;
337                    case 'center':
338                        return {
339                            '-webkit-transform': 'translate(0px) scale(1)',
340                            '-moz-transform': 'translate(0px) scale(1)',
341                            '-o-transform': 'translate(0px) scale(1)',
342                            '-ms-transform': 'translate(0px) scale(1)',
343                            'transform': 'translate(0px) scale(1)',
344                            'opacity': 1,
345                            'visibility': 'visible',
346                            'z-index': 4
347                        };
348                    case 'hide':
349                        return {
350                            '-webkit-transform': 'translate(0px) scale(0.7)',
351                            '-moz-transform': 'translate(0px) scale(0.7)',
352                            '-o-transform': 'translate(0px) scale(0.7)',
353                            '-ms-transform': 'translate(0px) scale(0.7)',
354                            'transform': 'translate(0px) scale(0.7)',
355                            'opacity': 1,
356                            'visibility': 'visible',
357                            'z-index': 1
358                        }
359                        break;
360                }
361            }
362        },
363
364        // 切换
365        _navigate: function (dir, speedClass) {
366            speedClass = speedClass || 'dg-transition';
367            if (!this.isAnim) {
368                this._updateWidth();
369
370                this.isAnim = true;
371                var _self = this;
372
373                switch (dir) {
374                    case 'next' :
375                        this.indexB++;
376                        if (this.indexB === this.itemsCount) {
377                            this.indexB = 0;
378                        }
379                        this._showButton();
380                        this.current = this.$rightItm.index();
381                        // current item moves left
382                        this.$currentItm.addClass(speedClass).css(this._getCoordinates('left'));
383
384                        // right item moves to the center
385                        this.$rightItm.addClass(speedClass).css(this._getCoordinates('center'));
386
387                        // left item moves out
388                        this.$leftItm.addClass(speedClass).css(this._getCoordinates('outleft'));
389
390                        this.$nextItm.addClass(speedClass).css(this._getCoordinates('right'));
391
392                        if (this.itemsCount > 5) {
393                            this.$prevItm.addClass(speedClass).css(this._getCoordinates('hide'));
394                            this.$prevItm.off('click.carrousel');
395                        }
396
397                        var nextEle = ( this.$nextItm.index() === this.itemsCount - 1 ) ? this.$items.eq(0) : this.$nextItm.next();
398                        $(nextEle).addClass(speedClass).css(this._getCoordinates('outright'));
399                        $(nextEle).off('click.carrousel');
400
401                        break;
402
403                    case 'prev' :
404                        this.indexB--;
405                        if (this.indexB === -1) {
406                            this.indexB = this.itemsCount - 1;
407                        }
408                        this._showButton();
409                        this.current = this.$leftItm.index();
410                        // current item moves right
411                        this.$currentItm.addClass(speedClass).css(this._getCoordinates('right'));
412
413                        // left item moves to the center
414                        this.$leftItm.addClass(speedClass).css(this._getCoordinates('center'));
415
416                        // right item moves out
417                        this.$rightItm.addClass(speedClass).css(this._getCoordinates('outright'));
418
419                        this.$prevItm.addClass(speedClass).css(this._getCoordinates('left'));
420
421                        if (this.itemsCount > 5) {
422                            this.$nextItm.addClass(speedClass).css(this._getCoordinates('hide'));
423                            this.$nextItm.off('click.carrousel');
424                        }
425
426                        var prevEle = ( this.$prevItm.index() === 0 ) ? this.$items.eq(this.itemsCount - 1) : this.$prevItm.prev();
427                        $(prevEle).addClass(speedClass).css(this._getCoordinates('outleft'));
428                        $(prevEle).off('click.carrousel');
429
430                        break;
431                }
432                ;
433                this._setItems();
434            }
435        },
436
437        // 自动切换
438        _startSlideshow: function () {
439            if (this.slideshow) {
440                clearInterval(this.slideshow);
441            }
442            var _self = this;
443            this.slideshow = setInterval(function () {
444                if ($('.dg-center')[0] && !_self.isAnim) {
445                    _self._navigate('next');
446                }
447            }, this.options.interval);
448        },
449
450        _stopSlideshow: function () {
451            clearTimeout(this.slideshow);
452        }
453    };
454
455    $.fn.carrousel = function (options) {
456        if (typeof options === 'object') {
457            this.each(function () {
458                var instance = $.data(this, 'carrousel');
459                if (!instance) {
460                    $.data(this, 'carrousel', new $.carrousel(options, this));
461                }
462            });
463        }
464        else if (typeof options === 'string') {
465            this.each(function () {
466                var instance = $.data(this, 'carrousel');
467                if (instance) {
468                    switch (options) {
469                        case 'play':
470                            instance._startSlideshow();
471                            instance.options.autoplay = true;
472                            break;
473                        case 'stop':
474                            instance._stopSlideshow();
475                            instance.options.autoplay = false;
476                            break;
477                        case 'next':
478                            instance._navigate('next');
479                            break;
480                        case 'prev':
481                            instance._navigate('prev');
482                            break;
483                    }
484                }
485            });
486        }
487        else if (typeof options === 'number') {
488            this.each(function () {
489                var instance = $.data(this, 'carrousel');
490                instance.button[options].click();
491            });
492        }
493        return this;
494    };
495
496})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.