1/** 2 * jCarouselLite - jQuery plugin to navigate images/any content in a carousel style widget. 3 * @requires jQuery v1.2 or above 4 * 5 * http://gmarwaha.com/jquery/jcarousellite/ 6 * 7 * Copyright (c) 2007 Ganeshji Marwaha (gmarwaha.com) 8 * Dual licensed under the MIT and GPL licenses: 9 * http://www.opensource.org/licenses/mit-license.php 10 * http://www.gnu.org/licenses/gpl.html 11 * 12 * Version: 1.0.1 13 * Note: Requires jquery 1.2 or above from version 1.0.1 14 */ 15(function(c){function f(a,k){return parseInt(c.css(a[0],k))||0}function t(a){return a[0].offsetWidth+f(a,"marginLeft")+f(a,"marginRight")}function u(a){return a[0].offsetHeight+f(a,"marginTop")+f(a,"marginBottom")}c.fn.jCarouselLite=function(a){a=c.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:!1,auto:null,speed:150,easing:"linear",vertical:!1,circular:!1,visible:5,start:0,scroll:1,beforeStart:null,afterEnd:null},a||{});return this.each(function(){function k(b){if(!m){if(a.circular)b<=a.start- d-1?(g.css(f,-((h-2*d)*l)+"px"),e=b==a.start-d-1?h-2*d-1:h-2*d-a.scroll):b>=h-d+1?(g.css(f,-(d*l)+"px"),e=b==h-d+1?d+1:d+a.scroll):e=b;else{if(0>b||b>h-d)return;e=b}m=!0;g.animate({left:-(e*l)},a.speed,a.easing,function(){n&&(m=!1,k(e+a.scroll));p&&(m=!1,k(e-a.scroll));m=!1});a.circular||(c(a.btnPrev+","+a.btnNext).removeClass("disabled_left disabled_right"),c(0>e-a.scroll&&a.btnPrev).addClass("disabled_left"),c(e+a.scroll>h-d&&a.btnNext).addClass("disabled_right"))}return!1}var m=!1,f=a.vertical? "top":"left",s=a.vertical?"height":"width",q=c(this),g=c("ul",q),b=c("li",g),r=b.size(),d=a.visible,p=!1,n=!1;a.circular&&(g.prepend(b.slice(r-d-1+1).clone()).append(b.slice(0,d).clone()),a.start+=d);var b=c("li",g),h=b.size(),e=a.start;q.css("visibility","visible");b.css({"float":a.vertical?"none":"left"});g.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});q.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var l=a.vertical?u(b):t(b),r= l*h,v=l*d;
15b.css({width:b.width(),height:b.height()});g.css(s,r+"px").css(f,-(e*l));q.css(s,v+"px");a.btnPrev&&c(a.btnPrev).mousedown(function(){p=!0;k(e-a.scroll)});c(a.btnPrev).mouseout(function(){p=!1});c(a.btnPrev).mouseup(function(){p=!1});a.btnNext&&c(a.btnNext).mousedown(function(){n=!0;k(e+a.scroll)});c(a.btnNext).mouseout(function(){n=!1});c(a.btnNext).mouseup(function(){n=!1})})}})(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.