diff --git a/app.js b/app.js index 925acd4..663e886 100644 --- a/app.js +++ b/app.js @@ -8,7 +8,14 @@ let app = new Vue({ show: { popularity_popup: false, popularity_hover: false, - follower_hover: false + follower_hover: false, + modal_content: false, + modal: { + popularity: false, + track: false, + artist: false, + playlist_export: false, + } }, error: { main: ``, @@ -67,5 +74,11 @@ let app = new Vue({ }) }, get_data: fetch_data, + hide_modal: function () { + this.show.modal.popularity = false; + this.show.modal.track = false; + this.show.modal.artist = false; + this.show.modal.playlist_export = false; + } } }) diff --git a/components/artist.html b/components/artist.html index 8272f7a..8c2a55b 100644 --- a/components/artist.html +++ b/components/artist.html @@ -1,19 +1,17 @@ -
+ Popularity is a value between 0 and 100 that is calculated by Spotify based on how many plays the song/artist has recieved and how recent those plays are. +
++ This means that an artist/song that has had 100 plays today will have a higher popularity than a song/artist that has 100 from a month ago. +
++ This number is not updated in real time so refreshing the page will not reflect it's absolute accurate value. +
+