Skip to content

Commit 451595c

Browse files
authored
attribution
1 parent 53edd15 commit 451595c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ <h3 class="cardHeader">Loading content</h3>
165165
}
166166
return "a few seconds"
167167
}
168-
function buildCard(name,description,attribution,size) {
168+
function buildCard(name,description,attribution,updated,size) {
169169
return `<div class="card" onclick="tabopen('https://projectigneous.github.io/${name}',${JSON.stringify(size)})">
170170
<img src="img/${name}.png" class="cardImg" onerror="this.src='img/placeholder.png'"></img>
171171
<div class="cardContent">
172172
<h3 class="cardHeader">${name}</h3>
173173
<p class="cardDescription">${description}</p>
174-
<small class="cardAttribution">Last updated ${attribution} ago</small>
174+
<small class="cardAttribution">${attribution} &bull; Updated ${updated} ago</small>
175175
</div>
176176
</div>`
177177
}
@@ -185,7 +185,7 @@ <h3 class="cardHeader">${name}</h3>
185185
var ftch = await fetch("https://projectigneous.github.io/" + repo.name + "/igneous.json")
186186
var j = await ftch.json()
187187
console.log(j)
188-
h += buildCard(repo.name,repo.description,calculateDate(repo.pushed_at),j.opensInWindow)
188+
h += buildCard(repo.name,repo.description,j.developer, calculateDate(repo.pushed_at),j.opensInWindow)
189189
document.querySelector("#container").innerHTML = h
190190
} catch(e) {}
191191
}

0 commit comments

Comments
 (0)