summaryrefslogtreecommitdiff
path: root/js/debug.js
blob: 4ff95de3a58557225e8d003b17e8743e68c551fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$().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>'));
});