Skip to content

Commit

Permalink
Merge pull request #1224 from hackclub/garyhtou/take-down-shop
Browse files Browse the repository at this point in the history
[Arcade] Take down shop
  • Loading branch information
garyhtou authored Jun 14, 2024
2 parents b80cb8a + dde4aff commit ceb18c0
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions public/arcade/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,23 +105,12 @@
document.querySelector('.shop-dialogue').innerHTML = '...'
}

if(urlParams.get("user")) {

document.getElementById("order_wrapper").innerHTML = `
${items[inv.name].map(subitem => {
return `<a href="${subitem.formURL}&user=${urlParams.get("user")}" target="_blank" style="padding: 8px; background: green; color: white; border-radius: 8px;">
${items[inv.name].length > 1 ? subitem.name : "ORDER NOW"}
</div>`
}).join(" ")}
`
} else {
document.getElementById("order_wrapper").innerHTML = `
<div id="order" style="padding: 8px; background: green; color: white; border-radius: 8px;">
VISIT YOUR SHOP TO ORDER
</div>
`
}
document.getElementById("order_wrapper").innerHTML = `
<div id="order" style="padding: 8px; color: white;">
COME BACK LATER! SHOP'S DOWN FOR MAINTENANCE
</div>
`

document.getElementById("shop-counter").classList.add("ordering")

}
Expand Down

0 comments on commit ceb18c0

Please sign in to comment.