Skip to content

Instantly share code, notes, and snippets.

@sqndr
Last active August 29, 2015 14:04
Show Gist options
  • Save sqndr/20f982e8e4ddc5aeb4e4 to your computer and use it in GitHub Desktop.
Save sqndr/20f982e8e4ddc5aeb4e4 to your computer and use it in GitHub Desktop.
Kittens everywhere in IE
// Replace all images with kitten placeholder images in IE. #awesome
(function($) {
Drupal.behaviors.placeholder = {
attach: function() {
$('.ie').find('img').attr('src', 'http://placekitten.com/g/200/300');
}
};
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment