PageSourceSearch

https://wishloop.com/wp-content/plugins/elementor-extras/assets/li…/toggle-element.min.js?ver=1.2.0

js wishloop.com collected 2026-09-25 21:13:38 UTC 2,308 bytes, 1 lines download raw bytes

1!function(t,e,o,n){t.toggleElement=function(n,i){var s={hashLoad:!1,hashToggle:!1,hashNavigation:!1,wrapper:null,watchControls:!1,speed:.3,inactive:!1,active:1,indicatorColor:"rgba(0, 0, 0, 1)",controlItemClass:".ee-toggle-element__controls__item",indicatorClass:".ee-toggle-element__indicator",elementClass:".ee-toggle-element__element",onBeforeToggle:function(){},onAfterToggle:function(t){}},a=this;a.opts={};var l=t(e),r=(t(o),t(n)),c=null,g=null,d=null,h=null,u=null,f=!1,p=0,v=null;a.init=function(){a.opts=t.extend({},s,i),a._construct()},a._construct=function(){c=r.find(a.opts.controlItemClass),g=r.find(a.opts.indicatorClass),d=r.find(a.opts.elementClass),v=c.length,a.opts.active>0&&a.opts.active<=v&&a.setCurrent(),a.setup(),a.events()},a.replaceHash=function(t){var e=c.eq(t);e.length&&history.pushState&&history.pushState(null,null,"#"+e.data("hash"))},a.setCurrent=function(){var t=e.location.hash.substr(1);if(a.opts.hashLoad&&t){var o=c.filter('[data-hash="'+t+'"]');if(o.length)return void(p=o.index())}p=a.opts.active-1},a.setup=function(){h=c.eq(p),a.opts.inactive||(this.opts.watchControls&&this.adjust(),this.goTo(p)),r.addClass("ee--is-ready")},a.events=function(){c.on("click",a.onClick),r._resize(a.adjust)},a.onClick=function(e){var o=t(e.target).closest(".ee-toggle-element__controls__item"),n=o.index(),i=n<v-1?n+1:0;p=f&&p===n?i:n,a.opts.hashToggle&&a.replaceHash(p),a.goTo(p)},a.goTo=function(t){a.opts.onBeforeToggle(),h=c.eq(t),u=d.eq(t),d.hide(),u.show(),c.data("active",!1),c.eq(t).data("active",!0),this.adjust(),c.removeClass("ee--is-active"),h.addClass("ee--is-active"),a.opts.onAfterToggle(u),l.trigger("resize"),f=!0},a.adjust=function(){if(f){var t=h.get(0).offsetLeft,e=h.get(0).offsetTop,o=h.outerWidth(),n=h.outerHeight(),i=void 0!==h.data("color")?h.data("color"):a.opts.indicatorColor,s={left:t,top:e,width:o,height:n};i&&(s.backgroundColor=i),TweenMax.to(g,a.opts.speed,s)}},a.destroy=function(){c.off("click",a.onClick)},a.init()},t.fn.toggleElement=function(e){return this.each(function(){if(t.fn.toggleElement.destroy=function(){void 0!==o&&(t(this).data("toggle-element").destroy(),t(this).removeData("toggle-element"))},void 0===t(this).data("toggle-element")){var o=new t.toggleElement(this,e);t(this).data("toggle-element",o)}})}}(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.