github.com/loomnetwork/gamechain@v0.0.0-20200406110549-36c47eb97a92/tools/gamechain-debugger/view/pages/cli_debugger.html (about)

     1  {{define "content"}}
     2  <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
     3    <h1 class="h2">Cli Debugger</h1>
     4  </div>
     5  <div class="row">
     6    <div class="col-md-2">
     7      <span class="form-control">args</span>
     8    </div>
     9    <div class="col-md-6">
    10      <input type="text" class="form-control" id="args" placeholder="" value="" required>
    11    </div>
    12    <div class="col-md-1">
    13      <button class="btn btn-success btn-block" onclick="run()">Run</button>
    14    </div>
    15  </div>
    16  <hr>
    17  <pre id="result">
    18    
    19  </pre>
    20  <script>
    21    
    22    function run() {
    23      $.ajax({
    24        type: 'GET',
    25        url: 'http://localhost:3000/run_cli',
    26        data: { "args": $("#args").val() }, 
    27        success: function(data) {
    28          $("#result").text(JSON.stringify(data, null, 2))
    29        },
    30      });
    31    }
    32  
    33  </script>
    34  {{end}}