-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (79 loc) · 3.13 KB
/
Copy pathindex.html
File metadata and controls
92 lines (79 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GREEN-API Test</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<main class="page">
<header class="page-header">
<div class="title-block">
<h1>GREEN-API Test Page</h1>
</div>
<div class="brand">GREEN API</div>
</header>
<section class="layout">
<div class="card left">
<div class="group">
<input id="idInstance" type="text" placeholder="idInstance" />
<input id="apiTokenInstance" type="text" placeholder="apiTokenInstance" />
</div>
<div class="group">
<button id="getSettingsBtn">getSettings</button>
<button id="getStateInstanceBtn">getStateInstance</button>
</div>
<div class="group">
<div class="group-title">sendMessage</div>
<div class="chat-id-field">
<input id="messageChatNumber" type="text" placeholder="79999999999" />
<select id="messageChatSuffix">
<option value="@c.us" selected>@c.us</option>
<option value="@g.us">@g.us</option>
</select>
</div>
<textarea id="messageText" placeholder="Hello World!"></textarea>
<button id="sendMessageBtn">sendMessage</button>
</div>
<div class="group">
<div class="group-title">sendFileByUrl</div>
<div class="chat-id-field">
<input id="fileChatNumber" type="text" placeholder="79999999999" />
<select id="fileChatSuffix">
<option value="@c.us" selected>@c.us</option>
<option value="@g.us">@g.us</option>
</select>
</div>
<input id="fileUrl" type="url" placeholder="https://example.com/files/image.jpg" />
<input id="fileName" type="text" placeholder="image.jpg" />
<button id="sendFileByUrlBtn">sendFileByUrl</button>
</div>
<div class="hint">
Для отправки сообщений укажи номер чата и выбери тип: <strong>@c.us</strong> для личного чата или <strong>@g.us</strong> для группы.
Имя файла для <strong>sendFileByUrl</strong> подставляется автоматически из ссылки, но его можно изменить вручную.
</div>
</div>
<div class="card right">
<div class="response-header">
<div class="response-title">Ответ</div>
<div class="response-actions">
<button id="copyBtn" class="secondary-btn" type="button">Скопировать JSON</button>
<button id="clearBtn" class="secondary-btn" type="button">Очистить</button>
</div>
</div>
<div class="response-box">
<pre id="responseOutput" aria-live="polite">{
"message": "Здесь появится ответ GREEN-API"
}</pre>
</div>
<div class="status-bar">
<div id="statusBadge" class="badge">Готов к работе</div>
<div id="lastAction">Последнее действие: нет</div>
</div>
</div>
</section>
</main>
<script src="app.js"></script>
</body>
</html>