html/index.js
/*  loginSelection
    a function to press the button to log the user into
    their spotify
    @params
        button_id: the id of the button that was pressed
    @returns
        api_call: what ever the spotify api call is passed to 
                    somewhere else
*/
loginSelection
a function to press the button to log the user into
their spotify
loginSelection a function to press the button to log the user into their spotify
function loginSelection(button_id) {
        let selected_button = document.getElementById(button_id);
        selected_button.style.background = "black";
        selected_button.style.color = "#cfe8fa";
    }
function loginSelection ( button_id ) { let selected_button = document . getElementById ( button_id ) ; selected_button . style . background = "black" ; selected_button . style . color = "#cfe8fa" ; }
loginSelection
a function to press the button to log the user into
their spotify
loginSelection a function to press the button to log the user into their spotify
/*  get the button, and change the color to show selection */ /* on successful login, should changed to successfully logged in */ /*might need to implement alerts for if the user is trying to press
            the music and time span buttons before logging in that just say like
            'you need to login before we can show you your data'            */