1$(function(){ 2 function svgasimg() { 3 return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1"); 4 } 5 (function replaceSvgs(){ 6 if (svgasimg()) { 7 return; 8 } 9 $('img').each(function(){ 10 if (this.src.indexOf(".svg") > -1) { 11 replaceImgSIG(this); 12 } 13 }); 14 })(); 15}); 16 17function replaceImgSIG(image) { 18 console.warn("SVG not supported"); 19 if (!image.replaced) { 20 image.src = image.src.replace(".svg", ".png"); 21 } 22 image.replaced = true; 23}
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.