mirror of
https://github.com/ceph/ceph
synced 2025-03-09 09:48:09 +00:00
28 lines
770 B
JavaScript
28 lines
770 B
JavaScript
$(function() {
|
|
if (typeof encode_table != 'undefined') {
|
|
let table_rows = '';
|
|
for (let row of encode_table) {
|
|
table_rows += `<tr>`
|
|
for (let cell of row)
|
|
{
|
|
table_rows += `<td>${cell}</td>`
|
|
}
|
|
table_rows += `</tr>`;
|
|
console.log(table_rows);
|
|
}
|
|
$('#encode-table').append(table_rows);
|
|
}
|
|
|
|
if (typeof decode_table != 'undefined') {
|
|
let table_rows = '';
|
|
for (let row of decode_table) {
|
|
table_rows += `<tr>`
|
|
for (let cell of row)
|
|
{
|
|
table_rows += `<td>${cell}</td>`
|
|
}
|
|
table_rows += `</tr>`;
|
|
}
|
|
$('#decode-table').append(table_rows);
|
|
}
|
|
}); |