1$(document).ready(function(){ 2 3// --------------------------------------------------------- 4// Tabs 5// --------------------------------------------------------- 6$(".tabs").each(function(){ 7 8 $(this).find(".tab").hide(); 9 $(this).find(".tab-menu li:first a").addClass("active").show(); 10 $(this).find(".tab:first").show(); 11 12}); 13 14$(".tabs").each(function(){ 15 16 $(this).find(".tab-menu a").click(function() { 17 18 $(this).parent().parent().find("a").removeClass("active"); 19 $(this).addClass("active"); 20 $(this).parent().parent().parent().parent().find(".tab").hide(); 21 var activeTab = $(this).attr("href"); 22 $(activeTab).fadeIn(); 23 return false; 24 25 }); 26 27}); 28 29 30// --------------------------------------------------------- 31// Toggle 32// --------------------------------------------------------- 33 34$(".toggle").each(function(){ 35 36 $(this).find(".box").hide(); 37 38}); 39 40$(".toggle").each(function(){ 41 42 $(this).find(".trigger").click(function() { 43 44 $(this).toggleClass("active").next().stop(true, true).slideToggle("normal"); 45 46 return false; 47 48 }); 49 50}); 51 52 53 54// --------------------------------------------------------- 55// Social Icons 56// --------------------------------------------------------- 57 58jQuery(".social-networks li a").tooltip({ effect: 'slide', position: 'bottom center', opacity: .5 }); 59 60 61 62// --------------------------------------------------------- 63// Back to Top 64// --------------------------------------------------------- 65 66// fade in #back-top 67jQuery(function () { 68 jQuery(window).scroll(function () { 69 if (jQuery(this).scrollTop() > 100) { 70 jQuery('#back-top').fadeIn(); 71 } else { 72 jQuery('#back-top').fadeOut(); 73 } 74 }); 75 76 // scroll body to 0px on click 77 jQuery('#back-top a').click(function () { 78 jQuery('body,html').stop(false, false).animate({ 79 scrollTop: 0 80 }, 800); 81 return false; 82 }); 83}); 84 85 86});
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.