This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example spotify class | |
// const spotifyAPI = new SpotifyAPI('<Your Client ID>', '<Your Client Secret>', '<Your Redirect URI>'); | |
// spotifyAPI.getAuthToken().then(() => { | |
// spotifyAPI.setTokenInCookie(); | |
// spotifyAPI.search('Song Name').then(tracks => { | |
// console.log(tracks); | |
// }); | |
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( document ).ready(function() { | |
var imageUrl = 'img/landing-1.jpg'; | |
$("img").each(function(){ | |
$(this).attr('src', imageUrl ); | |
}); | |
$( ".background-image-holder" ).css( "background", 'url(' + imageUrl + ')' ); | |
}); |