1/* 2 * To change this license header, choose License Headers in Project Properties. 3 * To change this template file, choose Tools | Templates 4 * and open the template in the editor. 5 */ 6 7function scrollToDivIfNotVisible(id) { 8 var docViewTop = $(window).scrollTop(); 9 var docViewBottom = docViewTop + $(window).height(); 10 11 var elemTop = $("#" + id).offset().top; 12 var elemBottom = elemTop + $("#" + id).height(); 13 14 15 if ((elemBottom <= docViewBottom) && (elemTop >= docViewTop)) { 16 } else { 17 $('html,body').animate({ 18 scrollTop: $("#" + id).offset().top - 10 19 }); 20 } 21} 22 23function scrollToTop() { 24 25 $('html,body').animate({ 26 scrollTop: 0 27 }); 28 29} 30 31
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.