vendor: 3,890 bytes, lines 1-8
1/*! owl.carousel2.thumbs - v0.1.8 | (c) 2016 @gijsroge | MIT license | https://github.com/gijsroge/OwlCarousel2-Thumbs */ 2/** 3 * Thumbs Plugin 4 * @version 2.0.0 5 * @author Gijs Rogé 6 * @license The MIT License (MIT) 7 */ 8!function($,window,document,undefined){"use strict";var Thumbs=function(carousel){this.owl=carousel,this._thumbcontent=[],this._identifier=0,this.owl_currentitem=this.owl.options.startPosition,this.$element=this.owl.$element,this._handlers={"prepared.owl.carousel":$.proxy((function(e){if(!e.namespace||!this.owl.options.thumbs||this.owl.options.thumbImage||this.owl.options.thumbsPrerendered||this.owl.options.thumbImage){if(e.namespace&&this.owl.options.thumbs&&this.owl.options.thumbImage){var innerImage=$(e.content).find("img");this._thumbcontent.push(innerImage)}}else undefined!==$(e.content).find("[data-thumb]").attr("data-thumb")&&this._thumbcontent.push($(e.content).find("[data-thumb]").attr("data-thumb"))}),this),"initialized.owl.carousel":$.proxy((function(e){e.namespace&&this.owl.options.thumbs&&(this.render(),this.listen(),this._identifier=this.owl.$element.data("slider-id"),this.setActive())}),this),"changed.owl.carousel":$.proxy((function(e){e.namespace&&"position"===e.property.name&&this.owl.options.thumbs&&(this._identifier=this.owl.$element.data("slider-id"),this.setActive())}),this)},this.owl.options=$.extend({},Thumbs.Defaults,this.owl.options),this.owl.$element.on(this._handlers)};Thumbs.Defaults={thumbs:!0,thumbImage:!1,thumbContainerClass:"owl-thumbs",thumbItemClass:"owl-thumb-item",moveThumbsInside:!1},Thumbs.prototype.listen=function(){var options=this.owl.options;options.thumbsPrerendered&&(this._thumbcontent._thumbcontainer=$("."+options.thumbContainerClass)),$(this._thumbcontent._thumbcontainer).on("mouseover",this._thumbcontent._thumbcontainer.children(),$.proxy((function(e){this._identifier=$(e.target).closest("."+options.thumbContainerClass).data("slider-id");var index=$(e.target).parent().is(this._thumbcontent._thumbcontainer)?$(e.target).index():$(e.target).closest("."+options.thumbItemClass).index();options.thumbsPrerendered?$("[data-slider-id="+this._identifier+"]").trigger("to.owl.carousel",[index,options.dotsSpeed,!0]):this.owl.to(index,options.dotsSpeed),e.preventDefault()}),this))},Thumbs.prototype.render=function(){var i,options=this.owl.options;if(options.thumbsPrerendered?(this._thumbcontent._thumbcontainer=$("."+options.thumbContainerClass),options.moveThumbsInside&&this._thumbcontent._thumbcontainer.appendTo(this.$element)):this._thumbcontent._thumbcontainer=$("<div>").addClass(options.thumbContainerClass).appendTo(this.$element),options.thumbImage)for(i=0;i<this._thumbcontent.length;++i)this._thumbcontent._thumbcontainer.append("<button class="+options.thumbItemClass+'><img src="'+this._thumbcontent[i].attr("src")+'" alt="'+this._thumbcontent[i].attr("alt")+'" /></button>');else for(i=0;i<this._thumbcontent.length;++i)this._thumbcontent._thumbcontainer.append("<button class="+options.thumbItemClass+">"+this._thumbcontent[i]+"</button>")},Thumbs.prototype.setActive=function(){this.owl_currentitem=this.owl._current-this.owl._clones.length/2,this.owl_currentitem===this.owl._items.length&&(this.owl_currentitem=0);var options=this.owl.options,thumbContainer=options.thumbsPrerendered?$("."+options.thumbContainerClass+'[data-slider-id="'+this._identifier+'"]'):this._thumbcontent._thumbcontainer;thumbContainer.children().filter(".active").removeClass("active"),thumbContainer.children().eq(this.owl_currentitem).addClass("active")},Thumbs.prototype.destroy=function(){var handler,property;for(handler in this._handlers)this.owl.$element.off(handler,this._handlers[handler]);for(property in Object.getOwnPropertyNames(this))"function"!=typeof this[property]&&(this[property]=null)},$.fn.owlCarousel.Constructor.Plugins.Thumbs=Thumbs}(window.Zepto||window.jQuery,window,document);
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.