Skip to content

Commit

Permalink
Areas without URLs no longer link back to the site
Browse files Browse the repository at this point in the history
  • Loading branch information
vulture-boy committed Feb 27, 2024
1 parent 8a0505f commit 8369c58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ function setUpAreas () {
}

// Prepare the HTML block corresponding to an area and its associated credts
var html = `<li class="area" title="${area.title}" style="background-color:${backgroundColor}" onclick="focusOnArea('${area.title}')">
var html =
`<li class="area" title="${area.title}" style="background-color:${backgroundColor}" onclick="focusOnArea('${area.title}')">
<div class="area__header" >
<span class="material-icons">
${materialIcon}
Expand All @@ -373,10 +374,9 @@ function setUpAreas () {
<div class="area__info__inner">
<div class="area__info__img">
${artistImageHTML}
</div>
<div class="area__info__name">
<a href="${area.url}" target="_blank" title="${area.artist}">${area.artist}</a>
${area.url ? `<a href="${area.url}" target="_blank" title="${area.artist}">${area.artist}</a>` : `<a>${area.artist}</a>`}
${area.post_url ? `<a href="${area.post_url}" target="_blank" title="View Post">[View Post]</a>` : ''}
</div>
</div>
Expand Down

0 comments on commit 8369c58

Please sign in to comment.