DmitrMakeev commited on
Commit
37e8529
1 Parent(s): 9de9c09

Update biz_v.html

Browse files
Files changed (1) hide show
  1. biz_v.html +4 -4
biz_v.html CHANGED
@@ -10,7 +10,7 @@
10
  <label for="tokenInput">Enter Token:</label>
11
  <input type="text" id="tokenInput" placeholder="Your Token">
12
  <button id="sendRequestButton">Send Request</button>
13
- <textarea id="responseArea" rows="10" cols="50" readonly></textarea>
14
 
15
  <script>
16
  document.getElementById('sendRequestButton').addEventListener('click', function() {
@@ -24,13 +24,13 @@
24
  },
25
  body: 'token=' + encodeURIComponent(token)
26
  })
27
- .then(response => response.json())
28
  .then(data => {
29
- document.getElementById('responseArea').value = JSON.stringify(data, null, 2);
30
  })
31
  .catch(error => {
32
  console.error('Error:', error);
33
- document.getElementById('responseArea').value = 'Error: ' + error.message;
34
  });
35
  });
36
  </script>
 
10
  <label for="tokenInput">Enter Token:</label>
11
  <input type="text" id="tokenInput" placeholder="Your Token">
12
  <button id="sendRequestButton">Send Request</button>
13
+ <div id="responseArea"></div>
14
 
15
  <script>
16
  document.getElementById('sendRequestButton').addEventListener('click', function() {
 
24
  },
25
  body: 'token=' + encodeURIComponent(token)
26
  })
27
+ .then(response => response.text())
28
  .then(data => {
29
+ document.getElementById('responseArea').innerHTML = data;
30
  })
31
  .catch(error => {
32
  console.error('Error:', error);
33
+ document.getElementById('responseArea').innerHTML = 'Error: ' + error.message;
34
  });
35
  });
36
  </script>