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 | viewBox: [0, 0, 20, 40], |
michael@0 | 11 | width : "20px", |
michael@0 | 12 | meetOrSlice: "slice" |
michael@0 | 13 | }; |
michael@0 | 14 | |
michael@0 | 15 | appendSVGArrayWithParams(svgParams, "embed"); |
michael@0 | 16 | </script> |
michael@0 | 17 | <!-- Body gets populated by script --> |
michael@0 | 18 | </body> |
michael@0 | 19 | </html> |