PageSourceSearch

https://turbo-italia.com/wp-content/themes/martfury/js/plugins/jquery.tabs.js?ver=1.0.0

js turbo-italia.com collected 2026-10-07 18:36:24 UTC 1,063 bytes, 47 lines download raw bytes

1/**
2 * jQuery Tabs plugin 1.0.0
3 *
4 * @author Drfuri
5 */
6(function($) {
7	$.fn.mrtabs = function() {
8		return this.each(function() {
9			var $element = $(this),
10				$nav = $element.find('.tabs-nav'),
11				$tabs = $nav.find('a'),
12				$panels = $element.find('.tabs-panel');
13
14
15			$tabs.filter(':first').addClass('active');
16			$nav.find('li').filter(':first').addClass('active');
17			$panels.filter(':first').addClass('active');
18
19			$tabs.on('click', function(e) {
20				e.preventDefault();
21
22				var $tab = $(this),
23					index = $tab.parent().index(),
24					$panels = $element.find('.tabs-panel');
25
26				if ( $tab.hasClass('active') ) {
27					return;
28				}
29
30				$tabs.removeClass('active');
31				$tab.addClass('active');
32				$nav.find('li').removeClass('active');
33				$tab.closest('li').addClass('active');
34				$panels.removeClass('active');
35				$panels.filter(':eq(' + index + ')').addClass('active');
36
37                $(document.body).trigger('martfury_after_tab_clicked');
38
39			});
40		});
41	};
42
43	/* Init tabs */
44	$(function() {
45		$('.martfury-tabs').mrtabs();
46	});
47})(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.