https://www.b1015.com/wp-content/plugins/weblator_polling/public/assets/js/app/legend.js?ver=1.3.5.6
1function legend(parent, data) { 2 3 //parent.className = 'legend'; 4 var datas = data.hasOwnProperty('datasets') ? data.datasets : data; 5 6 jQuery(parent).empty(); 7 8 datas.forEach(function(d) { 9 10 var span = jQuery("<div></div>") 11 .html(d.label) 12 .addClass("weblator-label") 13 .css({ 14 fontSize : jQuery(parent).attr("data-font-size") + "px" 15 }); 16 17 var title = jQuery("<li></li>") 18 .attr("class", "title") 19 .append(span); 20 21 var box = jQuery("<div></div>") 22 .addClass("box") 23 .css({ 24 backgroundColor : d.color, 25 26 }); 27 28 if (jQuery(parent).hasClass("tr")) 29 title.append(box); 30 else 31 title.prepend(box); 32 33 jQuery(parent).append(title); 34 35 36 }); 37}
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.