Tyn Guardian
12/16/2023, 7:42 AMerictgrubaugh
12/16/2023, 2:37 PMTyn Guardian
12/16/2023, 2:43 PMTyn Guardian
12/16/2023, 2:43 PMTyn Guardian
12/16/2023, 2:44 PMerictgrubaugh
12/16/2023, 2:59 PMdata
.
function toTable(data) {
var html = '<table><thead>...</thead><tbody>';
for (var i = 0; i < data.length; i++) {
html += [
'<tr>',
'<td>' + data[i].account + '</td>',
'<td>' + data[i].type + '</td>',
'</tr>'
].join('');
}
html += '</tbody></table>';
return html;
}
I'm just guessing at what the surrounding <table>
looks like, and I stripped out all the styling for readability; you could extract all the inline styles to a <style>
tag elsewhere in the documentTyn Guardian
12/16/2023, 11:02 PM