Spaces:
Sleeping
Sleeping
Update ns_info.html
Browse files- ns_info.html +18 -14
ns_info.html
CHANGED
|
@@ -108,27 +108,31 @@
|
|
| 108 |
});
|
| 109 |
|
| 110 |
function displayResult(collection) {
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
let tableHTML = `
|
| 112 |
<table class="result-table">
|
| 113 |
<thead>
|
| 114 |
<tr>
|
| 115 |
-
<th>
|
| 116 |
-
<th>
|
| 117 |
</tr>
|
| 118 |
</thead>
|
| 119 |
<tbody>
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
</tbody>
|
| 133 |
</table>
|
| 134 |
`;
|
|
|
|
| 108 |
});
|
| 109 |
|
| 110 |
function displayResult(collection) {
|
| 111 |
+
let list_id = collection[0].list_id;
|
| 112 |
+
let id_phone = collection.find(item => item.title === "phone")?.id || "Не найдено";
|
| 113 |
+
let id_name = collection.find(item => item.title === "name")?.id || "Не найдено";
|
| 114 |
+
|
| 115 |
let tableHTML = `
|
| 116 |
<table class="result-table">
|
| 117 |
<thead>
|
| 118 |
<tr>
|
| 119 |
+
<th>Ключ</th>
|
| 120 |
+
<th>Параметр</th>
|
| 121 |
</tr>
|
| 122 |
</thead>
|
| 123 |
<tbody>
|
| 124 |
+
<tr>
|
| 125 |
+
<td>list_id</td>
|
| 126 |
+
<td>${list_id}</td>
|
| 127 |
+
</tr>
|
| 128 |
+
<tr>
|
| 129 |
+
<td>id_phone</td>
|
| 130 |
+
<td>${id_phone}</td>
|
| 131 |
+
</tr>
|
| 132 |
+
<tr>
|
| 133 |
+
<td>id_name</td>
|
| 134 |
+
<td>${id_name}</td>
|
| 135 |
+
</tr>
|
| 136 |
</tbody>
|
| 137 |
</table>
|
| 138 |
`;
|