Skip to content

Commit

Permalink
Embedded link in image
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyRivasDev committed Jun 13, 2024
1 parent 1ca14be commit b1de42c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ function loadGames(url){
const gameItemEl = `
<div class="col-lg-3 col-md-6 col-sm-12">
<div class="item">
<img src="${game.background_image}" alt="${game.name} image">
<a href="${priceChartingUrl}" target="_blank">
<img src="${game.background_image}" alt="${game.name} image">
</a>
<h4 class="game-name">${game.name}<br><span class="platforms">${getPlatformStr(game.name, game.platforms)}</span></h4>
<ul>
<li><i class="fa fa-star"></i> <span class="rating">${game.rating}</span></li>
Expand Down

0 comments on commit b1de42c

Please sign in to comment.