1jQuery(function() { 2 3 /* Accordion */ 4 jQuery('.simnor-shortcode-toggle-active').each(function() { 5 jQuery(this).find('.simnor-shortcode-toggle-content').show(); 6 }); 7 jQuery('.simnor-shortcode-toggle .simnor-shortcode-toggle-heading').click(function() { 8 var toggle = jQuery(this).parent('.simnor-shortcode-toggle'); 9 if(jQuery(this).parent('.simnor-shortcode-toggle').parent('div').hasClass('simnor-shortcode-accordion')) { 10 toggle.parent('div').find('.simnor-shortcode-toggle').find('.simnor-shortcode-toggle-content:visible').slideUp(); 11 toggle.parent('div').find('.simnor-shortcode-toggle-active').removeClass('simnor-shortcode-toggle-active'); 12 toggle.toggleClass('simnor-shortcode-toggle-active'); 13 toggle.find('.simnor-shortcode-toggle-content').slideToggle(500); 14 } else { 15 toggle.toggleClass('simnor-shortcode-toggle-active'); 16 toggle.find('.simnor-shortcode-toggle-content').slideToggle(500); 17 } 18 }); 19 20 21 /* Tabs */ 22 jQuery('.simnor-shortcode-tabs').each(function() { 23 24 jQuery(this).prepend('<div class="simnor-shortcode-tab-buttons"></div>'); 25 jQuery(this).find('.simnor-shortcode-tabpane').each(function() { 26 27 jQuery(this).parent('.simnor-shortcode-tabs').find('.simnor-shortcode-tab-buttons').append('<a href="#">'+jQuery(this).find('.simnor-shortcode-tab-label').text()+'</a>'); 28 jQuery(this).find('.simnor-shortcode-tab-label').remove(); 29 30 }); 31 32 jQuery(this).find('.simnor-shortcode-tab-buttons').find('a:first').addClass('active'); 33 jQuery(this).find('.simnor-shortcode-tabpane').hide(); 34 jQuery(this).find('.simnor-shortcode-tabpane:first').show(); 35 36 }); 37 38 var tab_to_show = 0; 39 jQuery(document).on('click', '.simnor-shortcode-tab-buttons a', function() { 40 tab_to_show = jQuery(this).parent('.simnor-shortcode-tab-buttons').find('a').index(jQuery(this)); 41 jQuery(this).parent('.simnor-shortcode-tab-buttons').parent('.simnor-shortcode-tabs').find('.simnor-shortcode-tabpane').hide(); 42 jQuery(this).parent('.simnor-shortcode-tab-buttons').parent('.simnor-shortcode-tabs').find('.simnor-shortcode-tabpane').eq(tab_to_show).show(); 43 jQuery(this).parent('.simnor-shortcode-tab-buttons').find('a').removeClass('active'); 44 jQuery(this).parent('.simnor-shortcode-tab-buttons').find('a').eq(tab_to_show).addClass('active'); 45 return false; 46 }); 47 48});
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.