Last active
April 5, 2019 17:34
-
-
Save Chr15t1an/72a93fdf905d672969f831fbe3eeed25 to your computer and use it in GitHub Desktop.
replace all images with place holder images
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 + ')' ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment