1 // Tabs 2 //When page loads... 3 jQuery('.tabs-wrapper').each(function() { 4 jQuery(this).find(".tab_content").hide(); //Hide all content 5 if(document.location.hash && jQuery(this).find("ul.tabs li a[href='"+document.location.hash+"']").length >= 1) { 6 jQuery(this).find("ul.tabs li a[href='"+document.location.hash+"']").parent().addClass("active").show(); //Activate first tab 7 jQuery(this).find(document.location.hash+".tab_content").show(); //Show first tab content 8 } else { 9 jQuery(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab 10 jQuery(this).find(".tab_content:first").show(); //Show first tab content 11 } 12 }); 13 14 //On Click Event 15 jQuery("ul.tabs li").click(function(e) { 16 jQuery(this).parents('.tabs-wrapper').find("ul.tabs li").removeClass("active"); //Remove any "active" class 17 jQuery(this).addClass("active"); //Add "active" class to selected tab 18 jQuery(this).parents('.tabs-wrapper').find(".tab_content").hide(); //Hide all tab content 19 20 var activeTab = jQuery(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content 21 jQuery(this).parents('.tabs-wrapper').find(activeTab).fadeIn(); //Fade in the active ID content 22 23 }); 24 25 jQuery("ul.tabs li a").click(function(e) { 26 e.preventDefault(); 27 }) 28 29 jQuery('#sidebar .tabset').each(function() { 30 var menuWidth = jQuery(this).width(); 31 var menuItems = jQuery(this).find('li').size(); 32 var itemWidth = (menuWidth/menuItems)-1; 33 var menuItemsExcludingLast = jQuery(this).find('li:not(:last)'); 34 var menuItemsExcludingLastSize = jQuery(this).find('li:not(:last)').size(); 35 36 jQuery(this).css({'width': menuWidth +'px'}); 37 jQuery(this).find('li').css({'width': itemWidth +'px'}); 38 39 var menuItemsExcludingLastWidth = ((menuItemsExcludingLast.width() + 1) * menuItemsExcludingLastSize); 40 var lastItemSize = menuWidth - menuItemsExcludingLastWidth; 41 42 //jQuery(this).find('li:last').css({'width': lastItemSize +'px'}); 43 }); 44 45 46 jQuery('.footer-area .tabset').each(function() { 47 var menuWidth = jQuery(this).width(); 48 var menuItems = jQuery(this).find('li').size(); 49 var itemWidth = (menuWidth/menuItems)-1; 50 var menuItemsExcludingLast = jQuery(this).find('li:not(:last)'); 51 var menuItemsExcludingLastSize = jQuery(this).find('li:not(:last)').size(); 52 53 jQuery(this).css({'width': menuWidth +'px'}); 54 jQuery(this).find('li').css({'width': itemWidth +'px'}); 55 56 var menuItemsExcludingLastWidth = ((menuItemsExcludingLast.width() + 1) * menuItemsExcludingLastSize); 57 var lastItemSize = menuWidth - menuItemsExcludingLastWidth; 58 59 //jQuery(this).find('li:last').css({'width': lastItemSize +'px'}); 60 });
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.