Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove GPL license

  • Loading branch information...
commit 6623dea060b8878a8ca2bd3f1abb10679aaf3153 1 parent 79358b6
@jsor authored
View
0  LICENSE-MIT → LICENSE
File renamed without changes
View
278 LICENSE-GPL
@@ -1,278 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
View
3  README.md
@@ -61,5 +61,4 @@ License
-------
Copyright (c) 2012 Jan Sorgalla.
-Licensed under the [MIT](https://github.com/jsor/jcarousel/blob/master/LICENSE-MIT),
-[GPL](https://github.com/jsor/jcarousel/blob/master/LICENSE-GPL) licenses.
+Released under the [MIT](https://github.com/jsor/jcarousel/blob/master/LICENSE-MIT) license.
View
5 dist/jquery.jcarousel-all.js
@@ -1,6 +1,7 @@
-/*! jCarousel - v0.3.0beta1 - 2012-08-21
+/*! jCarousel - v0.3.0beta1 - 2012-09-25
* http://sorgalla.com/jcarousel/
-* Copyright (c) 2012 Jan Sorgalla; Licensed MIT, GPL */
+* Copyright 2012 Jan Sorgalla
+* Released under the MIT license */
(function ($, window) {
'use strict';
View
5 dist/jquery.jcarousel-all.min.js
@@ -1,4 +1,5 @@
-/*! jCarousel - v0.3.0beta1 - 2012-08-21
+/*! jCarousel - v0.3.0beta1 - 2012-09-25
* http://sorgalla.com/jcarousel/
-* Copyright (c) 2012 Jan Sorgalla; Licensed MIT, GPL */
+* Copyright 2012 Jan Sorgalla
+* Released under the MIT license */
(function(a,b){"use strict";var c=function(a){return parseFloat(a)||0},d=Array.prototype.slice,e=a.jcarousel={};e.version="@VERSION";var f=/^([+\-]=)?(.+)$/;e.parseTarget=function(a){var b=!1,c=typeof a!="object"?f.exec(a):null;return c?(a=parseInt(c[2],10)||0,c[1]&&(b=!0,c[1]==="-="&&(a*=-1))):typeof a!="object"&&(a=parseInt(a,10)||0),{target:a,relative:b}},e.detectCarousel=function(a){var b;while(a.size()>0){b=a.filter("[data-jcarousel]");if(b.size()>0)return b;b=a.find("[data-jcarousel]");if(b.size()>0)return b;a=a.parent()}return null},e.basePrototype=function(b){return{version:e.version,_options:{},_element:null,_init:a.noop,_create:a.noop,_destroy:a.noop,_reload:a.noop,create:function(){return this._element.attr("data-"+b.toLowerCase(),!0).data(b,this),!1===this._trigger("create")?this:(this._create(),this._trigger("createend"),this)},destroy:function(){return!1===this._trigger("destroy")?this:(this._destroy(),this._trigger("destroyend"),this._element.removeData(b).removeAttr("data-"+b.toLowerCase()),this)},reload:function(a){return!1===this._trigger("reload")?this:(a&&this.options(a),this._reload(),this._trigger("reloadend"),this)},element:function(){return this._element},options:function(b,c){if(arguments.length===0)return a.extend({},this._options);if(typeof b=="string"){if(typeof c=="undefined")return typeof this._options[b]=="undefined"?null:this._options[b];this._options[b]=c}else this._options=a.extend({},this._options,b);return this},_trigger:function(c,d,e){var f=a.Event((c+"."+b).toLowerCase());return(d||this._element).trigger(f,[this].concat(e||[])),!f.isDefaultPrevented()}}},e.plugin=function(b,c){return e.create(b,a.extend({},{_carousel:null,carousel:function(){return this._carousel||(this._carousel=e.detectCarousel(this.options("carousel")||this._element),this._carousel||a.error('Could not detect carousel for plugin "'+b+'"')),this._carousel}},c))},e.create=function(b,c){var f=function(b,c){this._element=a(b),this.options(c),this._init(),this.create()};return f.prototype=a.extend({},e.basePrototype(b),c),a.fn[b]=function(c){var e=d.call(arguments,1),g=this;return typeof c=="string"?this.each(function(){var d=a(this).data(b);if(!d)return a.error("Cannot call methods on "+b+" prior to initialization; "+'attempted to call method "'+c+'"');if(!a.isFunction(d[c])||c.charAt(0)==="_")return a.error('No such method "'+c+'" for '+b+" instance");var f=d[c].apply(d,e);if(f!==d&&typeof f!="undefined")return g=f,!1}):this.each(function(){var d=a(this).data(b);d?d.reload(c):new f(this,c)}),g},f},e.create("jcarousel",{animating:!1,tail:0,inTail:!1,resizeTimer:null,lt:null,vertical:!1,rtl:!1,circular:!1,_options:{list:function(){return this.element().children().eq(0)},items:function(){return this.list().children()},animation:400,wrap:null,vertical:null,rtl:null,center:!1},_list:null,_items:null,_target:null,_first:null,_last:null,_visible:null,_fullyvisible:null,_init:function(){var b=this;return this.onWindowResize=function(){b.resizeTimer&&clearTimeout(b.resizeTimer),b.resizeTimer=setTimeout(function(){b.reload()},100)},this.onAnimationComplete=function(c){b.animating=!1;var d=b.list().find("[data-jcarousel-clone]");d.size()>0&&(d.remove(),b._reload()),b._trigger("animateend"),a.isFunction(c)&&c.call(b,!0)},this},_create:function(){this._reload(),a(b).bind("resize.jcarousel",this.onWindowResize)},_destroy:function(){a(b).unbind("resize.jcarousel",this.onWindowResize)},_reload:function(){this.vertical=this.options("vertical"),this.vertical==null&&(this.vertical=this.list().height()>this.list().width()),this.rtl=this.options("rtl"),this.rtl==null&&(this.rtl=function(b){if((""+b.attr("dir")).toLowerCase()==="rtl")return!0;var c=!1;return b.parents("[dir]").each(function(){if(/rtl/i.test(a(this).attr("dir")))return c=!0,!1}),c}(this._element)),this.lt=this.vertical?"top":"left",this._items=null;var b=this._target||this.closest();return this.circular=this.options("wrap")==="circular",this.list().css({left:0,top:0}),b.size()>0&&(this._prepare(b),this.list().find("[data-jcarousel-clone]").remove(),this._items=null,this.circular=this.options("wrap")==="circular"&&this._fullyvisible.size()<this.items().size(),this.list().css(this.lt,this._position(b)+"px")),this},list:function(){if(this._list===null){var b=this.options("list");this._list=a.isFunction(b)?b.call(this):this._element.find(b)}return this._list},items:function(){if(this._items===null){var b=this.options("items");this._items=(a.isFunction(b)?b.call(this):this.list().find(b)).not("[data-jcarousel-clone]")}return this._items},closest:function(){var b=this,d=this.list().position()[this.lt],e=a(),f=!1,g=this.vertical?"bottom":this.rtl?"left":"right",h;return this.rtl&&!this.vertical&&(d=(d+this.list().width()-this.clipping())*-1),this.items().each(function(){e=a(this);if(f)return!1;var i=b.dimension(e);d+=i;if(d>=0){h=i-c(e.css("margin-"+g));if(Math.abs(d)-i+h/2<=0)f=!0;else return!1}}),e},target:function(){return this._target},first:function(){return this._first},last:function(){return this._last},visible:function(){return this._visible},fullyvisible:function(){return this._fullyvisible},hasNext:function(){if(!1===this._trigger("hasnext"))return!0;var a=this.options("wrap"),b=this.items().size()-1;return b>=0&&(a&&a!=="first"||this._last.index()<b||this.tail&&!this.inTail)?!0:!1},hasPrev:function(){if(!1===this._trigger("hasprev"))return!0;var a=this.options("wrap");return this.items().size()>0&&(a&&a!=="last"||this._first.index()>0||this.tail&&this.inTail)?!0:!1},clipping:function(){return this._element["inner"+(this.vertical?"Height":"Width")]()},dimension:function(a){return a["outer"+(this.vertical?"Height":"Width")](!0)},scroll:function(b,d,f){if(this.animating)return this;if(!1===this._trigger("scroll",null,[b,d]))return this;a.isFunction(d)&&(f=d,d=!0);var g=e.parseTarget(b);if(g.relative){var h=this.items().size()-1,i=Math.abs(g.target),j,k,l,m,n=this.options("wrap");if(g.target>0){var o=this._last.index();if(o>=h&&this.tail)this.inTail?n==="both"||n==="last"?this._scroll(0,d,f):this._scroll(Math.min(this._target.index()+i,h),d,f):this._scrollTail(d,f);else if(o!==h||n!=="both"&&n!=="last"){j=this._target.index(),k=j+i;if(this.circular&&k>h){m=h,l=this.items().get(-1);while(m++<k)l=this.items().eq(0),l.after(l.clone(!0).attr("data-jcarousel-clone",!0)),this.list().append(l),this._items=null;this._scroll(l,d,f)}else this._scroll(Math.min(k,h),d,f)}else this._scroll(0,d,f)}else if(this.inTail)this._scroll(Math.max(this._first.index()-i+1,0),d,f);else{j=this._first.index(),k=j-i;if(j!==0||n!=="both"&&n!=="first")if(this.circular&&k<0){m=k,l=this.items().get(0);while(m++<0){l=this.items().eq(-1),l.after(l.clone(!0).attr("data-jcarousel-clone",!0)),this.list().prepend(l),this._items=null;var p=c(this.list().css(this.lt)),q=this.dimension(l);this.rtl&&!this.vertical?p+=q:p-=q,this.list().css(this.lt,p+"px")}this._scroll(l,d,f)}else this._scroll(Math.max(j-i,0),d,f);else this._scroll(h,d,f)}}else this._scroll(g.target,d,f);return this._trigger("scrollend"),this},_scroll:function(b,d,e){if(this.animating)return a.isFunction(e)&&e.call(this,!1),this;typeof b!="object"?b=this.items().eq(b):typeof b.jquery=="undefined"&&(b=a(b));if(b.size()===0)return a.isFunction(e)&&e.call(this,!1),this;this.inTail=!1,this._prepare(b);var f=this._position(b),g=c(this.list().css(this.lt));if(f===g)return a.isFunction(e)&&e.call(this,!1),this;var h={};return h[this.lt]=f+"px",this._animate(h,d,e),this},_scrollTail:function(b,c){if(this.animating||!this.tail)return a.isFunction(c)&&c.call(this,!1),this;var d=this.list().position()[this.lt];this.rtl?d+=this.tail:d-=this.tail,this.inTail=!0;var e={};return e[this.lt]=d+"px",this._update({target:this._target.next(),fullyvisible:this._fullyvisible.slice(1).add(this._visible.last())}),this._animate(e,b,c),this},_animate:function(b,c,d){if(!1===this._trigger("animate"))return a.isFunction(d)&&d.call(this,!1),this;this.animating=!0;var e=this.options("animation");if(!e||c===!1)this.list().css(b),this.onAnimationComplete(d);else{var f=this;if(a.isFunction(e))e.call(this,b,function(){f.onAnimationComplete(d)});else{var g=typeof e=="object"?e:{duration:e},h=g.complete;g.complete=function(){f.onAnimationComplete(d),a.isFunction(h)&&h.call(this)},this.list().animate(b,g)}}return this},_prepare:function(b){var d=b.index(),e=d,f=this.dimension(b),g=this.clipping(),h={target:b,first:b,last:b,visible:b,fullyvisible:f<=g?b:a()},i=this.vertical?"bottom":this.rtl?"left":"right",j,k;this.options("center")&&(f/=2,g/=2);if(f<g)for(;;){j=this.items().eq(++e);if(j.size()===0){if(!this.circular)break;j=this.items().eq(0);if(b.get(0)===j.get(0))break;j.after(j.clone(!0).attr("data-jcarousel-clone",!0)),this.list().append(j),this._items=null}f+=this.dimension(j),h.last=j,h.visible=h.visible.add(j),k=c(j.css("margin-"+i)),f-k<=g&&(h.fullyvisible=h.fullyvisible.add(j));if(f>=g)break}if(!this.circular&&f<g){e=d;for(;;){if(--e<0)break;j=this.items().eq(e);if(j.size()===0)break;f+=this.dimension(j),h.first=j,h.visible=h.visible.add(j),k=c(j.css("margin-"+i)),f-k<=g&&(h.fullyvisible=h.fullyvisible.add(j));if(f>=g)break}}return this._update(h),this.tail=0,this.options("wrap")!=="circular"&&this.options("wrap")!=="custom"&&h.last.index()===this.items().size()-1&&(f-=c(h.last.css("margin-"+i)),f>g&&(this.tail=f-g)),this},_position:function(a){var b=this._first,c=b.position()[this.lt];return this.rtl&&!this.vertical&&(c-=this.clipping()-this.dimension(b)),this.options("center")&&(c-=this.clipping()/2-this.dimension(b)/2),(a.index()>b.index()||this.inTail)&&this.tail?(c=this.rtl?c-this.tail:c+this.tail,this.inTail=!0):this.inTail=!1,-c},_update:function(b){var c=this,d={target:this._target||a(),first:this._first||a(),last:this._last||a(),visible:this._visible||a(),fullyvisible:this._fullyvisible||a()},e=(b.first||d.first).index()<d.first.index(),f,g=function(f){var g=[],h=[];b[f].each(function(){d[f].index(this)<0&&g.push(this)}),d[f].each(function(){b[f].index(this)<0&&h.push(this)}),e?g=g.reverse():h=h.reverse(),c._trigger("item"+f+"in",a(g)),c._trigger("item"+f+"out",a(h)),c["_"+f]=b[f]};for(f in b)g(f);return this}})})(jQuery,window),function(a){"use strict",a.jcarousel.plugin("jcarouselControl",{_options:{target:"+=1",event:"click"},_active:null,_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("createend.jcarousel",a.proxy(this._create,this))},this),this.onReload=a.proxy(this._reload,this),this.onEvent=a.proxy(function(a){a.preventDefault(),this.carousel().jcarousel("scroll",this.options("target"))},this)},_create:function(){this.carousel().one("destroy.jcarousel",this.onDestroy).bind("reloadend.jcarousel scrollend.jcarousel",this.onReload),this._element.bind(this.options("event")+".jcarouselcontrol",this.onEvent),this._reload()},_destroy:function(){this._element.unbind(".jcarouselcontrol",this.onEvent),this.carousel().unbind("destroy.jcarousel",this.onDestroy).unbind("reloadend.jcarousel scrollend.jcarousel",this.onReload)},_reload:function(){var b=a.jcarousel.parseTarget(this.options("target")),c=this.carousel(),d;if(b.relative)d=c.jcarousel(b.target>0?"hasNext":"hasPrev");else{var e=typeof b.target!="object"?c.jcarousel("items").eq(b.target):b.target;d=c.jcarousel("target").index(e)>=0}return this._active!==d&&(this._trigger(d?"active":"inactive"),this._active=d),this}})}(jQuery),function(a){"use strict",a.jcarousel.plugin("jcarouselPagination",{_options:{perPage:null,item:function(a){return'<a href="#'+a+'">'+a+"</a>"}},_pages:{},_items:{},_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("createend.jcarousel",a.proxy(this._create,this))},this),this.onReload=a.proxy(this._reload,this)},_create:function(){this.carousel().one("destroy.jcarousel",this.onDestroy).bind("reloadend.jcarousel",this.onReload),this._reload()},_destroy:function(){a.fn.jcarouselControl&&a.each(this._items,function(a,b){b.jcarouselControl("destroy")}),this._element.empty(),this.carousel().unbind("destroy.jcarousel",this.onDestroy).unbind("reloadend.jcarousel",this.onReload)},_reload:function(){var b=this.options("perPage");this._pages={},this._items={},a.isFunction(b)&&(b=b.call(this));if(b==null)this._pages=this._calculatePages();else{var c=parseInt(b,10)||0,d=this.carousel().jcarousel("items"),e=1,f=0,g;for(;;){g=d.eq(f++);if(g.size()===0)break;this._pages[e]?this._pages[e]=this._pages[e].add(g):this._pages[e]=g,f%c===0&&e++}}var h=this,i=this._element.empty(),j=this.options("item");a.each(this._pages,function(b,c){var d=h._items[b]=a(j.call(h,b,c));i.append(d),a.fn.jcarouselControl&&d.jcarouselControl({carousel:h.carousel(),target:c.eq(0)})})},items:function(){return this._items},_calculatePages:function(){var a=this.carousel().data("jcarousel"),b=a.items(),c=a.clipping(),d=0,e=0,f=1,g={},h;for(;;){h=b.eq(e++);if(h.size()===0)break;g[f]?g[f]=g[f].add(h):g[f]=h,d+=a.dimension(h),d>=c&&(f++,d=0)}return g}})}(jQuery),function(a){"use strict",a.jcarousel.plugin("jcarouselAutoscroll",{_options:{target:"+=1",interval:3e3,autostart:!0},_timer:null,_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("createend.jcarousel",a.proxy(this._create,this))},this),this.onAnimateEnd=a.proxy(this.start,this)},_create:function(){this.carousel().one("destroy.jcarousel",this.onDestroy),this.options("autostart")&&this.start()},_destroy:function(){this.stop(),this.carousel().unbind("destroy.jcarousel",this.onDestroy)},start:function(){return this.stop(),this.carousel().one("animateend.jcarousel",this.onAnimateEnd),this._timer=setTimeout(a.proxy(function(){this.carousel().jcarousel("scroll",this.options("target"))},this),this.options("interval")),this},stop:function(){return this._timer&&(this._timer=clearTimeout(this._timer)),this.carousel().unbind("animateend.jcarousel",this.onAnimateEnd),this}})}(jQuery);
View
5 dist/jquery.jcarousel.autoscroll.js
@@ -1,6 +1,7 @@
-/*! jCarousel - v0.3.0beta1 - 2012-08-21
+/*! jCarousel - v0.3.0beta1 - 2012-09-25
* http://sorgalla.com/jcarousel/
-* Copyright (c) 2012 Jan Sorgalla; Licensed MIT, GPL */
+* Copyright 2012 Jan Sorgalla
+* Released under the MIT license */
(function ($) {
'use strict';
View
5 dist/jquery.jcarousel.autoscroll.min.js
@@ -1,4 +1,5 @@
-/*! jCarousel - v0.3.0beta1 - 2012-08-21
+/*! jCarousel - v0.3.0beta1 - 2012-09-25
* http://sorgalla.com/jcarousel/
-* Copyright (c) 2012 Jan Sorgalla; Licensed MIT, GPL */
+* Copyright 2012 Jan Sorgalla
+* Released under the MIT license */
(function(a){"use strict",a.jcarousel.plugin("jcarouselAutoscroll",{_options:{target:"+=1",interval:3e3,autostart:!0},_timer:null,_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("createend.jcarousel",a.proxy(this._create,this))},this),this.onAnimateEnd=a.proxy(this.start,this)},_create:function(){this.carousel().one("destroy.jcarousel",this.onDestroy),this.options("autostart")&&this.start()},_destroy:function(){this.stop(),this.carousel().unbind("destroy.jcarousel",this.onDestroy)},start:function(){return this.stop(),this.carousel().one("animateend.jcarousel",this.onAnimateEnd),this._timer=setTimeout(a.proxy(function(){this.carousel().jcarousel("scroll",this.options("target"))},this),this.options("interval")),this},stop:function(){return this._timer&&(this._timer=clearTimeout(this._timer)),this.carousel().unbind("animateend.jcarousel",this.onAnimateEnd),this}})})(jQuery);
View
5 dist/jquery.jcarousel.control.js
@@ -1,6 +1,7 @@
-/*! jCarousel - v0.3.0beta1 - 2012-08-21
+/*! jCarousel - v0.3.0beta1 - 2012-09-25
* http://sorgalla.com/jcarousel/
-* Copyright (c) 2012 Jan Sorgalla; Licensed MIT, GPL */
+* Copyright 2012 Jan Sorgalla
+* Released under the MIT license */
(function ($) {
'use strict';
View
5 dist/jquery.jcarousel.control.min.js
@@ -1,4 +1,5 @@
-/*! jCarousel - v0.3.0beta1 - 2012-08-21
+/*! jCarousel - v0.3.0beta1 - 2012-09-25
* http://sorgalla.com/jcarousel/
-* Copyright (c) 2012 Jan Sorgalla; Licensed MIT, GPL */
+* Copyright 2012 Jan Sorgalla
+* Released under the MIT license */
(function(a){"use strict",a.jcarousel.plugin("jcarouselControl",{_options:{target:"+=1",event:"click"},_active:null,_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("createend.jcarousel",a.proxy(this._create,this))},this),this.onReload=a.proxy(this._reload,this),this.onEvent=a.proxy(function(a){a.preventDefault(),this.carousel().jcarousel("scroll",this.options("target"))},this)},_create:function(){this.carousel().one("destroy.jcarousel",this.onDestroy).bind("reloadend.jcarousel scrollend.jcarousel",this.onReload),this._element.bind(this.options("event")+".jcarouselcontrol",this.onEvent),this._reload()},_destroy:function(){this._element.unbind(".jcarouselcontrol",this.onEvent),this.carousel().unbind("destroy.jcarousel",this.onDestroy).unbind("reloadend.jcarousel scrollend.jcarousel",this.onReload)},_reload:function(){var b=a.jcarousel.parseTarget(this.options("target")),c=this.carousel(),d;if(b.relative)d=c.jcarousel(b.target>0?"hasNext":"hasPrev");else{var e=typeof b.target!="object"?c.jcarousel("items").eq(b.target):b.target;d=c.jcarousel("target").index(e)>=0}return this._active!==d&&(this._trigger(d?"active":"inactive"),this._active=d),this}})})(jQuery);
View
5 dist/jquery.jcarousel.js
@@ -1,6 +1,7 @@
-/*! jCarousel - v0.3.0beta1 - 2012-08-21
+/*! jCarousel - v0.3.0beta1 - 2012-09-25
* http://sorgalla.com/jcarousel/
-* Copyright (c) 2012 Jan Sorgalla; Licensed MIT, GPL */
+* Copyright 2012 Jan Sorgalla
+* Released under the MIT license */
(function ($, window) {
'use strict';
View
5 dist/jquery.jcarousel.min.js
@@ -1,4 +1,5 @@
-/*! jCarousel - v0.3.0beta1 - 2012-08-21
+/*! jCarousel - v0.3.0beta1 - 2012-09-25
* http://sorgalla.com/jcarousel/
-* Copyright (c) 2012 Jan Sorgalla; Licensed MIT, GPL */
+* Copyright 2012 Jan Sorgalla
+* Released under the MIT license */
(function(a,b){"use strict";var c=function(a){return parseFloat(a)||0},d=Array.prototype.slice,e=a.jcarousel={};e.version="@VERSION";var f=/^([+\-]=)?(.+)$/;e.parseTarget=function(a){var b=!1,c=typeof a!="object"?f.exec(a):null;return c?(a=parseInt(c[2],10)||0,c[1]&&(b=!0,c[1]==="-="&&(a*=-1))):typeof a!="object"&&(a=parseInt(a,10)||0),{target:a,relative:b}},e.detectCarousel=function(a){var b;while(a.size()>0){b=a.filter("[data-jcarousel]");if(b.size()>0)return b;b=a.find("[data-jcarousel]");if(b.size()>0)return b;a=a.parent()}return null},e.basePrototype=function(b){return{version:e.version,_options:{},_element:null,_init:a.noop,_create:a.noop,_destroy:a.noop,_reload:a.noop,create:function(){return this._element.attr("data-"+b.toLowerCase(),!0).data(b,this),!1===this._trigger("create")?this:(this._create(),this._trigger("createend"),this)},destroy:function(){return!1===this._trigger("destroy")?this:(this._destroy(),this._trigger("destroyend"),this._element.removeData(b).removeAttr("data-"+b.toLowerCase()),this)},reload:function(a){return!1===this._trigger("reload")?this:(a&&this.options(a),this._reload(),this._trigger("reloadend"),this)},element:function(){return this._element},options:function(b,c){if(arguments.length===0)return a.extend({},this._options);if(typeof b=="string"){if(typeof c=="undefined")return typeof this._options[b]=="undefined"?null:this._options[b];this._options[b]=c}else this._options=a.extend({},this._options,b);return this},_trigger:function(c,d,e){var f=a.Event((c+"."+b).toLowerCase());return(d||this._element).trigger(f,[this].concat(e||[])),!f.isDefaultPrevented()}}},e.plugin=function(b,c){return e.create(b,a.extend({},{_carousel:null,carousel:function(){return this._carousel||(this._carousel=e.detectCarousel(this.options("carousel")||this._element),this._carousel||a.error('Could not detect carousel for plugin "'+b+'"')),this._carousel}},c))},e.create=function(b,c){var f=function(b,c){this._element=a(b),this.options(c),this._init(),this.create()};return f.prototype=a.extend({},e.basePrototype(b),c),a.fn[b]=function(c){var e=d.call(arguments,1),g=this;return typeof c=="string"?this.each(function(){var d=a(this).data(b);if(!d)return a.error("Cannot call methods on "+b+" prior to initialization; "+'attempted to call method "'+c+'"');if(!a.isFunction(d[c])||c.charAt(0)==="_")return a.error('No such method "'+c+'" for '+b+" instance");var f=d[c].apply(d,e);if(f!==d&&typeof f!="undefined")return g=f,!1}):this.each(function(){var d=a(this).data(b);d?d.reload(c):new f(this,c)}),g},f},e.create("jcarousel",{animating:!1,tail:0,inTail:!1,resizeTimer:null,lt:null,vertical:!1,rtl:!1,circular:!1,_options:{list:function(){return this.element().children().eq(0)},items:function(){return this.list().children()},animation:400,wrap:null,vertical:null,rtl:null,center:!1},_list:null,_items:null,_target:null,_first:null,_last:null,_visible:null,_fullyvisible:null,_init:function(){var b=this;return this.onWindowResize=function(){b.resizeTimer&&clearTimeout(b.resizeTimer),b.resizeTimer=setTimeout(function(){b.reload()},100)},this.onAnimationComplete=function(c){b.animating=!1;var d=b.list().find("[data-jcarousel-clone]");d.size()>0&&(d.remove(),b._reload()),b._trigger("animateend"),a.isFunction(c)&&c.call(b,!0)},this},_create:function(){this._reload(),a(b).bind("resize.jcarousel",this.onWindowResize)},_destroy:function(){a(b).unbind("resize.jcarousel",this.onWindowResize)},_reload:function(){this.vertical=this.options("vertical"),this.vertical==null&&(this.vertical=this.list().height()>this.list().width()),this.rtl=this.options("rtl"),this.rtl==null&&(this.rtl=function(b){if((""+b.attr("dir")).toLowerCase()==="rtl")return!0;var c=!1;return b.parents("[dir]").each(function(){if(/rtl/i.test(a(this).attr("dir")))return c=!0,!1}),c}(this._element)),this.lt=this.vertical?"top":"left",this._items=null;var b=this._target||this.closest();return this.circular=this.options("wrap")==="circular",this.list().css({left:0,top:0}),b.size()>0&&(this._prepare(b),this.list().find("[data-jcarousel-clone]").remove(),this._items=null,this.circular=this.options("wrap")==="circular"&&this._fullyvisible.size()<this.items().size(),this.list().css(this.lt,this._position(b)+"px")),this},list:function(){if(this._list===null){var b=this.options("list");this._list=a.isFunction(b)?b.call(this):this._element.find(b)}return this._list},items:function(){if(this._items===null){var b=this.options("items");this._items=(a.isFunction(b)?b.call(this):this.list().find(b)).not("[data-jcarousel-clone]")}return this._items},closest:function(){var b=this,d=this.list().position()[this.lt],e=a(),f=!1,g=this.vertical?"bottom":this.rtl?"left":"right",h;return this.rtl&&!this.vertical&&(d=(d+this.list().width()-this.clipping())*-1),this.items().each(function(){e=a(this);if(f)return!1;var i=b.dimension(e);d+=i;if(d>=0){h=i-c(e.css("margin-"+g));if(Math.abs(d)-i+h/2<=0)f=!0;else return!1}}),e},target:function(){return this._target},first:function(){return this._first},last:function(){return this._last},visible:function(){return this._visible},fullyvisible:function(){return this._fullyvisible},hasNext:function(){if(!1===this._trigger("hasnext"))return!0;var a=this.options("wrap"),b=this.items().size()-1;return b>=0&&(a&&a!=="first"||this._last.index()<b||this.tail&&!this.inTail)?!0:!1},hasPrev:function(){if(!1===this._trigger("hasprev"))return!0;var a=this.options("wrap");return this.items().size()>0&&(a&&a!=="last"||this._first.index()>0||this.tail&&this.inTail)?!0:!1},clipping:function(){return this._element["inner"+(this.vertical?"Height":"Width")]()},dimension:function(a){return a["outer"+(this.vertical?"Height":"Width")](!0)},scroll:function(b,d,f){if(this.animating)return this;if(!1===this._trigger("scroll",null,[b,d]))return this;a.isFunction(d)&&(f=d,d=!0);var g=e.parseTarget(b);if(g.relative){var h=this.items().size()-1,i=Math.abs(g.target),j,k,l,m,n=this.options("wrap");if(g.target>0){var o=this._last.index();if(o>=h&&this.tail)this.inTail?n==="both"||n==="last"?this._scroll(0,d,f):this._scroll(Math.min(this._target.index()+i,h),d,f):this._scrollTail(d,f);else if(o!==h||n!=="both"&&n!=="last"){j=this._target.index(),k=j+i;if(this.circular&&k>h){m=h,l=this.items().get(-1);while(m++<k)l=this.items().eq(0),l.after(l.clone(!0).attr("data-jcarousel-clone",!0)),this.list().append(l),this._items=null;this._scroll(l,d,f)}else this._scroll(Math.min(k,h),d,f)}else this._scroll(0,d,f)}else if(this.inTail)this._scroll(Math.max(this._first.index()-i+1,0),d,f);else{j=this._first.index(),k=j-i;if(j!==0||n!=="both"&&n!=="first")if(this.circular&&k<0){m=k,l=this.items().get(0);while(m++<0){l=this.items().eq(-1),l.after(l.clone(!0).attr("data-jcarousel-clone",!0)),this.list().prepend(l),this._items=null;var p=c(this.list().css(this.lt)),q=this.dimension(l);this.rtl&&!this.vertical?p+=q:p-=q,this.list().css(this.lt,p+"px")}this._scroll(l,d,f)}else this._scroll(Math.max(j-i,0),d,f);else this._scroll(h,d,f)}}else this._scroll(g.target,d,f);return this._trigger("scrollend"),this},_scroll:function(b,d,e){if(this.animating)return a.isFunction(e)&&e.call(this,!1),this;typeof b!="object"?b=this.items().eq(b):typeof b.jquery=="undefined"&&(b=a(b));if(b.size()===0)return a.isFunction(e)&&e.call(this,!1),this;this.inTail=!1,this._prepare(b);var f=this._position(b),g=c(this.list().css(this.lt));if(f===g)return a.isFunction(e)&&e.call(this,!1),this;var h={};return h[this.lt]=f+"px",this._animate(h,d,e),this},_scrollTail:function(b,c){if(this.animating||!this.tail)return a.isFunction(c)&&c.call(this,!1),this;var d=this.list().position()[this.lt];this.rtl?d+=this.tail:d-=this.tail,this.inTail=!0;var e={};return e[this.lt]=d+"px",this._update({target:this._target.next(),fullyvisible:this._fullyvisible.slice(1).add(this._visible.last())}),this._animate(e,b,c),this},_animate:function(b,c,d){if(!1===this._trigger("animate"))return a.isFunction(d)&&d.call(this,!1),this;this.animating=!0;var e=this.options("animation");if(!e||c===!1)this.list().css(b),this.onAnimationComplete(d);else{var f=this;if(a.isFunction(e))e.call(this,b,function(){f.onAnimationComplete(d)});else{var g=typeof e=="object"?e:{duration:e},h=g.complete;g.complete=function(){f.onAnimationComplete(d),a.isFunction(h)&&h.call(this)},this.list().animate(b,g)}}return this},_prepare:function(b){var d=b.index(),e=d,f=this.dimension(b),g=this.clipping(),h={target:b,first:b,last:b,visible:b,fullyvisible:f<=g?b:a()},i=this.vertical?"bottom":this.rtl?"left":"right",j,k;this.options("center")&&(f/=2,g/=2);if(f<g)for(;;){j=this.items().eq(++e);if(j.size()===0){if(!this.circular)break;j=this.items().eq(0);if(b.get(0)===j.get(0))break;j.after(j.clone(!0).attr("data-jcarousel-clone",!0)),this.list().append(j),this._items=null}f+=this.dimension(j),h.last=j,h.visible=h.visible.add(j),k=c(j.css("margin-"+i)),f-k<=g&&(h.fullyvisible=h.fullyvisible.add(j));if(f>=g)break}if(!this.circular&&f<g){e=d;for(;;){if(--e<0)break;j=this.items().eq(e);if(j.size()===0)break;f+=this.dimension(j),h.first=j,h.visible=h.visible.add(j),k=c(j.css("margin-"+i)),f-k<=g&&(h.fullyvisible=h.fullyvisible.add(j));if(f>=g)break}}return this._update(h),this.tail=0,this.options("wrap")!=="circular"&&this.options("wrap")!=="custom"&&h.last.index()===this.items().size()-1&&(f-=c(h.last.css("margin-"+i)),f>g&&(this.tail=f-g)),this},_position:function(a){var b=this._first,c=b.position()[this.lt];return this.rtl&&!this.vertical&&(c-=this.clipping()-this.dimension(b)),this.options("center")&&(c-=this.clipping()/2-this.dimension(b)/2),(a.index()>b.index()||this.inTail)&&this.tail?(c=this.rtl?c-this.tail:c+this.tail,this.inTail=!0):this.inTail=!1,-c},_update:function(b){var c=this,d={target:this._target||a(),first:this._first||a(),last:this._last||a(),visible:this._visible||a(),fullyvisible:this._fullyvisible||a()},e=(b.first||d.first).index()<d.first.index(),f,g=function(f){var g=[],h=[];b[f].each(function(){d[f].index(this)<0&&g.push(this)}),d[f].each(function(){b[f].index(this)<0&&h.push(this)}),e?g=g.reverse():h=h.reverse(),c._trigger("item"+f+"in",a(g)),c._trigger("item"+f+"out",a(h)),c["_"+f]=b[f]};for(f in b)g(f);return this}})})(jQuery,window),function(a){"use strict",a.jcarousel.plugin("jcarouselControl",{_options:{target:"+=1",event:"click"},_active:null,_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("createend.jcarousel",a.proxy(this._create,this))},this),this.onReload=a.proxy(this._reload,this),this.onEvent=a.proxy(function(a){a.preventDefault(),this.carousel().jcarousel("scroll",this.options("target"))},this)},_create:function(){this.carousel().one("destroy.jcarousel",this.onDestroy).bind("reloadend.jcarousel scrollend.jcarousel",this.onReload),this._element.bind(this.options("event")+".jcarouselcontrol",this.onEvent),this._reload()},_destroy:function(){this._element.unbind(".jcarouselcontrol",this.onEvent),this.carousel().unbind("destroy.jcarousel",this.onDestroy).unbind("reloadend.jcarousel scrollend.jcarousel",this.onReload)},_reload:function(){var b=a.jcarousel.parseTarget(this.options("target")),c=this.carousel(),d;if(b.relative)d=c.jcarousel(b.target>0?"hasNext":"hasPrev");else{var e=typeof b.target!="object"?c.jcarousel("items").eq(b.target):b.target;d=c.jcarousel("target").index(e)>=0}return this._active!==d&&(this._trigger(d?"active":"inactive"),this._active=d),this}})}(jQuery),function(a){"use strict",a.jcarousel.plugin("jcarouselPagination",{_options:{perPage:null,item:function(a){return'<a href="#'+a+'">'+a+"</a>"}},_pages:{},_items:{},_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("createend.jcarousel",a.proxy(this._create,this))},this),this.onReload=a.proxy(this._reload,this)},_create:function(){this.carousel().one("destroy.jcarousel",this.onDestroy).bind("reloadend.jcarousel",this.onReload),this._reload()},_destroy:function(){a.fn.jcarouselControl&&a.each(this._items,function(a,b){b.jcarouselControl("destroy")}),this._element.empty(),this.carousel().unbind("destroy.jcarousel",this.onDestroy).unbind("reloadend.jcarousel",this.onReload)},_reload:function(){var b=this.options("perPage");this._pages={},this._items={},a.isFunction(b)&&(b=b.call(this));if(b==null)this._pages=this._calculatePages();else{var c=parseInt(b,10)||0,d=this.carousel().jcarousel("items"),e=1,f=0,g;for(;;){g=d.eq(f++);if(g.size()===0)break;this._pages[e]?this._pages[e]=this._pages[e].add(g):this._pages[e]=g,f%c===0&&e++}}var h=this,i=this._element.empty(),j=this.options("item");a.each(this._pages,function(b,c){var d=h._items[b]=a(j.call(h,b,c));i.append(d),a.fn.jcarouselControl&&d.jcarouselControl({carousel:h.carousel(),target:c.eq(0)})})},items:function(){return this._items},_calculatePages:function(){var a=this.carousel().data("jcarousel"),b=a.items(),c=a.clipping(),d=0,e=0,f=1,g={},h;for(;;){h=b.eq(e++);if(h.size()===0)break;g[f]?g[f]=g[f].add(h):g[f]=h,d+=a.dimension(h),d>=c&&(f++,d=0)}return g}})}(jQuery),function(a){"use strict",a.jcarousel.plugin("jcarouselAutoscroll",{_options:{target:"+=1",interval:3e3,autostart:!0},_timer:null,_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("createend.jcarousel",a.proxy(this._create,this))},this),this.onAnimateEnd=a.proxy(this.start,this)},_create:function(){this.carousel().one("destroy.jcarousel",this.onDestroy),this.options("autostart")&&this.start()},_destroy:function(){this.stop(),this.carousel().unbind("destroy.jcarousel",this.onDestroy)},start:function(){return this.stop(),this.carousel().one("animateend.jcarousel",this.onAnimateEnd),this._timer=setTimeout(a.proxy(function(){this.carousel().jcarousel("scroll",this.options("target"))},this),this.options("interval")),this},stop:function(){return this._timer&&(this._timer=clearTimeout(this._timer)),this.carousel().unbind("animateend.jcarousel",this.onAnimateEnd),this}})}(jQuery);
View
5 dist/jquery.jcarousel.pagination.js
@@ -1,6 +1,7 @@
-/*! jCarousel - v0.3.0beta1 - 2012-08-21
+/*! jCarousel - v0.3.0beta1 - 2012-09-25
* http://sorgalla.com/jcarousel/
-* Copyright (c) 2012 Jan Sorgalla; Licensed MIT, GPL */
+* Copyright 2012 Jan Sorgalla
+* Released under the MIT license */
(function ($) {
'use strict';
View
5 dist/jquery.jcarousel.pagination.min.js
@@ -1,4 +1,5 @@
-/*! jCarousel - v0.3.0beta1 - 2012-08-21
+/*! jCarousel - v0.3.0beta1 - 2012-09-25
* http://sorgalla.com/jcarousel/
-* Copyright (c) 2012 Jan Sorgalla; Licensed MIT, GPL */
+* Copyright 2012 Jan Sorgalla
+* Released under the MIT license */
(function(a){"use strict",a.jcarousel.plugin("jcarouselPagination",{_options:{perPage:null,item:function(a){return'<a href="#'+a+'">'+a+"</a>"}},_pages:{},_items:{},_init:function(){this.onDestroy=a.proxy(function(){this._destroy(),this.carousel().one("createend.jcarousel",a.proxy(this._create,this))},this),this.onReload=a.proxy(this._reload,this)},_create:function(){this.carousel().one("destroy.jcarousel",this.onDestroy).bind("reloadend.jcarousel",this.onReload),this._reload()},_destroy:function(){a.fn.jcarouselControl&&a.each(this._items,function(a,b){b.jcarouselControl("destroy")}),this._element.empty(),this.carousel().unbind("destroy.jcarousel",this.onDestroy).unbind("reloadend.jcarousel",this.onReload)},_reload:function(){var b=this.options("perPage");this._pages={},this._items={},a.isFunction(b)&&(b=b.call(this));if(b==null)this._pages=this._calculatePages();else{var c=parseInt(b,10)||0,d=this.carousel().jcarousel("items"),e=1,f=0,g;for(;;){g=d.eq(f++);if(g.size()===0)break;this._pages[e]?this._pages[e]=this._pages[e].add(g):this._pages[e]=g,f%c===0&&e++}}var h=this,i=this._element.empty(),j=this.options("item");a.each(this._pages,function(b,c){var d=h._items[b]=a(j.call(h,b,c));i.append(d),a.fn.jcarouselControl&&d.jcarouselControl({carousel:h.carousel(),target:c.eq(0)})})},items:function(){return this._items},_calculatePages:function(){var a=this.carousel().data("jcarousel"),b=a.items(),c=a.clipping(),d=0,e=0,f=1,g={},h;for(;;){h=b.eq(e++);if(h.size()===0)break;g[f]?g[f]=g[f].add(h):g[f]=h,d+=a.dimension(h),d>=c&&(f++,d=0)}return g}})})(jQuery);
View
4 docs/index.rst
@@ -36,5 +36,5 @@ inspired by the `Carousel Component <http://billwscott.com/carousel/>`_ by
License
-------
-Copyright (c) 2012 Jan Sorgalla.
-Licensed under the MIT, GPL licenses.
+Copyright 2012 Jan Sorgalla.
+Released under the `MIT <https://github.com/jsor/jcarousel/blob/master/LICENSE>`_ license.
View
4 grunt.js
@@ -8,8 +8,8 @@ module.exports = function(grunt) {
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' +
- '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
- ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */'
+ '* Copyright <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n' +
+ '* Released under the <%= _.pluck(pkg.licenses, "type").join(", ") %> license */'
},
concat: {
all: {
View
4 package.json
@@ -19,10 +19,6 @@
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
- },
- {
- "type": "GPL",
- "url": "http://www.opensource.org/licenses/GPL-2.0"
}
],
"dependencies": {},
View
4 src/jquery.jcarousel.autoscroll.js
@@ -3,8 +3,8 @@
* http://sorgalla.com/jcarousel/
*
* Copyright 2012, Jan Sorgalla
- * Dual licensed under the MIT (https://github.com/jsor/jcarousel/blob/master/LICENSE-MIT)
- * or GPL Version 2 (https://github.com/jsor/jcarousel/blob/master/LICENSE-GPL) licenses.
+ * Released under the MIT license
+ * https://github.com/jsor/jcarousel/blob/master/LICENSE
*
* Depends:
* jquery.jcarousel.js
View
4 src/jquery.jcarousel.control.js
@@ -3,8 +3,8 @@
* http://sorgalla.com/jcarousel/
*
* Copyright 2012, Jan Sorgalla
- * Dual licensed under the MIT (https://github.com/jsor/jcarousel/blob/master/LICENSE-MIT)
- * or GPL Version 2 (https://github.com/jsor/jcarousel/blob/master/LICENSE-GPL) licenses.
+ * Released under the MIT license
+ * https://github.com/jsor/jcarousel/blob/master/LICENSE
*
* Depends:
* jquery.jcarousel.js
View
6 src/jquery.jcarousel.js
@@ -2,9 +2,9 @@
* jCarousel - Riding carousels with jQuery
* http://sorgalla.com/jcarousel/
*
- * Copyright 2012, Jan Sorgalla
- * Dual licensed under the MIT (https://github.com/jsor/jcarousel/blob/master/LICENSE-MIT)
- * or GPL Version 2 (https://github.com/jsor/jcarousel/blob/master/LICENSE-GPL) licenses.
+ * Copyright 2012 Jan Sorgalla
+ * Released under the MIT license
+ * https://github.com/jsor/jcarousel/blob/master/LICENSE
*/
(function ($, window) {
'use strict';
View
4 src/jquery.jcarousel.pagination.js
@@ -3,8 +3,8 @@
* http://sorgalla.com/jcarousel/
*
* Copyright 2012, Jan Sorgalla
- * Dual licensed under the MIT (https://github.com/jsor/jcarousel/blob/master/LICENSE-MIT)
- * or GPL Version 2 (https://github.com/jsor/jcarousel/blob/master/LICENSE-GPL) licenses.
+ * Released under the MIT license
+ * https://github.com/jsor/jcarousel/blob/master/LICENSE
*
* Depends:
* jquery.jcarousel.js
Please sign in to comment.
Something went wrong with that request. Please try again.