Skip to content

Commit

Permalink
Update price ids
Browse files Browse the repository at this point in the history
  • Loading branch information
adamplouff committed Aug 1, 2024
1 parent 478c1a9 commit 69f1d6a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.multiRootWorkspaceName": "bilbo"
}
17 changes: 11 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
input {
display: none;
}

table {
width: 100%;
border-color: #333;
Expand Down Expand Up @@ -170,7 +170,11 @@
},
pri_01h7gcp07yacazx9rs35sgeryd: {
name: "Overlord",
price: 55
price: 60
},
pri_01j0npq9rpjf2wpx8grctcx2tv: {
name: "Overlord - renew",
price: 60
},
pri_01h7jb6nxqbhkhqfg1w5myqfhd: {
name: "Timelord",
Expand All @@ -193,6 +197,7 @@
totalEarnings: {
pri_01h7jacqjse1pmpds97q8aetzk: 0,
pri_01h7gcp07yacazx9rs35sgeryd: 0,
pri_01j0npq9rpjf2wpx8grctcx2tv: 0,
pri_01h7jb6nxqbhkhqfg1w5myqfhd: 0,
pri_01h7jb3z5a4zkj97t1wj62mkq8: 0,
},
Expand Down Expand Up @@ -252,8 +257,8 @@
productIds.forEach((productId) => {
const product = products[productId];
const earnings = parseFloat(row.earnings) || 0;


if (product) {
if (productIds.length === 1) {
this.totalEarnings[productId] += earnings;
Expand Down Expand Up @@ -282,7 +287,7 @@
return earning.toFixed(2);
}).join('\t');
navigator.clipboard.writeText(earnings);

this.copied = true;
setTimeout(() => {
this.copied = false;
Expand All @@ -300,4 +305,4 @@

</body>

</html>
</html>

0 comments on commit 69f1d6a

Please sign in to comment.