Update biz_v.html
Browse files- biz_v.html +107 -55
biz_v.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title
|
| 7 |
<style>
|
| 8 |
body {
|
| 9 |
font-family: Arial, sans-serif;
|
|
@@ -18,12 +18,25 @@
|
|
| 18 |
padding: 20px;
|
| 19 |
margin: 0;
|
| 20 |
border-bottom: 2px solid #388E3C;
|
| 21 |
-
font-size: 28px;
|
| 22 |
-
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
| 23 |
}
|
| 24 |
-
|
| 25 |
-
display:
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
color: white;
|
| 28 |
background-color: #4CAF50;
|
| 29 |
border: none;
|
|
@@ -31,75 +44,113 @@
|
|
| 31 |
padding: 10px 20px;
|
| 32 |
font-size: 16px;
|
| 33 |
border-radius: 5px;
|
| 34 |
-
|
| 35 |
}
|
| 36 |
-
|
| 37 |
background-color: #388E3C;
|
| 38 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
</style>
|
| 40 |
</head>
|
| 41 |
-
<!DOCTYPE html>
|
| 42 |
-
<html lang="en">
|
| 43 |
-
<head>
|
| 44 |
-
<meta charset="UTF-8">
|
| 45 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 46 |
-
<title>Комменты Бизон 365</title>
|
| 47 |
-
</head>
|
| 48 |
<body>
|
| 49 |
<h1>Комменты Бизон 365</h1>
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
<
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
|
|
| 66 |
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
|
|
|
| 73 |
|
| 74 |
-
|
| 75 |
-
|
|
|
|
| 76 |
|
| 77 |
-
|
| 78 |
-
|
|
|
|
| 79 |
|
| 80 |
-
|
| 81 |
-
<div id="dropdown-container"></div>
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
|
|
|
| 85 |
|
| 86 |
-
|
| 87 |
-
|
|
|
|
| 88 |
|
| 89 |
<script>
|
| 90 |
-
// Обработчик клика по кнопке отправки запроса
|
| 91 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
| 92 |
const token = document.getElementById('tokenInput').value;
|
| 93 |
-
const
|
| 94 |
-
const maxDate = document.getElementById('maxDateSelect').value;
|
| 95 |
const limit = document.getElementById('limitInput').value;
|
| 96 |
const type = document.getElementById('typeSelect').value;
|
| 97 |
|
| 98 |
const url = '/send_request';
|
| 99 |
const params = new URLSearchParams();
|
| 100 |
params.append('token', token);
|
| 101 |
-
params.append('minDate',
|
| 102 |
-
params.append('maxDate', maxDate);
|
| 103 |
params.append('limit', limit);
|
| 104 |
params.append('type', type);
|
| 105 |
|
|
@@ -122,12 +173,12 @@
|
|
| 122 |
});
|
| 123 |
});
|
| 124 |
|
| 125 |
-
// Функция для создания выпадающего списка
|
| 126 |
function createDropdown(data) {
|
| 127 |
const container = document.getElementById('dropdown-container');
|
| 128 |
container.innerHTML = ''; // Очистить контейнер перед добавлением нового списка
|
| 129 |
const select = document.createElement('select');
|
| 130 |
select.id = 'dropdown';
|
|
|
|
| 131 |
data.forEach(item => {
|
| 132 |
const option = document.createElement('option');
|
| 133 |
option.value = item;
|
|
@@ -137,9 +188,12 @@
|
|
| 137 |
container.appendChild(select);
|
| 138 |
}
|
| 139 |
|
| 140 |
-
// Обработчик клика по кнопке отправки GET-запроса
|
| 141 |
document.getElementById('sendGetRequestButton').addEventListener('click', function() {
|
| 142 |
-
const selectedValue = document.getElementById('dropdown')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
const token = document.getElementById('tokenInput').value;
|
| 144 |
const getUrl = `/send_get_request?token=${encodeURIComponent(token)}&webinarId=${encodeURIComponent(selectedValue)}`;
|
| 145 |
|
|
@@ -159,5 +213,3 @@
|
|
| 159 |
</script>
|
| 160 |
</body>
|
| 161 |
</html>
|
| 162 |
-
|
| 163 |
-
</html>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Комменты Бизон 365</title>
|
| 7 |
<style>
|
| 8 |
body {
|
| 9 |
font-family: Arial, sans-serif;
|
|
|
|
| 18 |
padding: 20px;
|
| 19 |
margin: 0;
|
| 20 |
border-bottom: 2px solid #388E3C;
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
+
.input-row {
|
| 23 |
+
display: flex;
|
| 24 |
+
flex-direction: column;
|
| 25 |
+
align-items: center;
|
| 26 |
+
gap: 10px;
|
| 27 |
+
margin-top: 20px;
|
| 28 |
+
}
|
| 29 |
+
.input-row label, .input-row input, .input-row select, .input-row textarea {
|
| 30 |
+
width: 80%;
|
| 31 |
+
padding: 10px;
|
| 32 |
+
font-size: 16px;
|
| 33 |
+
border: 1px solid #ccc;
|
| 34 |
+
border-radius: 5px;
|
| 35 |
+
}
|
| 36 |
+
.input-row input[type="number"] {
|
| 37 |
+
max-width: 100px;
|
| 38 |
+
}
|
| 39 |
+
#sendRequestButton, #sendGetRequestButton {
|
| 40 |
color: white;
|
| 41 |
background-color: #4CAF50;
|
| 42 |
border: none;
|
|
|
|
| 44 |
padding: 10px 20px;
|
| 45 |
font-size: 16px;
|
| 46 |
border-radius: 5px;
|
| 47 |
+
margin-top: 10px;
|
| 48 |
}
|
| 49 |
+
#sendRequestButton:hover, #sendGetRequestButton:hover {
|
| 50 |
background-color: #388E3C;
|
| 51 |
}
|
| 52 |
+
.dropdown-container {
|
| 53 |
+
margin-top: 20px;
|
| 54 |
+
width: 80%;
|
| 55 |
+
display: flex;
|
| 56 |
+
justify-content: center;
|
| 57 |
+
}
|
| 58 |
+
select {
|
| 59 |
+
background-color: #e8f5e9; /* Зеленый фон для выпадающего списка */
|
| 60 |
+
}
|
| 61 |
+
input[type="datetime-local"], input[type="date"] {
|
| 62 |
+
background-color: #e8f5e9; /* Зеленый фон для выбора даты и времени */
|
| 63 |
+
border: 1px solid #4CAF50; /* Зеленая рамка */
|
| 64 |
+
color: #4CAF50; /* Зеленый текст */
|
| 65 |
+
}
|
| 66 |
+
input[type="datetime-local"]::-webkit-datetime-edit,
|
| 67 |
+
input[type="date"]::-webkit-datetime-edit {
|
| 68 |
+
color: #4CAF50; /* Зеленый текст внутри поля */
|
| 69 |
+
}
|
| 70 |
+
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
|
| 71 |
+
input[type="date"]::-webkit-calendar-picker-indicator {
|
| 72 |
+
filter: invert(45%) sepia(20%) saturate(3500%) hue-rotate(90deg) brightness(95%) contrast(90%);
|
| 73 |
+
}
|
| 74 |
</style>
|
| 75 |
</head>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
<body>
|
| 77 |
<h1>Комменты Бизон 365</h1>
|
| 78 |
|
| 79 |
+
<div class="input-row">
|
| 80 |
+
<label for="tokenInput">Enter Token:</label>
|
| 81 |
+
<input type="text" id="tokenInput" placeholder="Your Token">
|
| 82 |
+
</div>
|
| 83 |
+
|
| 84 |
+
<div class="input-row">
|
| 85 |
+
<label for="dateSelect">Select Date:</label>
|
| 86 |
+
<select id="dateSelect">
|
| 87 |
+
<!-- Даты от 1 января 2000 года до 31 декабря 2020 года -->
|
| 88 |
+
<option value="2000-01-01">2000-01-01</option>
|
| 89 |
+
<option value="2001-01-01">2001-01-01</option>
|
| 90 |
+
<option value="2002-01-01">2002-01-01</option>
|
| 91 |
+
<option value="2003-01-01">2003-01-01</option>
|
| 92 |
+
<option value="2004-01-01">2004-01-01</option>
|
| 93 |
+
<option value="2005-01-01">2005-01-01</option>
|
| 94 |
+
<option value="2006-01-01">2006-01-01</option>
|
| 95 |
+
<option value="2007-01-01">2007-01-01</option>
|
| 96 |
+
<option value="2008-01-01">2008-01-01</option>
|
| 97 |
+
<option value="2009-01-01">2009-01-01</option>
|
| 98 |
+
<option value="2010-01-01">2010-01-01</option>
|
| 99 |
+
<option value="2011-01-01">2011-01-01</option>
|
| 100 |
+
<option value="2012-01-01">2012-01-01</option>
|
| 101 |
+
<option value="2013-01-01">2013-01-01</option>
|
| 102 |
+
<option value="2014-01-01">2014-01-01</option>
|
| 103 |
+
<option value="2015-01-01">2015-01-01</option>
|
| 104 |
+
<option value="2016-01-01">2016-01-01</option>
|
| 105 |
+
<option value="2017-01-01">2017-01-01</option>
|
| 106 |
+
<option value="2018-01-01">2018-01-01</option>
|
| 107 |
+
<option value="2019-01-01">2019-01-01</option>
|
| 108 |
+
<option value="2020-01-01">2020-01-01</option>
|
| 109 |
+
</select>
|
| 110 |
+
</div>
|
| 111 |
|
| 112 |
+
<div class="input-row">
|
| 113 |
+
<label for="limitInput">Limit:</label>
|
| 114 |
+
<input type="number" id="limitInput" value="20" min="1" max="100">
|
| 115 |
+
</div>
|
| 116 |
|
| 117 |
+
<div class="input-row">
|
| 118 |
+
<label for="typeSelect">Type:</label>
|
| 119 |
+
<select id="typeSelect">
|
| 120 |
+
<option value="LiveWebinars">Live Webinars</option>
|
| 121 |
+
<option value="AutoWebinars">Auto Webinars</option>
|
| 122 |
+
</select>
|
| 123 |
+
</div>
|
| 124 |
|
| 125 |
+
<div class="input-row">
|
| 126 |
+
<button id="sendRequestButton">Send Request</button>
|
| 127 |
+
</div>
|
| 128 |
|
| 129 |
+
<div class="input-row">
|
| 130 |
+
<textarea id="responseArea" rows="10" cols="50" readonly></textarea>
|
| 131 |
+
</div>
|
| 132 |
|
| 133 |
+
<div class="dropdown-container" id="dropdown-container"></div>
|
|
|
|
| 134 |
|
| 135 |
+
<div class="input-row">
|
| 136 |
+
<button id="sendGetRequestButton">Send GET Request</button>
|
| 137 |
+
</div>
|
| 138 |
|
| 139 |
+
<div class="input-row">
|
| 140 |
+
<textarea id="secondResponseArea" rows="10" cols="50" readonly></textarea>
|
| 141 |
+
</div>
|
| 142 |
|
| 143 |
<script>
|
|
|
|
| 144 |
document.getElementById('sendRequestButton').addEventListener('click', function() {
|
| 145 |
const token = document.getElementById('tokenInput').value;
|
| 146 |
+
const selectedDate = document.getElementById('dateSelect').value;
|
|
|
|
| 147 |
const limit = document.getElementById('limitInput').value;
|
| 148 |
const type = document.getElementById('typeSelect').value;
|
| 149 |
|
| 150 |
const url = '/send_request';
|
| 151 |
const params = new URLSearchParams();
|
| 152 |
params.append('token', token);
|
| 153 |
+
params.append('minDate', selectedDate); // Используем выбранную дату как минимальную
|
|
|
|
| 154 |
params.append('limit', limit);
|
| 155 |
params.append('type', type);
|
| 156 |
|
|
|
|
| 173 |
});
|
| 174 |
});
|
| 175 |
|
|
|
|
| 176 |
function createDropdown(data) {
|
| 177 |
const container = document.getElementById('dropdown-container');
|
| 178 |
container.innerHTML = ''; // Очистить контейнер перед добавлением нового списка
|
| 179 |
const select = document.createElement('select');
|
| 180 |
select.id = 'dropdown';
|
| 181 |
+
select.style.backgroundColor = '#e8f5e9'; // Зеленый фон для выпадающего списка
|
| 182 |
data.forEach(item => {
|
| 183 |
const option = document.createElement('option');
|
| 184 |
option.value = item;
|
|
|
|
| 188 |
container.appendChild(select);
|
| 189 |
}
|
| 190 |
|
|
|
|
| 191 |
document.getElementById('sendGetRequestButton').addEventListener('click', function() {
|
| 192 |
+
const selectedValue = document.getElementById('dropdown')?.value;
|
| 193 |
+
if (!selectedValue) {
|
| 194 |
+
alert('Please select a webinar from the dropdown.');
|
| 195 |
+
return;
|
| 196 |
+
}
|
| 197 |
const token = document.getElementById('tokenInput').value;
|
| 198 |
const getUrl = `/send_get_request?token=${encodeURIComponent(token)}&webinarId=${encodeURIComponent(selectedValue)}`;
|
| 199 |
|
|
|
|
| 213 |
</script>
|
| 214 |
</body>
|
| 215 |
</html>
|
|
|
|
|
|