diff --git a/js/account/profile.js b/js/account/profile.js
index c1989b2..a48f86d 100755
--- a/js/account/profile.js
+++ b/js/account/profile.js
@@ -133,16 +133,18 @@ if (Username) {
}
});
- if (new URLSearchParams(window.location.search).get('birthday') === 'true') {
+ if (new URLSearchParams(window.location.search).get('anniversary') === '1') {
const JoinDateRow = document.querySelector('#user-stats-card .mb-1:has(.fa-calendar)')
const BirthdayCard = document.createElement('div')
BirthdayCard.classList = 'card card-themed card-player-birthday mb-2'
+
+ const AnniversaryNumber = (new Date().getFullYear() - new Date(JoinDateRow.children[1].innerText).getFullYear())
BirthdayCard.innerHTML = `
- It's my ${new Date().getFullYear() - new Date(JoinDateRow.children[1].innerText).getFullYear()}rd Polytoria anniversary!
+ It's my ${AnniversaryNumber + (AnniversaryNumber % 10 === 1 && AnniversaryNumber % 100 !== 11 ? 'st' : AnniversaryNumber % 10 === 2 && AnniversaryNumber % 100 !== 12 ? 'nd' : AnniversaryNumber % 10 === 3 && AnniversaryNumber % 100 !== 13 ? 'rd' : 'th')} Polytoria anniversary!
-
Send ${UserID.username} congrats
+
Send ${UserID.username} congrats
`
document.getElementById('user-avatar-card').parentElement.insertBefore(BirthdayCard, document.getElementById('user-avatar-card'))
diff --git a/js/create/place-access.js b/js/create/place-access.js
index 09b1615..10ca451 100755
--- a/js/create/place-access.js
+++ b/js/create/place-access.js
@@ -129,8 +129,6 @@ async function CopyOwnedPlace() {
const DownloadButton = DIV.getElementsByTagName('button')[0];
DownloadButton.addEventListener('click', async function () {
- console.log('clicked download epic');
-
let CreatorToken = await fetch('https://polytoria.com/api/places/edit', {
method: 'POST',
body: JSON.stringify({placeID: PlaceID})
diff --git a/js/sitewide.js b/js/sitewide.js
index 1b0b1ad..97834bd 100755
--- a/js/sitewide.js
+++ b/js/sitewide.js
@@ -78,6 +78,80 @@ let Theme = ``;
const ThemeBlob = new Blob([Theme], { type: 'text/css' });
const ThemeURL = URL.createObjectURL(ThemeBlob);
document.head.innerHTML += `