1jQuery(document).ready(function(){ 2 jQuery("img").each(function() { 3 var img_src = jQuery(this).attr('src'); 4 if (typeof img_src !== typeof undefined && img_src !== false) { 5 var img_alt = jQuery(this).attr('alt'); 6 var str = img_src 7 var pieces = str.split('/'); 8 var imgName = pieces[pieces.length-1]; 9 var imgnameArray = imgName.split('.'); 10 var alt = imgnameArray[0]; 11 if(img_alt == '' || typeof img_alt === typeof undefined || img_alt === false) { 12 jQuery(this).attr('alt',alt); 13 } 14 } 15 }); 16});
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.