summaryrefslogtreecommitdiff
path: root/js/debug.js
blob: e54d3f179273c7c38925ca0e5b9988f033c09429 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$().ready(function()
{
  // use ajax to send commands to the server
  $(".ajax").each(function(x){
    $(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);
  $('#svg').append($('<svg width="10000px">'+d+'</svg>'));
  d = atob(document.getElementById("original_svg_b64").innerHTML);
  $('#original_svg').append($('<svg width="10000px">'+d+'</svg>'));
});