Add dino class as a link to the wiki in the info pane

This commit is contained in:
Justin C. Miller
2023-03-07 23:34:57 -08:00
parent bb0e17d830
commit b005c2e1ec
2 changed files with 7 additions and 1 deletions

View File

@@ -55,7 +55,7 @@
$( '#dinoWorldName' ).html(row.world);
$( '#dinoId' ).html(row.dino_id);
$( '#dinoClass' ).html(row.class_name);
$( '#dinoClass' ).html(`<a target="_blank" href="https://ark.wiki.gg/wiki/${row.class_name}">${row.class_name}</a>`);
if (row.is_cryo) {
if (row.parent_name) {

View File

@@ -58,6 +58,7 @@
$( '#dinoWorldName' ).html(row.world);
$( '#dinoId' ).html(row.dino_id);
$( '#dinoClass' ).html(`<a target="_blank" href="https://ark.wiki.gg/wiki/${row.class_name}">${row.class_name}</a>`);
for (var i = 0; i < 6; i++) {
var id = "#dinoColor" + i;
@@ -176,6 +177,11 @@
<td id="dinoId"></td>
</tr>
<tr>
<th>Class</th>
<td id="dinoClass"></td>
</tr>
</table>
</div>