PageSourceSearch

https://ksmedcenter.com/wp-content/plugins/svg-viewer/assets/js/svg.js?ver=7.1.2

js ksmedcenter.com collected 2026-10-06 22:09:00 UTC 1,190 bytes, 38 lines download raw bytes

1(function($,d3){
2    $.fn.svg_viewer = function(options){
3        var svg = $.data(this[0],"svg_viewer");
4        if(!svg)
5        {
6            svg = new $.svg_viewer_service(options,this[0]);
7            $.data(this[0],"svg_viewer",svg);
8        }
9
10        return svg;
11    };
12    $.svg_viewer_service = function(options,el){
13        this.settings = $.extend(true,{},$.svg_viewer_service.defaults,options);
14        this.d3_svg_node = d3.select('div#'+el.id+' svg');
15        this.svg_node = $('div#'+el.id+' svg');
16
17        this.init();
18    };
19    $.extend($.svg_viewer_service,
20        {
21            defaults:{
22                styles:null
23            },
24            prototype:{
25                init:function(){
26                    $.svg_viewer_service.add_styles(this);
27                }
28            },
29            add_styles:function(obj){
30                if(obj.svg_node!==null && obj.settings.styles) {
31                    obj.d3_svg_node.append("defs").lower().append("style").attr("type","text/css");
32                    let styles = obj.d3_svg_node.select('style');
33                    styles.text(obj.settings.styles);
34                }
35            }
36        }
37    );
38})(jQuery,d3);

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.