Scroll into view if user param (#1223)

This commit is contained in:
Sam Poder 2024-06-12 13:10:24 -07:00 committed by GitHub
parent 62729d357d
commit b80cb8a28d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -48,6 +48,12 @@
}
})
const urlParams = new URLSearchParams(window.location.search);
if(urlParams.get("user")) {
document.getElementById("shop").scrollIntoView()
}
function characterImage(character) {
return {
"Dino": "https://cloud-h4wi9l5hg-hack-club-bot.vercel.app/2005.png",
@ -98,8 +104,7 @@
} else {
document.querySelector('.shop-dialogue').innerHTML = '...'
}
console.log(inv)
const urlParams = new URLSearchParams(window.location.search);
if(urlParams.get("user")) {
document.getElementById("order_wrapper").innerHTML = `