PageSourceSearch

https://www.fch.org.bb/cdn/assets/libraries/SVGConverter/js/svg-converter.js?1790947327

js fch.org.bb collected 2026-10-02 13:23:19 UTC 1,014 bytes, 22 lines download raw bytes

1/* SVGConverter function S */
2    function SVGConverter (e) {
3        $(e + ' img.svg').each(function() {
4            var $img = $(this),
5                imgID = $img.attr('id'),
6                imgClass = $img.attr('class'),
7                imgURL = $img.attr('src');
8
9            $.get(imgURL, function(data) {
10                //var $svg = $(data).find('svg'), $svg = $svg.removeAttr('xmlns:a');
11                var $svg = $(data).find('svg');
12                if(typeof imgID !== 'undefined') { $svg = $svg.attr('id', imgID); }
13                if(typeof imgClass !== 'undefined') { $svg = $svg.attr('class', imgClass+' replaced-svg'); }
14                if(!$svg.attr('viewBox') && $svg.attr('height') && $svg.attr('width')) {
15                    $svg.attr('viewBox', '0 0 ' + $svg.attr('height') + ' ' + $svg.attr('width'));
16                }
17                $img.replaceWith($svg);    
18            }, 'xml');    
19        });
20    }
21    SVGConverter (".nq-svg");
22/* SVGConverter function E */

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.