PageSourceSearch

https://www.aspentech.com/_js/svg.js

js aspentech.com collected 2026-09-24 15:32:07 UTC 737 bytes, 23 lines download raw bytes

1$(document).ready(function () {
2    $('img[src$=".svg"]:not(.nosvg)').each(function () {
3        var $img = jQuery(this);
4        var imgURL = $img.attr('src');
5        var attributes = $img.prop("attributes");
6
7        $.get(imgURL, function (data) {
8            // Get the SVG tag, ignore the rest
9            var $svg = jQuery(data).find('svg');
10
11            // Remove any invalid XML tags
12            $svg = $svg.removeAttr('xmlns:a');
13
14            // Loop through IMG attributes and apply on SVG
15            $.each(attributes, function () {
16                $svg.attr(this.name, this.value);
17            });
18
19            // Replace IMG with SVG
20            $img.replaceWith($svg);
21        }, 'xml');
22    });
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.