DmitrMakeev commited on
Commit
dc49f25
1 Parent(s): df07948

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +5 -11
data_gc_tab.html CHANGED
@@ -93,7 +93,6 @@
93
  </div>
94
  <div id="example-table"></div>
95
 
96
-
97
  <script>
98
  document.addEventListener('DOMContentLoaded', function() {
99
  fetch('https://dmtuit-gc-api-ras.hf.space/data_gc_tab_out?api_sys=fasSd345D')
@@ -107,9 +106,9 @@
107
  {title:"Имя", field:"name"},
108
  {title:"Телефон", field:"phone"},
109
  {title:"Email", field:"email"},
110
- {title:"Ссылка на VK", field:"vk_id, formatter: function(cell, formatterParams, onRendered) {
111
- var phone = cell.getValue();
112
- return `<a href="https://vk.comvk.me/id${vk_id}" target="_blank">${vk_id}</a>`;
113
  }},
114
  {title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
115
  var chatId = cell.getValue();
@@ -119,8 +118,8 @@
119
  return `<a href="https://t.me/${chatId}" target="_blank">${chatId}</a>`;
120
  }},
121
  {title:"Ссылка на WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
122
- var phone = cell.getValue();
123
- return `<a href="https://web.whatsapp.com/send?phone=${phone}" target="_blank">${phone}</a>`;
124
  }},
125
  {title:"Статус WhatsApp", field:"ws_statys"},
126
  {title:"Стутус подписки", field:"ws_stop"},
@@ -139,10 +138,5 @@
139
  .catch(error => console.error('Error fetching data:', error));
140
  });
141
  </script>
142
-
143
-
144
-
145
-
146
-
147
  </body>
148
  </html>
 
93
  </div>
94
  <div id="example-table"></div>
95
 
 
96
  <script>
97
  document.addEventListener('DOMContentLoaded', function() {
98
  fetch('https://dmtuit-gc-api-ras.hf.space/data_gc_tab_out?api_sys=fasSd345D')
 
106
  {title:"Имя", field:"name"},
107
  {title:"Телефон", field:"phone"},
108
  {title:"Email", field:"email"},
109
+ {title:"Ссылка на VK", field:"vk_id", formatter: function(cell, formatterParams, onRendered) {
110
+ var vk_id = cell.getValue();
111
+ return `<a href="https://vk.com/id${vk_id}" target="_blank">${vk_id}</a>`;
112
  }},
113
  {title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
114
  var chatId = cell.getValue();
 
118
  return `<a href="https://t.me/${chatId}" target="_blank">${chatId}</a>`;
119
  }},
120
  {title:"Ссылка на WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
121
+ var phone = cell.getValue();
122
+ return `<a href="https://web.whatsapp.com/send?phone=${phone}" target="_blank">${phone}</a>`;
123
  }},
124
  {title:"Статус WhatsApp", field:"ws_statys"},
125
  {title:"Стутус подписки", field:"ws_stop"},
 
138
  .catch(error => console.error('Error fetching data:', error));
139
  });
140
  </script>
 
 
 
 
 
141
  </body>
142
  </html>