Skip to content

Commit

Permalink
Populate the tracker table values instead of adding HTML from JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
penguineer committed Jul 19, 2022
1 parent 1b8aea4 commit 0d506e2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions www/aw.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ urlParam = function(name){
}

populateTrackerInfo = function(json) {
$("#tracker").html(`
<table>
<tr><th>Type: </th><td>`+json.tracker.type+`</td></tr>
<tr><th>URI: </th><td><a href="`+json.tracker.uri+`" target="_new">`+json.tracker.uri+`</a></td></tr>
<tr><th>User Name: </th><td>`+json.tracker.user_name+`</td></tr>
</table>
`);
$("#tracker-type").text(json.tracker.type);

var tracker_uri = $("#tracker-uri");
tracker_uri.attr("href", json.tracker.uri);
tracker_uri.text(json.tracker.uri);

$("#tracker-user-name").text(json.tracker.user_name);
}

populateNotes = function(json) {
Expand Down

0 comments on commit 0d506e2

Please sign in to comment.