A Pen by Brandon Ratzloff on CodePen.
Created
February 25, 2014 19:48
-
-
Save brandonratz/9216295 to your computer and use it in GitHub Desktop.
A Pen by Brandon Ratzloff.
A Pen by Brandon Ratzloff on CodePen.
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
<!-- Drupal function to remove parent element --> | |
<div class="block-locationmap"> | |
<a href="http://google.com"> | |
<img src="http://maps.googleapis.com/maps/api/staticmap?zoom=15&size=490x400&markers=%2042.351693,-71.057478&sensor=false" /> | |
</a> | |
</div> |
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
// Drupal Wrapper -- Begin | |
(function($) { | |
$(document).ready(function() { | |
$(".block-locationmap img").unwrap(); | |
}); | |
})(jQuery); | |
// Drupal Wrapper -- End |
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
.block-locationmap img { | |
background: #FFF; | |
box-sizing: border-box; | |
border: 1px solid #DDD; | |
padding: 5px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment