PageSourceSearch

https://souz-zastroi.ru/web/_alt/js/main/img-svg.js

js souz-zastroi.ru collected 2026-10-07 16:43:40 UTC 597 bytes, 16 lines download raw bytes

1$('img.img-svg').each(function(){
2    var $img = $(this);
3    var imgClass = $img.attr('class');
4    var imgURL = $img.attr('src');
5    $.get(imgURL, function(data) {
6      var $svg = $(data).find('svg');
7      if(typeof imgClass !== 'undefined') {
8        $svg = $svg.attr('class', imgClass+' replaced-svg');
9      }
10      $svg = $svg.removeAttr('xmlns:a');
11      if(!$svg.attr('viewBox') && $svg.attr('height') && $svg.attr('width')) {
12        $svg.attr('viewBox', '0 0 ' + $svg.attr('height') + ' ' + $svg.attr('width'))
13      }
14      $img.replaceWith($svg);
15    }, 'xml');
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.