Skip to content

Commit

Permalink
add more Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
sk337 committed Jan 20, 2024
1 parent 0d19cb7 commit 36ffe24
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import cosmetics from "./cosmetics.json" assert { type: "json" };

console.log(Intl.DateTimeFormat().resolvedOptions().timeZone)


const ApiUrl = "https://sb-api-fb48ef34a197.herokuapp.com/";

Expand Down Expand Up @@ -63,6 +65,8 @@ let html = '<p><span class="font-bold">Account Info</span><br/>';

html += `<span class="text-sky-500">username:</span> ${data.account.username}<br>`;

html += `<span class="text-sky-500">user id:</span> ${prettyNum(data.account.id)}<br>`;

html += `<span class="text-sky-500">gems:</span> ${prettyNum(
data.account.gems,
)}`;
Expand All @@ -86,6 +90,17 @@ ${prettyNum(

html += `<br><span class="text-sky-500">is v1:</span> ${data.account.is_v1}`;

let login = new Date(data.account.created_at);

html+=`<br><span class="text-sky-500">Created At: </span>${login.toString()}`

if(data.account.lastUsernameChange != null){
login = new Date(data.account.lastUsernameChange)
html+=`<br><span class="text-sky-500">Last Username Change: </span>${login.toString()}`
}

html +=`<br><span class="text-sky-500">Legecy Secret: </span> <span class="blur-sm hover:blur-none"> ${data.account.secret}</span>`

html+="</p>"
userInfo.innerHTML = html;

Expand Down

0 comments on commit 36ffe24

Please sign in to comment.