1$(document).ready(function () { 2 3 //external links 4 $(function () { 5 $('a[rel*=external]').click(function () { 6 window.open(this.href); 7 return false; 8 }); 9 }); 10 11 //scroll links 12 $('.navbar-nav a[href*=#]').on('click', function(event){ 13 event.preventDefault(); 14 $('html,body').animate({scrollTop:$(this.hash).offset().top - 83}, 500); 15 }); 16 17 //highlight navigation 18 var str=location.href.split('#')[0].toLowerCase(); 19 20 $(".navbar-nav li a").each(function() { 21 22 if (str.indexOf(this.href.toLowerCase()) > -1) { 23 $(".navbar-nav li.active").removeClass("active"); 24 $(this).parent().addClass("active"); 25 } 26 27 }); 28 29 $(".subNav li a").each(function() { 30 31 if (str.indexOf(this.href.toLowerCase()) > -1) { 32 $(".subNav li.active").removeClass("active"); 33 $(this).parent().addClass("active"); 34 } 35 36 }); 37 38 $(".btn-group li a").each(function() { 39 40 if (str.indexOf(this.href.toLowerCase()) > -1) { 41 $(".btn-group li.active").removeClass("active"); 42 $(this).parent().addClass("active"); 43 } 44 45 }); 46 47 48 $("li.active").parents().each(function(){ 49 50 if ($(this).is("li")){ 51 $(this).addClass("active"); 52 } 53 54 $(".navbar-nav ul.linkMenu li").removeClass("active"); 55 56 }); 57 58 59 //accordion 60 $('.panel-collapse').on('show.bs.collapse',function(){ 61 $(this).prev('.panel-heading').find('.panel-title').addClass("active-panel"); 62 }); 63 64 $('.panel-collapse').on('hide.bs.collapse',function(){ 65 $(this).prev('.panel-heading').find('.panel-title').removeClass("active-panel"); 66 }); 67 68 69 70 71 72 73});
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.