DmitrMakeev
commited on
Commit
•
2a0818e
1
Parent(s):
c6b2825
Update biz_v.html
Browse files- biz_v.html +9 -1
biz_v.html
CHANGED
@@ -41,6 +41,13 @@
|
|
41 |
<h1>Комменты Бизон 365</h1>
|
42 |
<label for="tokenInput">Enter Token:</label>
|
43 |
<input type="text" id="tokenInput" placeholder="Your Token">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
<button id="sendRequestButton">Send Request</button>
|
45 |
<textarea id="responseArea" rows="10" cols="50" readonly></textarea>
|
46 |
<div id="dropdown-container"></div>
|
@@ -50,13 +57,14 @@
|
|
50 |
<script>
|
51 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
52 |
const token = document.getElementById('tokenInput').value;
|
|
|
53 |
const url = '/send_request';
|
54 |
fetch(url, {
|
55 |
method: 'POST',
|
56 |
headers: {
|
57 |
'Content-Type': 'application/x-www-form-urlencoded'
|
58 |
},
|
59 |
-
body: 'token=' + encodeURIComponent(token)
|
60 |
})
|
61 |
.then(response => response.json())
|
62 |
.then(data => {
|
|
|
41 |
<h1>Комменты Бизон 365</h1>
|
42 |
<label for="tokenInput">Enter Token:</label>
|
43 |
<input type="text" id="tokenInput" placeholder="Your Token">
|
44 |
+
<label for="dateSelect">Select Date:</label>
|
45 |
+
<select id="dateSelect">
|
46 |
+
<option value="2021-01-01T00:00:00">2021-01-01</option>
|
47 |
+
<option value="2022-01-01T00:00:00">2022-01-01</option>
|
48 |
+
<option value="2023-01-01T00:00:00">2023-01-01</option>
|
49 |
+
<option value="2024-01-01T00:00:00">2024-01-01</option>
|
50 |
+
</select>
|
51 |
<button id="sendRequestButton">Send Request</button>
|
52 |
<textarea id="responseArea" rows="10" cols="50" readonly></textarea>
|
53 |
<div id="dropdown-container"></div>
|
|
|
57 |
<script>
|
58 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
59 |
const token = document.getElementById('tokenInput').value;
|
60 |
+
const minDate = document.getElementById('dateSelect').value;
|
61 |
const url = '/send_request';
|
62 |
fetch(url, {
|
63 |
method: 'POST',
|
64 |
headers: {
|
65 |
'Content-Type': 'application/x-www-form-urlencoded'
|
66 |
},
|
67 |
+
body: 'token=' + encodeURIComponent(token) + '&minDate=' + encodeURIComponent(minDate)
|
68 |
})
|
69 |
.then(response => response.json())
|
70 |
.then(data => {
|