Spaces:
Sleeping
Sleeping
DmitrMakeev
commited on
Commit
•
46ff083
1
Parent(s):
da80c62
Update up_gr.html
Browse files- up_gr.html +17 -4
up_gr.html
CHANGED
@@ -4,6 +4,7 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Create Group with Members</title>
|
|
|
7 |
<style>
|
8 |
body {
|
9 |
font-family: Arial, sans-serif;
|
@@ -71,7 +72,7 @@
|
|
71 |
<div class="group-id-container">
|
72 |
<span class="group-id" id="groupIdToCopy" onclick="copyToClipboard(this)">Click here to copy the group ID</span>
|
73 |
</div>
|
74 |
-
|
75 |
<script>
|
76 |
document.getElementById('createGroupButton').addEventListener('click', async function() {
|
77 |
const apiKey = document.getElementById('apiKeyInput').value;
|
@@ -127,8 +128,14 @@
|
|
127 |
alert('Group created successfully!');
|
128 |
console.log('Response JSON:', data);
|
129 |
} catch (error) {
|
130 |
-
|
131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
};
|
134 |
reader.readAsText(file);
|
@@ -141,7 +148,13 @@
|
|
141 |
tempInput.select();
|
142 |
document.execCommand('copy');
|
143 |
document.body.removeChild(tempInput);
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
}
|
146 |
</script>
|
147 |
</body>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Create Group with Members</title>
|
7 |
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css">
|
8 |
<style>
|
9 |
body {
|
10 |
font-family: Arial, sans-serif;
|
|
|
72 |
<div class="group-id-container">
|
73 |
<span class="group-id" id="groupIdToCopy" onclick="copyToClipboard(this)">Click here to copy the group ID</span>
|
74 |
</div>
|
75 |
+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
|
76 |
<script>
|
77 |
document.getElementById('createGroupButton').addEventListener('click', async function() {
|
78 |
const apiKey = document.getElementById('apiKeyInput').value;
|
|
|
128 |
alert('Group created successfully!');
|
129 |
console.log('Response JSON:', data);
|
130 |
} catch (error) {
|
131 |
+
|
132 |
+
Toastify({
|
133 |
+
text: "Ошибка создания группы!",
|
134 |
+
duration: 3000,
|
135 |
+
gravity: "top",
|
136 |
+
position: "center",
|
137 |
+
backgroundColor: "#4CAF50",
|
138 |
+
}).showToast();
|
139 |
}
|
140 |
};
|
141 |
reader.readAsText(file);
|
|
|
148 |
tempInput.select();
|
149 |
document.execCommand('copy');
|
150 |
document.body.removeChild(tempInput);
|
151 |
+
Toastify({
|
152 |
+
text: "Группа созданна, пользователи добавленны!",
|
153 |
+
duration: 3000,
|
154 |
+
gravity: "top",
|
155 |
+
position: "center",
|
156 |
+
backgroundColor: "#4CAF50",
|
157 |
+
}).showToast();
|
158 |
}
|
159 |
</script>
|
160 |
</body>
|