PageSourceSearch

https://www.trentoarte.it/wp-content/themes/zenko/functions/wpzoom/assets/js/shortcodes.js?ver=1

js trentoarte.it collected 2026-10-03 02:51:45 UTC 2,697 bytes, 78 lines download raw bytes

1jQuery(function($) {
2    
3/*-----------------------------------------------------------------------------------
4  Tabs shortcode
5-----------------------------------------------------------------------------------*/
6    
7    if ( jQuery( '.shortcode-tabs').length ) {    
8        
9        jQuery( '.shortcode-tabs').each( function () {
10        
11            var tabCount = 1;
12        
13            jQuery(this).children( '.tab').each( function ( index, element ) {
14            
15                var idValue = jQuery(this).parents( '.shortcode-tabs').attr( 'id' );
16            
17                var newId = idValue + '-tab-' + tabCount;
18            
19                jQuery(this).attr( 'id', newId );
20                
21                jQuery(this).parents( '.shortcode-tabs').find( 'ul.tab_titles').children( 'li').eq(index).find( 'a').attr( 'href', '#' + newId );
22                
23                tabCount++;
24            
25            });
26        
27            var thisID = jQuery(this).attr( 'id' );
28        
29            jQuery(this).tabs( { fx: { opacity: 'toggle', duration: 200 } } );
30        
31        });
32
33
34    } // End IF Statement
35    
36/*-----------------------------------------------------------------------------------
37  Toggle shortcode
38-----------------------------------------------------------------------------------*/
39    
40    if ( jQuery( '.shortcode-toggle').length ) {    
41        
42        jQuery( '.shortcode-toggle').each( function () {
43            
44            var toggleObj = jQuery(this);
45            
46            toggleObj.closedText = toggleObj.find( 'input[name="title_closed"]').attr( 'value' );
47            toggleObj.openText = toggleObj.find( 'input[name="title_open"]').attr( 'value' );
48            
49            toggleObj.find( 'input[name="title_closed"]').remove();
50            toggleObj.find( 'input[name="title_open"]').remove();
51            
52            toggleObj.find( 'h4.toggle-trigger a').click( function () {
53            
54                toggleObj.find( '.toggle-content').animate({ opacity: 'toggle', height: 'toggle' }, 300);
55                toggleObj.toggleClass( 'open' ).toggleClass( 'closed' );
56                
57                if ( toggleObj.hasClass( 'open') ) {
58                
59                    jQuery(this).text(toggleObj.openText);
60                
61                } // End IF Statement
62                
63                if ( toggleObj.hasClass( 'closed') ) {
64                
65                    jQuery(this).text(toggleObj.closedText);
66                
67                } // End IF Statement
68                
69                return false;
70            
71            });
72                    
73        });
74
75
76    } // End IF Statement
77    
78}); // 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.