Spaces:
Sleeping
Sleeping
Update pages_gen.html
Browse files- pages_gen.html +5 -2
pages_gen.html
CHANGED
@@ -14,13 +14,16 @@
|
|
14 |
<label for="groupName">Название группы (опционально):</label>
|
15 |
<input type="text" id="groupName" name="groupName">
|
16 |
<br>
|
|
|
|
|
|
|
17 |
<button type="submit">Получить информацию о группе</button>
|
18 |
</form>
|
19 |
<div id="result"></div>
|
20 |
|
21 |
|
22 |
<script>
|
23 |
-
|
24 |
const groupForm = document.getElementById('groupForm');
|
25 |
const resultDiv = document.getElementById('result');
|
26 |
|
@@ -29,7 +32,7 @@
|
|
29 |
|
30 |
const groupId = document.getElementById('groupId').value;
|
31 |
const groupName = document.getElementById('groupName').value;
|
32 |
-
const apiToken = '
|
33 |
|
34 |
const url = `https://api.notisend.ru/v1/email/lists/${groupId}`;
|
35 |
|
|
|
14 |
<label for="groupName">Название группы (опционально):</label>
|
15 |
<input type="text" id="groupName" name="groupName">
|
16 |
<br>
|
17 |
+
<label for="apiToken">API Токен:</label>
|
18 |
+
<input type="text" id="apiToken" name="apiToken" required>
|
19 |
+
<br>
|
20 |
<button type="submit">Получить информацию о группе</button>
|
21 |
</form>
|
22 |
<div id="result"></div>
|
23 |
|
24 |
|
25 |
<script>
|
26 |
+
document.addEventListener('DOMContentLoaded', function() {
|
27 |
const groupForm = document.getElementById('groupForm');
|
28 |
const resultDiv = document.getElementById('result');
|
29 |
|
|
|
32 |
|
33 |
const groupId = document.getElementById('groupId').value;
|
34 |
const groupName = document.getElementById('groupName').value;
|
35 |
+
const apiToken = document.getElementById('apiToken').value;
|
36 |
|
37 |
const url = `https://api.notisend.ru/v1/email/lists/${groupId}`;
|
38 |
|