PageSourceSearch

https://navytech.ru/wp-content/themes/bolid(lives-anapa)/functions/js/shortcodes.js?ver=3.5.1

js navytech.ru collected 2026-10-02 22:28:10 UTC 3,451 bytes, 125 lines download raw bytes

1/*-----------------------------------------------------------------------------------
2
3FILE INFORMATION
4
5
6- Tabs shortcode
7- Toggle shortcode
8
9-----------------------------------------------------------------------------------*/
10
11jQuery(function($) {
12	
13/*-----------------------------------------------------------------------------------
14  Tabs shortcode
15-----------------------------------------------------------------------------------*/
16	
17	if ( jQuery( '.shortcode-tabs').length ) {	
18		
19		jQuery( '.shortcode-tabs').each( function () {
20		
21			var tabCount = 1;
22		
23			jQuery(this).children( '.tab').each( function ( index, element ) {
24			
25				var idValue = jQuery(this).parents( '.shortcode-tabs').attr( 'id' );
26			
27				var newId = idValue + '-tab-' + tabCount;
28			
29				jQuery(this).attr( 'id', newId );
30				
31				jQuery(this).parents( '.shortcode-tabs').find( 'ul.tab_titles').children( 'li').eq(index).find( 'a').attr( 'href', '#' + newId );
32				
33				tabCount++;
34			
35			});
36		
37			var thisID = jQuery(this).attr( 'id' );
38		
39			jQuery(this).tabs( { fx: { opacity: 'toggle', duration: 200 } } );
40		
41		});
42
43
44	} // End IF Statement
45	
46/*-----------------------------------------------------------------------------------
47  Toggle shortcode
48-----------------------------------------------------------------------------------*/
49	
50	if ( jQuery( '.shortcode-toggle').length ) {	
51		
52		jQuery( '.shortcode-toggle').each( function () {
53			
54			var toggleObj = jQuery(this);
55			
56			toggleObj.closedText = toggleObj.find( 'input[name="title_closed"]').attr( 'value' );
57			toggleObj.openText = toggleObj.find( 'input[name="title_open"]').attr( 'value' );
58			
59			// Add logic for the optional excerpt text.
60			if ( toggleObj.find( 'a.more-link.read-more' ).length ) {
61				toggleObj.readMoreText = toggleObj.find( 'a.more-link.read-more' ).text();
62				toggleObj.readLessText = toggleObj.find( 'a.more-link.read-more' ).attr('readless');
63				toggleObj.find( 'a.more-link.read-more' ).removeAttr('readless');
64				
65				toggleObj.find( 'a.more-link' ).click( function () {
66					
67					var moreTextObj = jQuery( this ).next( '.more-text' );
68					
69					moreTextObj.animate({ opacity: 'toggle', height: 'toggle' }, 300).css( 'display', 'block' );
70					moreTextObj.toggleClass( 'open' ).toggleClass( 'closed' );
71					
72					if ( moreTextObj.hasClass( 'open') ) {
73					
74						jQuery(this).text(toggleObj.readLessText);
75					
76					} // End IF Statement
77					
78					if ( moreTextObj.hasClass( 'closed') ) {
79					
80						jQuery(this).text(toggleObj.readMoreText);
81					
82					} // End IF Statement
83					
84					return false;
85				});
86			}
87			
88			toggleObj.find( 'input[name="title_closed"]').remove();
89			toggleObj.find( 'input[name="title_open"]').remove();
90			
91			toggleObj.find( 'h4.toggle-trigger a').click( function () {
92			
93				toggleObj.find( '.toggle-content').animate({ opacity: 'toggle', height: 'toggle' }, 300);
94				toggleObj.toggleClass( 'open' ).toggleClass( 'closed' );
95				
96				if ( toggleObj.hasClass( 'open') ) {
97				
98					jQuery(this).text(toggleObj.openText);
99				
100				} // End IF Statement
101				
102				if ( toggleObj.hasClass( 'closed') ) {
103				
104					jQuery(this).text(toggleObj.closedText);
105				
106				} // End IF Statement
107				
108				return false;
109			
110			});
111					
112		});
113
114
115	} // End IF Statement
116	
117}); // jQuery()<!--Array
118(
119    [label01] =>    0.00000
120    [label02] =>    0.02579
121    [label03] =>    0.06542
122    [label04] =>    0.06542
123    [label05] =>    0.06543
124)
125-->

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.