PageSourceSearch

https://www.sharkbay.wa.gov.au/profiles/sharkbay/Includes/Scripts/plugins/owl.carousel.thumbs.min.js

js sharkbay.wa.gov.au collected 2026-09-24 23:58:57 UTC 3,567 bytes, 8 lines download raw bytes

vendor: 2,685 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.3.4
5 * @author Gijs Rogé
6 * @license The MIT License (MIT)
7 */
8(function(n,t,i,r){"use strict";var u=function(t){this.owl=t;this._thumbcontent=[];this._identifier=0;this.owl_currentitem=this.owl.options.startPosition;this.$element=this.owl.$element;this._handlers={"prepared.owl.carousel":n.proxy(function(t){if(!t.namespace||!this.owl.options.thumbs||this.owl.options.thumbImage||this.owl.options.thumbsPrerendered||this.owl.options.thumbImage){if(t.namespace&&this.owl.options.thumbs&&this.owl.options.thumbImage){var i=n(t.content).find("img");this._thumbcontent.push(i)}}else n(t.content).find("[data-thumb]").attr("data-thumb")!==r&&this._thumbcontent.push(n(t.content).find("[data-thumb]").attr("data-thumb"))},this),"initialized.owl.carousel":n.proxy(function(n){n.namespace&&this.owl.options.thumbs&&(this.render(),this.listen(),this._identifier=this.owl.$element.data("slider-id"),this.setActive())},this),"changed.owl.carousel":n.proxy(function(n){n.namespace&&n.property.name==="position"&&this.owl.options.thumbs&&(this._identifier=this.owl.$element.data("slider-id"),this.setActive())},this)};this.owl.options=n.extend({},u.Defaults,this.owl.options);this.owl.$element.on(this._handlers)};u.Defaults={thumbs:!0,thumbImage:!1,thumbContainerClass:"owl-thumbs",thumbItemClass:"owl-thumb-item",moveThumbsInside:!1};u.prototype.listen=function(){var t=this.owl.options;t.thumbsPrerendered&&(this._thumbcontent._thumbcontainer=n("."+t.thumbContainerClass));n(this._thumbcontent._thumbcontainer).on("click",this._thumbcontent._thumbcontainer.children(),n.proxy(function(i){this._identifier=n(i.target).closest("."+t.thumbContainerClass).data("slider-id");var r=n(i.target).parent().is(this._thumbcontent._thumbcontainer)?n(i.target).index():n(i.target).closest("."+t.thumbItemClass).index();t.thumbsPrerendered?n("[data-slider-id="+this._identifier+"]").trigger("to.owl.carousel",[r,t.dotsSpeed,!0]):this.owl.to(r,t.dotsSpeed);i.preventDefault()},this))};u.prototype.render=function(){var i=this.owl.options,t;if(i.thumbsPrerendered?(this._thumbcontent._thumbcontainer=n("."+i.thumbContainerClass+""),i.moveThumbsInside&&this._thumbcontent._thumbcontainer.appendTo(this.$element)):this._thumbcontent._thumbcontainer=n("<div>").addClass(i.thumbContainerClass).appendTo(this.$element),i.thumbImage)for(t=0;t<this._thumbcontent.length;++t)this._thumbcontent._thumbcontainer.append("<button class="+i.thumbItemClass+'><img src="'+this._thumbcontent[t].attr("src")+'" alt="'+this._thumbcontent[t].attr("alt")+'" /><\/button>
8');else for(t=0;t<this._thumbcontent.length;++t)this._thumbcontent._thumbcontainer.append("<button class="+i.thumbItemClass+">"+this._thumbcontent[t]+"<\/button>")};u.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 t=this.owl.options,i=t.thumbsPrerendered?n("."+t.thumbContainerClass+'[data-slider-id="'+this._identifier+'"]'):this._thumbcontent._thumbcontainer;i.children().filter(".active").removeClass("active");i.children().eq(this.owl_currentitem).addClass("active")};u.prototype.destroy=function(){var n,t;for(n in this._handlers)this.owl.$element.off(n,this._handlers[n]);for(t in Object.getOwnPropertyNames(this))typeof this[t]!="function"&&(this[t]=null)};n.fn.owlCarousel.Constructor.Plugins.Thumbs=u})(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.