Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <link rel="stylesheet" type="text/css" href="svg-image-util.css" /> |
michael@0 | 5 | <script src="svg-image-util.js"></script> |
michael@0 | 6 | </head> |
michael@0 | 7 | <body> |
michael@0 | 8 | <script> |
michael@0 | 9 | var svgParams = { |
michael@0 | 10 | view: { |
michael@0 | 11 | viewBox: [0, 0, 20, 20], |
michael@0 | 12 | meetOrSlice: "slice" |
michael@0 | 13 | }, |
michael@0 | 14 | fragmentIdentifier: "view" |
michael@0 | 15 | }; |
michael@0 | 16 | |
michael@0 | 17 | appendSVGArrayWithParams(svgParams, "img"); |
michael@0 | 18 | </script> |
michael@0 | 19 | <!-- Body gets populated by script --> |
michael@0 | 20 | </body> |
michael@0 | 21 | </html> |