Spaces:
Runtime error
Runtime error
Update data_gc_tab.html
Browse files- data_gc_tab.html +95 -94
data_gc_tab.html
CHANGED
|
@@ -6,86 +6,86 @@
|
|
| 6 |
<title>Tabulator Example</title>
|
| 7 |
<link href="https://unpkg.com/[email protected]/dist/css/tabulator.min.css" rel="stylesheet">
|
| 8 |
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/js/tabulator.min.js"></script>
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
</style>
|
| 89 |
</head>
|
| 90 |
<body>
|
| 91 |
<div id="header">
|
|
@@ -94,20 +94,21 @@
|
|
| 94 |
<div id="example-table"></div>
|
| 95 |
|
| 96 |
<script>
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
|
|
|
| 111 |
});
|
| 112 |
</script>
|
| 113 |
</body>
|
|
|
|
| 6 |
<title>Tabulator Example</title>
|
| 7 |
<link href="https://unpkg.com/[email protected]/dist/css/tabulator.min.css" rel="stylesheet">
|
| 8 |
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/js/tabulator.min.js"></script>
|
| 9 |
+
<style>
|
| 10 |
+
body {
|
| 11 |
+
font-family: Arial, sans-serif;
|
| 12 |
+
text-align: center;
|
| 13 |
+
background-color: #f0f0f0;
|
| 14 |
+
margin: 0;
|
| 15 |
+
padding: 0;
|
| 16 |
+
}
|
| 17 |
+
h1 {
|
| 18 |
+
background-color: #4CAF50;
|
| 19 |
+
color: white;
|
| 20 |
+
padding: 20px;
|
| 21 |
+
margin: 0;
|
| 22 |
+
border-bottom: 2px solid #388E3C;
|
| 23 |
+
font-size: 28px;
|
| 24 |
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
|
| 25 |
+
}
|
| 26 |
+
button[type="submit"] {
|
| 27 |
+
color: white;
|
| 28 |
+
background-color: #4CAF50;
|
| 29 |
+
border: none;
|
| 30 |
+
cursor: pointer;
|
| 31 |
+
padding: 10px 20px;
|
| 32 |
+
font-size: 16px;
|
| 33 |
+
border-radius: 5px;
|
| 34 |
+
margin-top: 20px;
|
| 35 |
+
transition: background-color 0.3s ease;
|
| 36 |
+
}
|
| 37 |
+
button[type="submit"]:hover {
|
| 38 |
+
background-color: #388E3C;
|
| 39 |
+
}
|
| 40 |
+
#mediaContainer {
|
| 41 |
+
margin-top: 20px;
|
| 42 |
+
display: flex;
|
| 43 |
+
justify-content: center;
|
| 44 |
+
align-items: center;
|
| 45 |
+
flex-direction: column;
|
| 46 |
+
max-width: 100%;
|
| 47 |
+
height: auto;
|
| 48 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
| 49 |
+
border-radius: 10px;
|
| 50 |
+
padding: 20px;
|
| 51 |
+
background-color: white;
|
| 52 |
+
}
|
| 53 |
+
#mediaContainer img, #mediaContainer video {
|
| 54 |
+
max-width: 100%;
|
| 55 |
+
height: auto;
|
| 56 |
+
object-fit: contain;
|
| 57 |
+
border-radius: 10px;
|
| 58 |
+
}
|
| 59 |
+
#imageUrl {
|
| 60 |
+
margin-top: 20px;
|
| 61 |
+
font-size: 16px;
|
| 62 |
+
color: #333;
|
| 63 |
+
cursor: pointer;
|
| 64 |
+
text-decoration: underline;
|
| 65 |
+
transition: color 0.3s ease;
|
| 66 |
+
}
|
| 67 |
+
#imageUrl:hover {
|
| 68 |
+
color: #4CAF50;
|
| 69 |
+
}
|
| 70 |
+
#progressBarContainer {
|
| 71 |
+
width: 80%;
|
| 72 |
+
margin: 20px auto;
|
| 73 |
+
background-color: #ddd;
|
| 74 |
+
border-radius: 13px;
|
| 75 |
+
padding: 3px;
|
| 76 |
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
|
| 77 |
+
}
|
| 78 |
+
#progressBar {
|
| 79 |
+
width: 0%;
|
| 80 |
+
height: 20px;
|
| 81 |
+
background-color: #4CAF50;
|
| 82 |
+
border-radius: 10px;
|
| 83 |
+
text-align: center;
|
| 84 |
+
line-height: 20px;
|
| 85 |
+
color: white;
|
| 86 |
+
transition: width 0.3s ease;
|
| 87 |
+
}
|
| 88 |
+
</style>
|
| 89 |
</head>
|
| 90 |
<body>
|
| 91 |
<div id="header">
|
|
|
|
| 94 |
<div id="example-table"></div>
|
| 95 |
|
| 96 |
<script>
|
| 97 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 98 |
+
fetch('http://your-server-url/data_gc_tab_out?api_sys=your_api_key')
|
| 99 |
+
.then(response => response.json())
|
| 100 |
+
.then(data => {
|
| 101 |
+
var table = new Tabulator("#example-table", {
|
| 102 |
+
data: data, // set table data
|
| 103 |
+
layout: "fitColumns", // fit columns to width of table
|
| 104 |
+
columns: [
|
| 105 |
+
{title:"Имя", field:"name"},
|
| 106 |
+
{title:"Почта", field:"email"},
|
| 107 |
+
{title:"Телефон", field:"phone"},
|
| 108 |
+
],
|
| 109 |
+
});
|
| 110 |
+
})
|
| 111 |
+
.catch(error => console.error('Error fetching data:', error));
|
| 112 |
});
|
| 113 |
</script>
|
| 114 |
</body>
|