https://tengelic.hu/wp-content/plugins/js_composer/assets/lib/bowe…/jquery-ui-tabs-rotate.js?ver=4.7
1;(function($){ 2 $.extend( $.ui.tabs.prototype, { 3 rotation: null, 4 rotationDelay: null, 5 continuing: null, 6 rotate: function( ms, continuing ) { 7 var self = this, 8 o = this.options; 9 10 if((ms > 1 || self.rotationDelay === null) && ms !== undefined){//only set rotationDelay if this is the first time through or if not immediately moving on from an unpause 11 self.rotationDelay = ms; 12 } 13 14 if(continuing !== undefined){ 15 self.continuing = continuing; 16 } 17 18 var rotate = self._rotate || ( self._rotate = function( e ) { 19 clearTimeout( self.rotation ); 20 self.rotation = setTimeout(function() { 21 var t = o.active; 22 self.option( "active", ++t < self.anchors.length ? t : 0 ); 23 }, ms ); 24 25 if ( e ) { 26 e.stopPropagation(); 27 } 28 }); 29 30 var stop = self._unrotate || ( self._unrotate = !continuing 31 ? function(e) { 32 if (e.clientX) { // in case of a true click 33 self.rotate(null); 34 } 35 } 36 : function( e ) { 37 t = o.active; 38 rotate(); 39 }); 40 41 // start rotation 42 if ( ms ) { 43 this.element.bind( "tabsactivate", rotate ); 44 this.anchors.bind( o.event + ".tabs", stop ); 45 rotate(); 46 // stop rotation 47 } else { 48 clearTimeout( self.rotation ); 49 this.element.unbind( "tabsactivate", rotate ); 50 this.anchors.unbind( o.event + ".tabs", stop ); 51 delete this._rotate; 52 delete this._unrotate; 53 } 54 55 //rotate immediately and then have normal rotation delay 56 if(ms === 1){ 57 //set ms back to what it was originally set to 58 ms = self.rotationDelay; 59 } 60 61 return this; 62 }, 63 pause: function() { 64 var self = this, 65 o = this.options; 66 67 self.rotate(0); 68 }, 69 unpause: function(){ 70 var self = this, 71 o = this.options; 72 73 self.rotate(1, self.continuing); 74 } 75 }); 76})(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.