Update biz_v.html
Browse files- biz_v.html +177 -179
biz_v.html
CHANGED
|
@@ -6,176 +6,179 @@
|
|
| 6 |
<title>API Request</title>
|
| 7 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/notyf/notyf.min.css">
|
| 8 |
<style>
|
| 9 |
-
body {
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
}
|
| 16 |
-
h1 {
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
}
|
| 25 |
-
.container {
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
}
|
| 30 |
-
.block {
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
}
|
| 38 |
-
.form-group {
|
| 39 |
-
|
| 40 |
-
}
|
| 41 |
-
.form-group label {
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
}
|
| 46 |
-
.form-group input,
|
| 47 |
-
.form-group select {
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
}
|
| 55 |
-
button {
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
}
|
| 67 |
-
button:hover {
|
| 68 |
-
|
| 69 |
-
}
|
| 70 |
-
.input-row {
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
}
|
| 76 |
-
.input-row input[type="file"] {
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
}
|
| 82 |
-
.input-row input[type="checkbox"] {
|
| 83 |
-
|
| 84 |
-
}
|
| 85 |
-
.input-row label {
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
}
|
| 91 |
-
#uploadButton {
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
}
|
| 104 |
-
#uploadButton:hover {
|
| 105 |
-
|
| 106 |
-
}
|
| 107 |
-
/*
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
}
|
| 146 |
-
.checkmark {
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
}
|
| 154 |
-
.container-checkbox
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
}
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
|
|
|
|
|
|
|
|
|
| 179 |
</style>
|
| 180 |
</head>
|
| 181 |
<body>
|
|
@@ -212,13 +215,8 @@ button:hover {
|
|
| 212 |
<input type="text" id="tokenInput" placeholder="Введите токен">
|
| 213 |
</div>
|
| 214 |
<div class="form-group">
|
| 215 |
-
<label for="
|
| 216 |
-
<
|
| 217 |
-
<option value="2021-01-01T00:00:00">2021-01-01</option>
|
| 218 |
-
<option value="2022-01-01T00:00:00">2022-01-01</option>
|
| 219 |
-
<option value="2023-01-01T00:00:00">2023-01-01</option>
|
| 220 |
-
<option value="2024-01-01T00:00:00">2024-01-01</option>
|
| 221 |
-
</select>
|
| 222 |
</div>
|
| 223 |
<div class="form-group">
|
| 224 |
<label for="typeSelect">Выбор формата вебинара:</label>
|
|
@@ -229,7 +227,7 @@ button:hover {
|
|
| 229 |
</div>
|
| 230 |
<button id="sendRequestButton">Получи��ь список комнат Бизон 365</button>
|
| 231 |
<div id="dropdown-container"></div>
|
| 232 |
-
<button id="sendGetRequestButton">Обновить базу
|
| 233 |
</div>
|
| 234 |
</div>
|
| 235 |
|
|
@@ -295,7 +293,7 @@ button:hover {
|
|
| 295 |
if (requestButtonClicked) return;
|
| 296 |
requestButtonClicked = true;
|
| 297 |
const token = document.getElementById('tokenInput').value;
|
| 298 |
-
const minDate = document.getElementById('
|
| 299 |
const type = document.getElementById('typeSelect').value;
|
| 300 |
const url = '/send_request';
|
| 301 |
fetch(url, {
|
|
|
|
| 6 |
<title>API Request</title>
|
| 7 |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/notyf/notyf.min.css">
|
| 8 |
<style>
|
| 9 |
+
body {
|
| 10 |
+
font-family: Arial, sans-serif;
|
| 11 |
+
text-align: center;
|
| 12 |
+
background-color: #f0f0f0;
|
| 13 |
+
margin: 0;
|
| 14 |
+
padding: 0;
|
| 15 |
+
}
|
| 16 |
+
h1 {
|
| 17 |
+
background-color: #4CAF50;
|
| 18 |
+
color: white;
|
| 19 |
+
padding: 20px;
|
| 20 |
+
margin: 0;
|
| 21 |
+
border-bottom: 2px solid #388E3C;
|
| 22 |
+
font-size: 28px;
|
| 23 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
| 24 |
+
}
|
| 25 |
+
.container {
|
| 26 |
+
display: flex;
|
| 27 |
+
justify-content: space-around;
|
| 28 |
+
margin-top: 20px;
|
| 29 |
+
}
|
| 30 |
+
.block {
|
| 31 |
+
width: 45%;
|
| 32 |
+
text-align: left;
|
| 33 |
+
background-color: white;
|
| 34 |
+
padding: 20px;
|
| 35 |
+
border-radius: 10px;
|
| 36 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
| 37 |
+
}
|
| 38 |
+
.form-group {
|
| 39 |
+
margin: 20px 0;
|
| 40 |
+
}
|
| 41 |
+
.form-group label {
|
| 42 |
+
display: block;
|
| 43 |
+
margin-bottom: 8px;
|
| 44 |
+
font-size: 16px;
|
| 45 |
+
}
|
| 46 |
+
.form-group input,
|
| 47 |
+
.form-group select {
|
| 48 |
+
width: 100%;
|
| 49 |
+
padding: 12px;
|
| 50 |
+
font-size: 16px;
|
| 51 |
+
border: 1px solid #ccc;
|
| 52 |
+
border-radius: 5px;
|
| 53 |
+
box-sizing: border-box;
|
| 54 |
+
}
|
| 55 |
+
button {
|
| 56 |
+
display: block;
|
| 57 |
+
margin: 20px auto;
|
| 58 |
+
color: white;
|
| 59 |
+
background-color: #4CAF50;
|
| 60 |
+
border: none;
|
| 61 |
+
cursor: pointer;
|
| 62 |
+
padding: 12px 24px;
|
| 63 |
+
font-size: 16px;
|
| 64 |
+
border-radius: 5px;
|
| 65 |
+
transition: background-color 0.3s ease;
|
| 66 |
+
}
|
| 67 |
+
button:hover {
|
| 68 |
+
background-color: #388E3C;
|
| 69 |
+
}
|
| 70 |
+
.input-row {
|
| 71 |
+
display: flex;
|
| 72 |
+
justify-content: center;
|
| 73 |
+
gap: 10px;
|
| 74 |
+
margin-top: 20px;
|
| 75 |
+
}
|
| 76 |
+
.input-row input[type="file"] {
|
| 77 |
+
padding: 10px;
|
| 78 |
+
font-size: 16px;
|
| 79 |
+
border: 1px solid #ccc;
|
| 80 |
+
border-radius: 5px;
|
| 81 |
+
}
|
| 82 |
+
.input-row input[type="checkbox"] {
|
| 83 |
+
margin-top: 5px;
|
| 84 |
+
}
|
| 85 |
+
.input-row label {
|
| 86 |
+
display: flex;
|
| 87 |
+
align-items: center;
|
| 88 |
+
color: #4CAF50;
|
| 89 |
+
font-size: 16px;
|
| 90 |
+
}
|
| 91 |
+
#uploadButton {
|
| 92 |
+
color: white;
|
| 93 |
+
background-color: #4CAF50;
|
| 94 |
+
border: none;
|
| 95 |
+
cursor: pointer;
|
| 96 |
+
padding: 10px 20px;
|
| 97 |
+
font-size: 16px;
|
| 98 |
+
border-radius: 5px;
|
| 99 |
+
margin-top: 20px;
|
| 100 |
+
display: block;
|
| 101 |
+
margin-left: auto;
|
| 102 |
+
margin-right: auto;
|
| 103 |
+
}
|
| 104 |
+
#uploadButton:hover {
|
| 105 |
+
background-color: #388E3C;
|
| 106 |
+
}
|
| 107 |
+
/* Центрирование заголовков блоков */
|
| 108 |
+
.block h2 {
|
| 109 |
+
text-align: center;
|
| 110 |
+
}
|
| 111 |
+
/* Custom Checkbox Styles */
|
| 112 |
+
.container-checkbox {
|
| 113 |
+
color: #000000;
|
| 114 |
+
display: block;
|
| 115 |
+
position: relative;
|
| 116 |
+
padding-left: 35px;
|
| 117 |
+
margin-bottom: 12px;
|
| 118 |
+
cursor: pointer;
|
| 119 |
+
font-size: 16px;
|
| 120 |
+
-webkit-user-select: none;
|
| 121 |
+
-moz-user-select: none;
|
| 122 |
+
-ms-user-select: none;
|
| 123 |
+
user-select: none;
|
| 124 |
+
}
|
| 125 |
+
.container-checkbox input {
|
| 126 |
+
position: absolute;
|
| 127 |
+
opacity: 0;
|
| 128 |
+
cursor: pointer;
|
| 129 |
+
height: 0;
|
| 130 |
+
width: 0;
|
| 131 |
+
}
|
| 132 |
+
.checkmark {
|
| 133 |
+
position: absolute;
|
| 134 |
+
top: 0;
|
| 135 |
+
left: 0;
|
| 136 |
+
height: 25px;
|
| 137 |
+
width: 25px;
|
| 138 |
+
background-color: #eee;
|
| 139 |
+
}
|
| 140 |
+
.container-checkbox:hover input ~ .checkmark {
|
| 141 |
+
background-color: #ccc;
|
| 142 |
+
}
|
| 143 |
+
.container-checkbox input:checked ~ .checkmark {
|
| 144 |
+
background-color: #4CAF50;
|
| 145 |
+
}
|
| 146 |
+
.checkmark:after {
|
| 147 |
+
content: "";
|
| 148 |
+
position: absolute;
|
| 149 |
+
display: none;
|
| 150 |
+
}
|
| 151 |
+
.container-checkbox input:checked ~ .checkmark:after {
|
| 152 |
+
display: block;
|
| 153 |
+
}
|
| 154 |
+
.container-checkbox .checkmark:after {
|
| 155 |
+
left: 9px;
|
| 156 |
+
top: 5px;
|
| 157 |
+
width: 5px;
|
| 158 |
+
height: 10px;
|
| 159 |
+
border: solid white;
|
| 160 |
+
border-width: 0 3px 3px 0;
|
| 161 |
+
-webkit-transform: rotate(45deg);
|
| 162 |
+
-ms-transform: rotate(45deg);
|
| 163 |
+
transform: rotate(45deg);
|
| 164 |
+
}
|
| 165 |
+
/* Стили для input[type="date"] */
|
| 166 |
+
input[type="date"] {
|
| 167 |
+
background-color: #4CAF50;
|
| 168 |
+
color: white;
|
| 169 |
+
padding: 12px;
|
| 170 |
+
font-size: 16px;
|
| 171 |
+
border: none;
|
| 172 |
+
border-radius: 5px;
|
| 173 |
+
width: 100%;
|
| 174 |
+
box-sizing: border-box;
|
| 175 |
+
}
|
| 176 |
+
::-webkit-calendar-picker-indicator {
|
| 177 |
+
background-color: white;
|
| 178 |
+
padding: 5px;
|
| 179 |
+
cursor: pointer;
|
| 180 |
+
border-radius: 3px;
|
| 181 |
+
}
|
| 182 |
</style>
|
| 183 |
</head>
|
| 184 |
<body>
|
|
|
|
| 215 |
<input type="text" id="tokenInput" placeholder="Введите токен">
|
| 216 |
</div>
|
| 217 |
<div class="form-group">
|
| 218 |
+
<label for="dateInput">Крайняя дата выборки комнат:</label>
|
| 219 |
+
<input type="date" id="dateInput">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
</div>
|
| 221 |
<div class="form-group">
|
| 222 |
<label for="typeSelect">Выбор формата вебинара:</label>
|
|
|
|
| 227 |
</div>
|
| 228 |
<button id="sendRequestButton">Получи��ь список комнат Бизон 365</button>
|
| 229 |
<div id="dropdown-container"></div>
|
| 230 |
+
<button id="sendGetRequestButton">Обновить базу WhatsMasterGRM</button>
|
| 231 |
</div>
|
| 232 |
</div>
|
| 233 |
|
|
|
|
| 293 |
if (requestButtonClicked) return;
|
| 294 |
requestButtonClicked = true;
|
| 295 |
const token = document.getElementById('tokenInput').value;
|
| 296 |
+
const minDate = document.getElementById('dateInput').value;
|
| 297 |
const type = document.getElementById('typeSelect').value;
|
| 298 |
const url = '/send_request';
|
| 299 |
fetch(url, {
|