1$(document).ready(function() { 2 3 if($('.index__article__title__text').length > 0) { 4 5 $('.index__article__title__text').each(function(){ 6 7 //mÃsto ".index__article__title__text" -> $this a možná i find()... 8 9 var spanInserted = $(this).html().split(" ").join(" </span><span>"); 10 var wrapped = ("<span>").concat(spanInserted, "</span>"); 11 $(this).html(wrapped); 12 var refPos = Math.floor($(this).find('span:first-child').position().top); 13 var newPos; 14 $(this).find('span').each(function(index) { 15 newPos = Math.floor($(this).position().top); 16 if (index == 0){ 17 //console.log('ret ' + $(this).text()); 18 return; 19 } 20 if (Math.abs(newPos - refPos) <= 10){ 21 $(this).prepend($(this).prev().text() + " "); 22 $(this).prev().remove(); 23 } 24 refPos = newPos; 25 }); 26 }); 27 28 } 29 30 if($('.pgs__header__title__text').length > 0) { 31 32 var spanInserted = $('.pgs__header__title__text').html().split(" ").join(" </span><span>"); 33 var wrapped = ("<span>").concat(spanInserted, "</span>"); 34 $('.pgs__header__title__text').html(wrapped); 35 var refPos = $('.pgs__header__title__text span:first-child').position().top; 36 var newPos; 37 $('.pgs__header__title__text span').each(function(index) { 38 newPos = $(this).position().top 39 if (index == 0){ 40 return; 41 } 42 if (Math.abs(newPos - refPos) <= 10){ 43 $(this).prepend($(this).prev().text() + " "); 44 $(this).prev().remove(); 45 } 46 refPos = newPos; 47 }); 48 49 } 50 51 52});
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.