DmitrMakeev
commited on
Commit
•
7e70a73
1
Parent(s):
41b7433
Update data_gc_tab.html
Browse files- data_gc_tab.html +26 -18
data_gc_tab.html
CHANGED
@@ -15,8 +15,11 @@
|
|
15 |
|
16 |
|
17 |
|
18 |
-
|
19 |
-
<
|
|
|
|
|
|
|
20 |
|
21 |
|
22 |
|
@@ -294,23 +297,28 @@ return link + `<img src="${imageUrl3}" alt="WhatsApp" style="width: 98px; height
|
|
294 |
{title:"Email", field:"email", width:95},
|
295 |
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|
296 |
var data = cell.getData();
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
|
|
|
|
|
|
|
|
312 |
});
|
313 |
-
}},
|
|
|
314 |
|
315 |
|
316 |
{title:"Куратор", field:"curator", formatter: linkFormatter},
|
|
|
15 |
|
16 |
|
17 |
|
18 |
+
<!-- Подключение стилей Notyf -->
|
19 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/notyf/notyf.min.css">
|
20 |
+
|
21 |
+
<!-- Подключение скрипта Notyf -->
|
22 |
+
<script src="https://cdn.jsdelivr.net/npm/notyf/notyf.min.js"></script>
|
23 |
|
24 |
|
25 |
|
|
|
297 |
{title:"Email", field:"email", width:95},
|
298 |
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|
299 |
var data = cell.getData();
|
300 |
+
const notyf = new Notyf({
|
301 |
+
duration: 5000,
|
302 |
+
position: {
|
303 |
+
x: 'right',
|
304 |
+
y: 'top',
|
305 |
+
},
|
306 |
+
});
|
307 |
+
|
308 |
+
// Формируем текст для уведомления
|
309 |
+
const message = `
|
310 |
+
Имя: ${data.name}\n
|
311 |
+
WhatsApp: ${data.phone}\n
|
312 |
+
Реплики: ${data.b_mess}
|
313 |
+
`;
|
314 |
+
|
315 |
+
// Показываем уведомление
|
316 |
+
notyf.open({
|
317 |
+
type: 'info',
|
318 |
+
message: message,
|
319 |
});
|
320 |
+
}},
|
321 |
+
|
322 |
|
323 |
|
324 |
{title:"Куратор", field:"curator", formatter: linkFormatter},
|