diff --git a/bgImage.jpg b/bgImage.jpg deleted file mode 100644 index 7bf8e8a..0000000 Binary files a/bgImage.jpg and /dev/null differ diff --git a/bgNoSnow.jpg b/bgNoSnow.jpg deleted file mode 100644 index 2c6a066..0000000 Binary files a/bgNoSnow.jpg and /dev/null differ diff --git a/cardInsideLeft.png b/cardInsideLeft.png deleted file mode 100644 index a366ea8..0000000 Binary files a/cardInsideLeft.png and /dev/null differ diff --git a/cardRightSide.png b/cardRightSide.png deleted file mode 100644 index b2469d6..0000000 Binary files a/cardRightSide.png and /dev/null differ diff --git a/favicon.ico b/favicon.ico deleted file mode 100644 index f6535b3..0000000 Binary files a/favicon.ico and /dev/null differ diff --git a/index.html b/index.html index a57e321..cf33c8a 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ Flowty Wrapped 2023 - + { const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); + let ipfsURL = "https://flowty.mypinata.cloud/ipfs/"; username = urlParams.get("username"); raffleTickets = urlParams.get("raffleTickets"); + customProvider = urlParams.get("customIpfsProvider"); + + if(customProvider) { + ipfsURL = customProvider; + } + + let bgNoSnow = ipfsURL + "QmctZJrzKu3ctyFLeZZAS2FkU6uLKMZNUkZbY24H2wjFzJ/bgNoSnow.jpg"; + const wrappedBg = document.querySelector(".wrapped-div"); + wrappedBg.style.backgroundImage = `url(${bgNoSnow})`; + + const cardInsideLeft = ipfsURL + "QmctZJrzKu3ctyFLeZZAS2FkU6uLKMZNUkZbY24H2wjFzJ/cardInsideLeft.png"; + const cartPageInside = document.querySelector(".cart-page-inside"); + cartPageInside.style.backgroundImage = `url(${cardInsideLeft})`; + + const cardInsideRight = ipfsURL + "QmctZJrzKu3ctyFLeZZAS2FkU6uLKMZNUkZbY24H2wjFzJ/cardRightSide.png"; + const cartPageBottom = document.querySelector(".cart-page-bottom"); + cartPageBottom.style.backgroundImage = `url(${cardInsideRight})`; + + const wrappedCard = ipfsURL + "QmctZJrzKu3ctyFLeZZAS2FkU6uLKMZNUkZbY24H2wjFzJ/wrappedCard.png"; + const cartPageOutside = document.querySelector(".cart-page-outside"); + cartPageOutside.style.backgroundImage = `url(${wrappedCard})`; const usernameTag = document.getElementById("username-tag"); const usernameTag1 = document.getElementById("username-tag-1"); diff --git a/wrappedCard.png b/wrappedCard.png deleted file mode 100644 index 803289d..0000000 Binary files a/wrappedCard.png and /dev/null differ