PageSourceSearch

https://web.rosknroll.fi/rosknroll/js/shared/svgutils.js?timestamp=20260519-1138

js rosknroll.fi collected 2026-09-26 03:00:59 UTC 490 bytes, 22 lines download raw bytes

1var SvgUtils = (function() {
2	var svgNS = "http://www.w3.org/2000/svg";
3    
4	return {
5		setAttributes: function($elem, attrs) {
6			$elem.each(function() {
7				for(var key in attrs) {
8					this.setAttribute(key, attrs[key]);
9				}
10			});
11		},
12		createElement: function(type, attrs) {
13			var element = document.createElementNS(svgNS, type);
14			var $element = $(element);
15			if(attrs) {
16				SvgUtils.setAttributes($element, attrs);
17			}
18			return $element;
19		}
20	};
21
22})();

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.