1jQuery(document).ready(function($) { 2 3 // Toggles 4 5 $(function(){ // run after page loads 6 $(".toggle_container").hide(); 7 //Switch the "Open" and "Close" state per click then slide up/down (depending on open/close state) 8 $("p.trigger").click(function(){ 9 $(this).toggleClass("active").next().slideToggle("normal"); 10 return false; //Prevent the browser jump to the link anchor 11 }); 12 $("p.trigger.open").addClass("active").next(".toggle_container").show('slow'); 13 }); 14 // End Toggles 15 16 17 // Tabs 18 19 var tabs = $('ul.tabs'); 20 tabs.each(function(i) { 21 //Get all tabs 22 var tab = $(this).find('> li > a'); 23 $("ul.tabs li:first-child").addClass("active").fadeIn('fast'); //Activate first tab 24 $("ul.tabs li:first-child a").addClass("active").fadeIn('fast'); //Activate first tab 25 $("ul.tabs-content li:first-child").addClass("active").fadeIn('fast'); //Activate first tab 26 27 tab.click(function(e) { 28 //Get Location of tab's content 29 var contentLocation = $(this).attr('href') + "Tab"; 30 31 //Let go if not a hashed one 32 if(contentLocation.charAt(0)=="#") { 33 34 e.preventDefault(); 35 36 //Make Tab Active 37 tab.removeClass('active'); 38 $(this).addClass('active'); 39 40 //Show Tab Content & add active class 41 $(contentLocation).show().addClass('active').siblings().hide().removeClass('active'); 42 43 } 44 }); 45 }); 46 // end Tabs 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.