PageSourceSearch

https://latinxtalk.org/wp-content/plugins/themezee-widget-bundle//assets/js/tabbed-content.js?ver=1.5.2

js latinxtalk.org collected 2026-09-24 20:08:06 UTC 1,423 bytes, 41 lines download raw bytes

1/**
2 * Tabbed Content
3 *
4 * Copyright(C) 2017, ThemeZee.com - [email protected]
5 * License: GPL v3
6 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
7 *
8 * @package ThemeZee Widget Bundle
9 */
10
11(function($) {
12
13	$.fn.tabbedWidget = function( widget ) {
14
15		var instance = '#' + widget.attr( 'id' );
16
17		$( instance + ' .tzwb-tabnavi li a:first' ).addClass( 'current-tab' ); // add active class to the first li.
18		$( instance + ' .tzwb-tabcontent' ).hide(); // hide all content classes.
19		$( instance + ' .tzwb-tabcontent:first' ).show(); // show only first div content.
20
21		$( instance + ' .tzwb-tabnavi li a' ).click(function(){ // add the click function.
22			$( instance + ' .tzwb-tabnavi li a' ).removeClass( 'current-tab' ); // remove current-tab class from previous li.
23			$( this ).addClass( 'current-tab' ); // add current-tab class to the active li.
24			$( instance + ' .tzwb-tabcontent' ).hide(); // hide all content classes.
25			var activeTab = $( this ).attr( 'href' ); // find the href attribute of the active tab.
26			$( activeTab ).fadeIn( 'fast' ); // fade in the content of active tab.
27			return false;
28		});
29	};
30
31	function initTabbedWidget( widget ) {
32		widget.find( '.tzwb-tabbed-content' ).tabbedWidget( widget );
33	}
34
35	$( document ).ready( function() {
36		$( '.tzwb-tabbed-content' ).each( function () {
37			initTabbedWidget( $( this ) );
38		} );
39	} );
40
41}(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.