1// dom ready 2$(function() { 3 4 // grab/cache some elements and data 5 var $root = $('div.banner'), 6 $dots = $('.nav li a', $root), 7 $slides = $('[id^="slide-"]'), 8 total = $dots.size(), 9 cur = 0; 10 11 // update function 12 function update(e) { 13 $slides.eq(cur).fadeToggle().end().eq(e).fadeToggle(); 14 $dots.parent().addClass('inactive').eq(e).removeClass('inactive'); 15 cur = e; 16 }; 17 18 // dots binding 19 $dots.click(function() { 20 update($dots.index(this)); 21 return false; 22 }); 23 24 // set timeout 25 var t = setInterval(function() { 26 if (cur+2 > total) update(0); 27 else update(cur+1); 28 }, 8000); 29}); 30
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.