Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Commit

Permalink
Update scripts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
itsN1X authored Jun 10, 2019
1 parent cfd804d commit 6f53e27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app.appendChild(logo);
app.appendChild(container);

var request = new XMLHttpRequest();
request.open('GET', 'https://api.coinmarketcap.com/v1/ticker/?limit=32', true);
request.open('GET', 'https://api.coinmarketcap.com/v1/ticker/', true);
request.onload = function () {

// Begin accessing JSON data here
Expand All @@ -23,7 +23,7 @@ request.onload = function () {
const h1 = document.createElement('h1');
h1.textContent = id.max_supply;
const h2 = document.createElement('h2');
h2.textContent = 'nOUR, ' + id.name + '⇨ has some ' + id.total_supply + ' in totality ';
h2.textContent = 'nOUR, ' + id.name + '⇨ has some ' + id.total_supply;

ee = document.createElement('eeee');
ee.textContent = id.market_cap_usd + ' vCrazy,№. » ' + id.rank + 'th this dæy!';
Expand All @@ -34,7 +34,7 @@ request.onload = function () {
container.appendChild(card);
card.appendChild(h1);
card.appendChild(h2);
card.appendChild(eeee);
card.appendChild(ee);
card.appendChild(p);
});
} else {
Expand Down

0 comments on commit 6f53e27

Please sign in to comment.