Skip to content

Commit

Permalink
- Enhanced shop creds experience
Browse files Browse the repository at this point in the history
  • Loading branch information
Koala3353 committed Apr 25, 2024
1 parent 014201d commit b3a9c6e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
30 changes: 15 additions & 15 deletions assets/js/shopping-creds.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,50 +26,50 @@ const stocks = [
src: './../../assets/img/illustrations/amazon.svg',
name: 'Amazon Gift Cards',
ticker: 'Amazon',
price: 500,
marketCap: '24 dollars',
price: 3200,
marketCap: '50 dollars',
volume: '100 remaining',
},
{
src: './../../assets/img/illustrations/apple.svg',
name: 'Apple Gift Cards',
ticker: 'Apple',
price: 500,
marketCap: '10 dollars',
volume: '100 remaining',
marketCap: '5 dollars',
volume: '12 remaining',
},
{
src: './../../assets/img/illustrations/google.svg',
name: 'Play Store Gift Cards',
ticker: 'Google',
price: 500,
marketCap: '10 dollars',
volume: '90 remaining',
marketCap: '5 dollars',
volume: '20 remaining',
},
{
src: './../../assets/img/illustrations/playstation.svg',
name: 'Playstation Gift Cards',
ticker: 'Playstation',
price: 500,
marketCap: '10 dollars',
volume: '100 remaining',
price: 1600,
marketCap: '25 dollars',
volume: '15 remaining',
},

{
src: './../../assets/img/illustrations/steam.svg',
name: 'Steam Gift Cards',
ticker: 'Steam',
price: 500,
marketCap: '10 dollars',
volume: '90 remaining',
price: 1300,
marketCap: '20 dollars',
volume: '30 remaining',
},
{
src: './../../assets/img/illustrations/xbox.svg',
name: 'Xbox Gift Cards',
ticker: 'Xbox',
price: 500,
marketCap: '10 dollars',
volume: '90 remaining',
price: 1600,
marketCap: '25 dollars',
volume: '10 remaining',
},
]

Expand Down
7 changes: 5 additions & 2 deletions success.html
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ <h3 class="fs-6 text-white" style="font-family: 'Coolvetica Rg'">
};
$(".output-checkout-code").html("You successfully claimed the voucher. Here is the code: <b>" + code + "</b>");
$(".redirect-shop").attr("href", nameToUrl[name]);
$(".loading").hide();
});
</script>

Expand All @@ -412,7 +411,11 @@ <h3 class="fs-6 text-white" style="font-family: 'Coolvetica Rg'">
' <path d="M1 0a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4.083q.088-.517.258-1H3a2 2 0 0 0-2-2V3a2 2 0 0 0 2-2h10a2 2 0 0 0 2 2v3.528c.38.34.717.728 1 1.154V1a1 1 0 0 0-1-1z"/>\n' +
' <path d="M9.998 5.083 10 5a2 2 0 1 0-3.132 1.65 6 6 0 0 1 3.13-1.567"/>\n' +
' </svg>').append(creditsText);
$(".loading").hide();
})
.catch(error => console.error('Error:', error)); </script>
.catch(error => {
console.error('Error:', error);
$(".loading").hide();
}); </script>
</body>
</html>

0 comments on commit b3a9c6e

Please sign in to comment.