PageSourceSearch

https://tommytomlinson.com/wp-content/themes/g5plus-auteur/assets/…/jquery.pretty-tabs.min.js?ver=1.0

js tommytomlinson.com collected 2026-10-02 10:30:43 UTC 2,142 bytes, 1 lines download raw bytes

1!function(o){"use strict";function t(e,t){this.$element=o(e),this.element=e,this.options=o.extend({},{elementSelector:"li:not(.dropdown)",menuContainerClass:"dropdown",more_text:'<span class="fa fa-plus"></span>'},"object"==typeof t&&t),this.options=o.extend({},this.options,this.$element.data("pretty-tabs-options")),this.init()}t.prototype={init:function(){var e=this;e.processTabs(),setTimeout(function(){e.processTabs()},500),o(window).on("resize",function(){e.processTabs(),setTimeout(function(){e.processTabs()},500)})},processTabs:function(){var e=this;e.revertElements();var t=e.getTotalWidth(),n=e.getElementsWidth();if(e.$element.removeClass("gsf-pretty-tabs-initialized"),t<n){e.createMenuContainer();var i=0,s=e.getMenuContainer();0<s.length&&(i+=e.getElementWidth(s)),e.getElements().each(function(){i+=e.getElementWidth(o(this)),t<i&&o(this).appendTo(s.find("ul.dropdown-menu"))})}e.$element.addClass("gsf-pretty-tabs-initialized")},createMenuContainer:function(){var e=this;if(0===e.getMenuContainer().length){var t=o('<li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">'+e.options.more_text+'</a><ul class="dropdown-menu dropdown-menu-right"></ul></li>');e.$element.append(t)}},revertElements:function(){var e=this,t=e.getMenuContainer();0<t.length&&(t.find("li").each(function(){o(this).appendTo(e.$element)}),t.remove())},getMenuContainer:function(){return this.$element.find("."+this.options.menuContainerClass)},getTotalWidth:function(){return this.$element.width()},getElementsWidth:function(){var e=this,t=e.getMenuContainer(),n=0;return 0<t.length&&(n+=e.getElementWidth(t)),e.getElements().each(function(){n+=e.getElementWidth(o(this))}),n},getElements:function(){return this.$element.find(this.options.elementSelector)},getElementWidth:function(e){return e.outerWidth()+parseInt(e.css("margin-left").replace("px",""),10)+parseInt(e.css("margin-right").replace("px",""),10)}},o.fn.extend({gsfPrettyTabs:function(e){return this.each(function(){new t(this,e)})}}),o(document).ready(function(){o(".gsf-pretty-tabs").gsfPrettyTabs({more_text:g5plus_variable.pretty_tabs_more_text})})}(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.