DmitrMakeev commited on
Commit
5dd4a46
·
verified ·
1 Parent(s): 4e1d4ee

Update biz_v.html

Browse files
Files changed (1) hide show
  1. biz_v.html +10 -1
biz_v.html CHANGED
@@ -49,6 +49,13 @@
49
  <option value="2023-01-01T00:00:00">2023-01-01</option>
50
  <option value="2024-01-01T00:00:00">2024-01-01</option>
51
  </select>
 
 
 
 
 
 
 
52
  <button id="sendRequestButton">Send Request</button>
53
  <textarea id="responseArea" rows="10" cols="50" readonly></textarea>
54
  <div id="dropdown-container"></div>
@@ -59,13 +66,15 @@
59
  document.getElementById('sendRequestButton').addEventListener('click', function() {
60
  const token = document.getElementById('tokenInput').value;
61
  const minDate = document.getElementById('dateSelect').value;
 
 
62
  const url = '/send_request';
63
  fetch(url, {
64
  method: 'POST',
65
  headers: {
66
  'Content-Type': 'application/x-www-form-urlencoded'
67
  },
68
- body: 'token=' + encodeURIComponent(token) + '&minDate=' + encodeURIComponent(minDate)
69
  })
70
  .then(response => response.json())
71
  .then(data => {
 
49
  <option value="2023-01-01T00:00:00">2023-01-01</option>
50
  <option value="2024-01-01T00:00:00">2024-01-01</option>
51
  </select>
52
+ <label for="limitInput">Limit:</label>
53
+ <input type="number" id="limitInput" placeholder="20" min="1" max="100">
54
+ <label for="webinarType">Webinar Type:</label>
55
+ <select id="webinarType">
56
+ <option value="LiveWebinars">Live Webinars</option>
57
+ <option value="AutoWebinars">Auto Webinars</option>
58
+ </select>
59
  <button id="sendRequestButton">Send Request</button>
60
  <textarea id="responseArea" rows="10" cols="50" readonly></textarea>
61
  <div id="dropdown-container"></div>
 
66
  document.getElementById('sendRequestButton').addEventListener('click', function() {
67
  const token = document.getElementById('tokenInput').value;
68
  const minDate = document.getElementById('dateSelect').value;
69
+ const limit = document.getElementById('limitInput').value;
70
+ const webinarType = document.getElementById('webinarType').value;
71
  const url = '/send_request';
72
  fetch(url, {
73
  method: 'POST',
74
  headers: {
75
  'Content-Type': 'application/x-www-form-urlencoded'
76
  },
77
+ body: 'token=' + encodeURIComponent(token) + '&minDate=' + encodeURIComponent(minDate) + '&limit=' + encodeURIComponent(limit) + '&type=' + encodeURIComponent(webinarType)
78
  })
79
  .then(response => response.json())
80
  .then(data => {