mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-15 18:12:08 -05:00
16 lines
457 B
JavaScript
16 lines
457 B
JavaScript
$.getJSON("/games.json", function (data) {
|
|
for (let i = 0; i < data.length; i++) {
|
|
$('#games').append(
|
|
$('<div>').prop({
|
|
id: 'game',
|
|
style: 'cursor: pointer;'
|
|
}).append(
|
|
$('<img>').prop({
|
|
src: data[i].directory + "/" + data[i].image
|
|
})
|
|
).append(
|
|
$('<h1>').text(data[i].name)
|
|
)
|
|
);
|
|
}
|
|
}) |