Skip to content

Instantly share code, notes, and snippets.

View Chr15t1an's full-sized avatar
🏠
Working from home

Christian Chr15t1an

🏠
Working from home
View GitHub Profile
// 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);
// });
// });
@Chr15t1an
Chr15t1an / replace all images with place holder images
Last active April 5, 2019 17:34
replace all images with place holder images
$( document ).ready(function() {
var imageUrl = 'img/landing-1.jpg';
$("img").each(function(){
$(this).attr('src', imageUrl );
});
$( ".background-image-holder" ).css( "background", 'url(' + imageUrl + ')' );
});