Compare commits
28 Commits
Author | SHA1 | Date | |
---|---|---|---|
24d424bd90 | |||
1345b984d4 | |||
14b80dfea6 | |||
24928c10fa | |||
df7e5c0e97 | |||
d25334d35f | |||
8c8499fb1c | |||
0180e8a3b5 | |||
fa058cc64e | |||
ef95388185 | |||
ad069cb7bf | |||
367b767f52 | |||
c9e14e265f | |||
5abf6fe132 | |||
487bb86a29 | |||
a51d3f8d7b | |||
27eb2ccb45 | |||
94e08c3657 | |||
fa60c3ea53 | |||
1e0b4a0a1f | |||
17ffbc3db1 | |||
0c9e7ed183 | |||
4a7c03307d | |||
0e40f403e4 | |||
66ab042995 | |||
8cd9a2ddeb | |||
702ca8c4d3 | |||
c1b05851a4 |
@ -3,7 +3,7 @@ version: 0.2
|
|||||||
phases:
|
phases:
|
||||||
install:
|
install:
|
||||||
runtime-versions:
|
runtime-versions:
|
||||||
nodejs: 18
|
nodejs: 16
|
||||||
commands:
|
commands:
|
||||||
- echo Installing dependencies...
|
- echo Installing dependencies...
|
||||||
- npm install
|
- npm install
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export default async function fetchCurrent() {
|
export default async function fetchCurrent() {
|
||||||
const resp = await fetch("https://data.wowtoken.app/v2/current/classic.json");
|
const resp = await fetch("https://data.wowtoken.app/v2/current/retail.json");
|
||||||
return await resp.json();
|
return await resp.json();
|
||||||
}
|
}
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>WoW Classic Historical Token Prices Tracker</title>
|
<title>WoW Historical Token Prices Tracker</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta name="description" content="Track current and historical gold price trends for the World of Warcraft (WoW) Classic in game token, including the US, EU, TW, and KR regions. Prices updated every minute. Simple, quick, and easy info, no ads or tracking, ever.">
|
<meta name="description" content="Track current and historical gold price trends for the World of Warcraft (WoW) in game token, including the US, EU, TW, and KR regions. Prices updated every minute. Simple, quick, and easy info, no ads or tracking, ever.">
|
||||||
<link rel="preconnect" href="https://data.wowtoken.app">
|
<link rel="preconnect" href="https://data.wowtoken.app">
|
||||||
<link rel="dns-prefetch" href="https://data.wowtoken.app">
|
<link rel="dns-prefetch" href="https://data.wowtoken.app">
|
||||||
<link rel="preload" href="https://data.wowtoken.app/v2/current/classic.json" as="fetch" type="application/json" crossorigin="anonymous">
|
<link rel="preload" href="https://data.wowtoken.app/v2/current/retail.json" as="fetch" type="application/json" crossorigin="anonymous">
|
||||||
<link rel="preload" href="https://data.wowtoken.app/v2/relative/classic/us/72h.json" as="fetch" type="application/json" crossorigin="anonymous">
|
<link rel="preload" href="https://data.wowtoken.app/v2/relative/retail/us/72h.json" as="fetch" type="application/json" crossorigin="anonymous">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="flex-container">
|
<div class="flex-container">
|
||||||
<div class="data-header">
|
<div class="data-header">
|
||||||
<h1>1 Classic Token = <u id="token">0</u> Gold</h1>
|
<h1>1 Token = <u id="token">0</u> Gold</h1>
|
||||||
<div class="high-low">
|
<div class="high-low">
|
||||||
<p>Lowest in last <em id="low-time">3 days</em>: <u id="low-val">0</u></p>
|
<p>Lowest in last <em id="low-time">3 days</em>: <u id="low-val">0</u></p>
|
||||||
<p>Highest in last <em id="high-time">3 days</em>: <u id="high-val">0</u></p>
|
<p>Highest in last <em id="high-time">3 days</em>: <u id="high-val">0</u></p>
|
||||||
@ -43,6 +43,8 @@
|
|||||||
<option value="720h">1 Month</option>
|
<option value="720h">1 Month</option>
|
||||||
<option value="90d">3 Months</option>
|
<option value="90d">3 Months</option>
|
||||||
<option value="6m">6 Months</option>
|
<option value="6m">6 Months</option>
|
||||||
|
<option value="1y">1 Year</option>
|
||||||
|
<option value="2y">2 Years</option>
|
||||||
<option value="all">All Available</option>
|
<option value="all">All Available</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -83,12 +85,12 @@
|
|||||||
Get alerted when the Token hits certain thresholds using GoblinBot, find out more <a href="https://blog.emily.sh/token-bot/">here!</a>
|
Get alerted when the Token hits certain thresholds using GoblinBot, find out more <a href="https://blog.emily.sh/token-bot/">here!</a>
|
||||||
</em></p>
|
</em></p>
|
||||||
<hr />
|
<hr />
|
||||||
<p><em>Looking for the retail WoW Token price? Find it <a href="https://wowtoken.app">here!</a></em></p>
|
<p><em>Looking for the classic WoW Token price? Find it <a href="https://classic.wowtoken.app">here!</a></em></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<details id="about">
|
<details id="about">
|
||||||
<summary>About this Site</summary>
|
<summary>About this Site</summary>
|
||||||
This is a site developed to track the value of the World of Warcraft Classic Token from various
|
This is a site developed to track the value of the World of Warcraft Token from various
|
||||||
regions over time. I developed it because I wanted a quick and simple way to track the
|
regions over time. I developed it because I wanted a quick and simple way to track the
|
||||||
cost without being advertised to or tracked, and to play around with various "serverless"
|
cost without being advertised to or tracked, and to play around with various "serverless"
|
||||||
technologies. As such, my promise to you is never to use any tracking Javascript, and the
|
technologies. As such, my promise to you is never to use any tracking Javascript, and the
|
||||||
@ -96,10 +98,10 @@
|
|||||||
</details>
|
</details>
|
||||||
<details id="what-is">
|
<details id="what-is">
|
||||||
<summary>What is the WoW Token</summary>
|
<summary>What is the WoW Token</summary>
|
||||||
The World of Warcraft Classic Token is a first-party system developed by Blizzard to allow you
|
The World of Warcraft Token is a first-party system developed by Blizzard to allow you
|
||||||
to either spend currency (local denomination or Blizzard Balance) and convert it to gold
|
to either spend currency (local denomination or Blizzard Balance) and convert it to gold
|
||||||
in classic World of Warcraft, or use gold to buy game time.
|
in retail World of Warcraft, or use gold to buy game time or Blizzard Balance. To find out
|
||||||
To find out more, visit the support article on Blizzard's website
|
more, visit the support article on Blizzard's website
|
||||||
<a href="https://us.battle.net/support/en/article/31218">here</a>.
|
<a href="https://us.battle.net/support/en/article/31218">here</a>.
|
||||||
</details>
|
</details>
|
||||||
<div id="source">
|
<div id="source">
|
||||||
|
@ -241,7 +241,7 @@ function detectURLQuery() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function buildDeepLinksURL() {
|
function buildDeepLinksURL() {
|
||||||
let url = "https://classic.wowtoken.app/?"
|
let url = "https://wowtoken.app/?"
|
||||||
if (currentTimeSelection !== '72h'){
|
if (currentTimeSelection !== '72h'){
|
||||||
url += `time=${currentTimeSelection}&`
|
url += `time=${currentTimeSelection}&`
|
||||||
}
|
}
|
||||||
|
@ -173,8 +173,8 @@ h6 {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
html {
|
html {
|
||||||
background-color: #6b4233;
|
background-color: #073642;
|
||||||
color: #b7b7b7;
|
color: #839496;
|
||||||
margin: 1em;
|
margin: 1em;
|
||||||
}
|
}
|
||||||
/*body {
|
/*body {
|
||||||
@ -194,7 +194,7 @@ a:hover {
|
|||||||
color: #cb4b16;
|
color: #cb4b16;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
color: #ffd5e9;
|
color: #d33682;
|
||||||
}
|
}
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
@ -206,7 +206,7 @@ h6 {
|
|||||||
pre {
|
pre {
|
||||||
background-color: #002b36;
|
background-color: #002b36;
|
||||||
color: #839496;
|
color: #839496;
|
||||||
border: 1pt solid #000000;
|
border: 1pt solid #586e75;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
box-shadow: 5pt 5pt 8pt #073642;
|
box-shadow: 5pt 5pt 8pt #073642;
|
||||||
}
|
}
|
||||||
@ -301,10 +301,10 @@ h6 {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: #2f201e;
|
background-color: #002b36;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 85%;
|
max-width: 85%;
|
||||||
border: 1pt solid #000000;
|
border: 1pt solid #586e75;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -341,8 +341,8 @@ p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
details {
|
details {
|
||||||
background-color: #6b4233;
|
background-color: #073642;
|
||||||
border: 1px solid #000000;
|
border: 1px solid #aaa;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 0.5em 0.5em 0;
|
padding: 0.5em 0.5em 0;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
@ -363,7 +363,7 @@ details[open] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
details[open] summary {
|
details[open] summary {
|
||||||
border-bottom: 1px solid #000000;
|
border-bottom: 1px solid #aaa;
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
export default function urlBuilder(currentRegionSelection, currentTimeSelection, currentAggregateSelection) {
|
export default function urlBuilder(currentRegionSelection, currentTimeSelection, currentAggregateSelection) {
|
||||||
let url = "https://data.wowtoken.app/v2/";
|
let url = "https://data.wowtoken.app/v2/";
|
||||||
if (currentAggregateSelection !== '' && currentAggregateSelection !== 'none'){
|
if (currentAggregateSelection !== '' && currentAggregateSelection !== 'none'){
|
||||||
url += `math/${currentAggregateSelection}/classic/`
|
url += `math/${currentAggregateSelection}/retail/`
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
url += `relative/classic/`
|
url += `relative/retail/`
|
||||||
}
|
}
|
||||||
|
|
||||||
url += `${currentRegionSelection}/${currentTimeSelection}.json`;
|
url += `${currentRegionSelection}/${currentTimeSelection}.json`;
|
||||||
|
Loading…
Reference in New Issue
Block a user