1// Check if the header in .m-real-estat-block is long... 2var longtexts = document.querySelectorAll('.dotdotdot'); 3if ( longtexts ) { 4 for ( var i = 0; i < longtexts.length; i++ ) { 5 6 var longtextElm = longtexts[i]; 7 var longtext = longtextElm.innerHTML; 8 var qtyChr = longtextElm.innerHTML.length; 9 10 if ( qtyChr > 250 ) { 11 // this text is to long 12 makeDotDotDot(longtextElm, longtext); 13 } else { 14 // this text is OK, do nothing 15 } 16 } 17} 18 19function makeDotDotDot( element, text ) { 20 var shortText = text.substring(0, 200); 21 var newText = shortText + "..."; 22 element.innerHTML = newText; 23 24} 25//} 26//function makeHeadlineFade(headline) { 27//// add a class to style this 28//// headline.classList.add('fadeout-text'); not in use, there is css for it 29// var headlineString = headline.innerHTML; 30// // where is the first "'" = n 31// var n = headlineString.indexOf(","); 32// 33// var trimmedHeadlineString = headlineString.substring(0, n); 34// var printThis = trimmedHeadlineString + ", ... "; 35// headline.innerHTML = printThis; 36//} 37// 38// 39//// Check if the header in .m-real-estat-block is long... 40//var premisesText = document.querySelectorAll('.m-premises-list-item .text'); 41//if ( premisesText ) { 42// for ( var i = 0; i < premisesText.length; i++ ) { 43// 44// var text = premisesText[i]; 45// var textHeight = text.clientHeight; 46// if ( textHeight > 66 ) { 47// makeTextFade(text); 48// } else { 49// // this have a perfect height 50// } 51// } 52//} 53// 54//function makeTextFade(headline) { 55//// add a class to style this 56//// headline.classList.add('fadeout-text'); not in use, there is css for it 57// var headlineString = headline.innerHTML; 58// // where is the first "'" = n 59//// var n = headlineString.indexOf(","); 60// 61// var trimmedHeadlineString = headlineString.substring(0, 200); 62// var printThis = trimmedHeadlineString + "... "; 63// headline.innerHTML = printThis; 64//}
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.