From c273faedee7b0c73945dfd8fdab15d655b6c4f3a Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Fri, 11 Dec 2015 17:06:50 +0100 Subject: save original view as svg --- js/debug.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'js/debug.js') 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($('')); + d = atob(document.getElementById("original_svg_b64").innerHTML); + $('#original_svg').append($('')); }); -- cgit v1.2.3