1jQuery(document).ready(function($) { 2 3 // book tabs 4 $( ".book-tab > a" ).click(function( event ) { 5 event.preventDefault(); 6 7 var rel = $(this).attr('rel'); 8 var book_id = $(this).attr('data-id'); 9 10 console.log(book_id); 11 12 $(".book-"+book_id+" .book-tab-content").removeClass('active'); 13 $(".book-"+book_id+" .book-tab a").removeClass('active'); 14 15 $(this).addClass('active'); 16 $(".book-"+book_id+" #"+rel).addClass('active'); 17 18 }); 19 20 /* 21 *display excerp when has value excerp present 22 * animate to exerpt position 23 */ 24 var hash = window.location.hash.substr(1); 25 if(hash == 'excerpt'){ 26 $('.book-tab a').removeClass('active'); 27 $('.book-tab.excerpt a').addClass('active'); 28 $('.book-tab-content').removeClass('active'); 29 $('.book-tab-content.excerpt').addClass('active'); 30 $("html, body").animate({ scrollTop: $('#book-excerpt').offset().top -75}, 1000); 31 } 32 33 function matchBookHeight(row){ 34 $( row ).each(function( index ) { 35 var maxHeight = 0; 36 37 for (var i = 0; i < $(this).children().length; i++) { 38 var items = $($(this).children()); 39 40 // split the list in the li items for just this 'row' 41 items.height(''); 42 // get the highest Height value in this list 43 maxHeight = Math.max.apply(null, items.map(function () { 44 return $(this).height(); 45 }).get()); 46 items.height(maxHeight); 47 } 48 }); 49 50 } 51 52 $(window).load(function(){ 53 matchBookHeight($(".book-list-thumbs")); 54 }); 55 56 $(window).resize(function(){ 57 matchBookHeight($(".book-list-thumbs")); 58 }); 59 60 61 $(".print-sortby").change(function() { 62 $(".print-sortby-form").submit(); 63 }); 64 65 66});
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.