mirror of
https://github.com/neongamerbot-qk/hackclub-nest
synced 2024-11-21 16:13:38 +00:00
enhancement(lint): Fix lint errors for pub/high-seas-shop.html
Some checks failed
Remote SSH Command / Build (push) Has been cancelled
Some checks failed
Remote SSH Command / Build (push) Has been cancelled
Co-authored-by: NeonGamerBot-QK <saahilattud@gmail.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
bcf2df3417
commit
d6cbe8ac02
1 changed files with 51 additions and 51 deletions
|
@ -1,9 +1,8 @@
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
<head>
|
||||||
<head>
|
<meta charset="UTF-8" />
|
||||||
<meta charset="UTF-8">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<title>High Seas Shop :P</title>
|
<title>High Seas Shop :P</title>
|
||||||
<style>
|
<style>
|
||||||
body,
|
body,
|
||||||
|
@ -18,34 +17,35 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.grid div {
|
.grid div {
|
||||||
margin: 5px
|
margin: 5px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<center>
|
<center>
|
||||||
<main>
|
<main>
|
||||||
<h1>Shop</h1>
|
<h1>Shop</h1>
|
||||||
<div id="items" class="grid"></div>
|
<div id="items" class="grid"></div>
|
||||||
</main>
|
</main>
|
||||||
</center>
|
</center>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
window.onload = async () => {
|
window.onload = async () => {
|
||||||
const { value } = await fetch("https://gist.githubusercontent.com/SkyfallWasTaken/50ff135e61cde55f544a80bbb69d0b61/raw/74e68b8faad26746748bd8bed92f2cdda010ad53/shop.json").then(r => r.json())
|
const { value } = await fetch(
|
||||||
const d = document.querySelector("#items")
|
"https://gist.githubusercontent.com/SkyfallWasTaken/50ff135e61cde55f544a80bbb69d0b61/raw/74e68b8faad26746748bd8bed92f2cdda010ad53/shop.json",
|
||||||
|
).then((r) => r.json());
|
||||||
|
const d = document.querySelector("#items");
|
||||||
for (const item of value.reverse()) {
|
for (const item of value.reverse()) {
|
||||||
const div = document.createElement('div')
|
const div = document.createElement("div");
|
||||||
div.innerHTML = `
|
div.innerHTML = `
|
||||||
<img src="${item.imageUrl}" />
|
<img src="${item.imageUrl}" />
|
||||||
<h2>${item.name}</h2>
|
<h2>${item.name}</h2>
|
||||||
<p>${item.subtitle}</p>
|
<p>${item.subtitle}</p>
|
||||||
<p> Price (USD): ${item.priceUs} </p>
|
<p> Price (USD): ${item.priceUs} </p>
|
||||||
`
|
`;
|
||||||
d.append(div)
|
d.append(div);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in a new issue