Webby DOM stuff
[ipdf/sam.git] / figures / koch.js
index 7ff1164..14ff513 100644 (file)
@@ -131,8 +131,8 @@ function reset()
 
 function svgToText()
 {
-       var data = "<svg id=\"kochSVG\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" width=\"400\" height=\"400\">";
-       data += "<path id=\"line\" style=\"stroke:"+document.getElementById("stroke").value+"; fill:"+document.getElementById("fill").value+"; stroke-width:"+document.getElementById("stroke-width").value+"px;\" d=\""+document.getElementById("line").getAttribute("d")+"\"/>";
+       var data = "<svg id='kochSVG' xmlns='http://www.w3.org/2000/svg' version='1.1' width='400' height='400'>";
+       data += "<path id='line' style='stroke:"+document.getElementById("stroke").value+"; fill:"+document.getElementById("fill").value+"; stroke-width:"+document.getElementById("stroke-width").value+"px;' d='"+document.getElementById("line").getAttribute("d")+"'/>";
        data += "</svg>"
        var win = window.open("image/svg+xml");
        win.document.write(data);

UCC git Repository :: git.ucc.asn.au