|
<body> |
|
<div id="header"> |
|
<h1>База синхронизации с Get курсом</h1> |
|
</div> |
|
<div id="example-table"></div> |
|
|
|
<script> |
|
document.addEventListener('DOMContentLoaded', function() { |
|
fetch('https://dmtuit-gc-api-ras.hf.space/data_gc_tab_out?api_sys=fasSd345D') |
|
.then(response => response.json()) |
|
.then(data => { |
|
var table = new Tabulator("#example-table", { |
|
data: data, |
|
layout: "fitColumns", |
|
columns: [ |
|
{title:"ID", field:"id"}, |
|
{title:"Имя", field:"name"}, |
|
{title:"Телефон", field:"phone"}, |
|
{title:"Email", field:"email"}, |
|
{title:"VK ID", field:"vk_id"}, |
|
{title:"Chat ID", field:"chat_id"}, |
|
{title:"WS Statys", field:"ws_statys"}, |
|
{title:"WS Stop", field:"ws_stop"}, |
|
{title:"Web Statys", field:"web_statys"}, |
|
{title:"Fin Progress", field:"fin_progress"}, |
|
{title:"Shop Statys Full", field:"shop_statys_full"}, |
|
{title:"PR1", field:"pr1"}, |
|
{title:"PR2", field:"pr2"}, |
|
{title:"PR3", field:"pr3"}, |
|
{title:"PR4", field:"pr4"}, |
|
{title:"PR5", field:"pr5"}, |
|
{title:"Ad URL", field:"ad_url"} |
|
], |
|
}); |
|
}) |
|
.catch(error => console.error('Error fetching data:', error)); |
|
}); |
|
</script> |
|
</body> |