We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c36e892 commit 1066524Copy full SHA for 1066524
song.js
@@ -0,0 +1,9 @@
1
+let user = 'spagwhetti';
2
+let url = 'https://lastfm-last-played.biancarosa.com.br/' + user + '/latest-song';
3
+let song = document.querySelector('#song');
4
+fetch(url)
5
+ .then(function (response) {
6
+ return response.json()
7
+ }).then(function (json) {
8
+ song.innerHTML = json['track']['name'] + ' - ' + json['track']['artist']['#text'];
9
+ });
0 commit comments