DmitrMakeev commited on
Commit
7e70a73
1 Parent(s): 41b7433

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +26 -18
data_gc_tab.html CHANGED
@@ -15,8 +15,11 @@
15
 
16
 
17
 
18
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">
19
- <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
 
 
 
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
- Swal.fire({
298
- title: 'Детали пользователя',
299
- html: `
300
- <strong>Имя:</strong> ${data.name}<br>
301
- <strong>WhatsApp:</strong> <a href="https://web.whatsapp.com/send?phone=${data.phone}" target="_blank">${data.phone}</a><br>
302
- <strong>Реплики:</strong> ${data.b_mess}
303
- `,
304
- icon: 'success',
305
- confirmButtonText: 'Закрыть',
306
- confirmButtonColor: '#4CAF50',
307
- customClass: {
308
- confirmButton: 'button is-success',
309
- title: 'title-custom',
310
- content: 'content-custom'
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},