Created
July 13, 2013 21:00
-
-
Save pushandplay/5992196 to your computer and use it in GitHub Desktop.
FIX for Bootstrap and Google Maps Info window styes problem
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
# FIX for Bootstrap and Google Maps Info window styes problem | |
css = document.createElement 'style' | |
css.type = 'text/css' | |
styles = 'img[src*="gstatic.com/"], img[src*="googleapis.com/"] { max-width: none; }' | |
if css.styleSheet | |
css.styleSheet.cssText = styles | |
else | |
css.appendChild(document.createTextNode styles) | |
document.getElementsByTagName("head")[0].appendChild css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment