diff options
| author | Patrick Simianer <p@simianer.de> | 2015-12-11 17:06:50 +0100 | 
|---|---|---|
| committer | Patrick Simianer <p@simianer.de> | 2015-12-11 17:06:50 +0100 | 
| commit | c273faedee7b0c73945dfd8fdab15d655b6c4f3a (patch) | |
| tree | 03024cde8ff1c622a2a2f23d70696411b0af8847 /js/debug.js | |
| parent | 7c179958222b95939ff1881a49126e08a38d489e (diff) | |
save original view as svg
Diffstat (limited to 'js/debug.js')
| -rw-r--r-- | js/debug.js | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/js/debug.js b/js/debug.js index 4ff95de..e54d3f1 100644 --- a/js/debug.js +++ b/js/debug.js @@ -5,12 +5,14 @@ $().ready(function()      $(this).click(function(){         $.ajax({url: $(this).attr("tgt"), success: function(result){            $("#control_reply").html(result); -      }});    +      }});      })    }) -   +    // display svg -  var d = atob(document.getElementById("svg_b64").innerHTML);  +  var d = atob(document.getElementById("svg_b64").innerHTML);    $('#svg').append($('<svg width="10000px">'+d+'</svg>')); +  d = atob(document.getElementById("original_svg_b64").innerHTML); +  $('#original_svg').append($('<svg width="10000px">'+d+'</svg>'));  }); | 
