Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
fix astronaut wiki url (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariogarridopt committed Feb 2, 2023
1 parent 7d637a7 commit d8d1ce7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/astronautHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ function drawAstronautHtml(data) {
size = Math.floor((420 - (obj_p_line * 10) - 40) / obj_p_line);
}

let wiki = (crew.wiki != null) ? crew.wiki : "https://www.google.com/search?q=" + encodeURI("astronaut " + crew.name);
html +=
'<a href="' + crew.wiki + '" ' +
'<a href="' + wiki + '" ' +
'class="ast" id="ast-' + crew.id + '" '+
'style="position: relative; ' +
'width: ' + size + 'px; height: ' + size + 'px;" >' +
Expand Down

0 comments on commit d8d1ce7

Please sign in to comment.