Skip to content

Commit f0a722b

Browse files
committed
add repo link
1 parent cb8ecd2 commit f0a722b

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

index.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
table {
21-
width: 80%;
21+
width: 90%;
2222
border-collapse: collapse;
2323
border: 0px;
2424
}
@@ -31,7 +31,7 @@
3131
}
3232
th {
3333
padding: 10px 15px;
34-
text-align: center;
34+
text-align: left;
3535
border: 0px;
3636
font-size: 20px;
3737
font-weight: bold;
@@ -40,7 +40,7 @@
4040
a, a:visited, a:active {
4141
color: #E0311D;
4242
text-decoration: none;
43-
font-weight: bold;
43+
font-weight: normal;
4444
}
4545

4646
a:hover {
@@ -57,6 +57,7 @@ <h1>Getting Started Guides</h1>
5757
<table id="data-table">
5858
<thead>
5959
<tr>
60+
<th>GitHub Repo</th>
6061
<th>Documentation</th>
6162
<th>Description</th>
6263
</tr>
@@ -73,13 +74,18 @@ <h1>Getting Started Guides</h1>
7374
// Iterate over each person object in the JSON data
7475
$.each(data, function(index, repo) {
7576

76-
// clean up name
7777
var row = $("<tr></tr>"); // Create a new table row
7878

79-
// Create table cells and fill them with the person's data
79+
// Repo
80+
var $td_r = $("<td></td>").html('<a href="' + repo.url + '">' + repo.name + '</a>');
81+
row.append($td_r);
82+
83+
// Documentation
8084
var $td = $("<td></td>").html('<a href="' + repo.homepage + '">' + repo.name.replace(/_/g, ' ') + '</a>');
8185

8286
row.append($td);
87+
88+
// Description
8389
row.append($("<td></td>").text(repo.description));
8490

8591
tableBody.append(row); // Add the row to the table body

0 commit comments

Comments
 (0)