Implement templating to avoid copy/paste HTML code. #7

This commit is contained in:
Ian Renton
2025-10-02 11:16:38 +01:00
parent 10f8d9b4ed
commit cc1a7a9b8c
17 changed files with 105 additions and 117 deletions

View File

@@ -17,7 +17,7 @@ $.getJSON('/api/spots', function(jsonData) {
table.find('tbody').append($tr);
});
$('#table-container-inner').html(table);
$('#table-container').html(table);
});
function escapeHtml(str) {