Last active
December 17, 2015 03:28
-
-
Save zross/5542940 to your computer and use it in GitHub Desktop.
JavaScript: Modernizr-SVG
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
if (!Modernizr.svg) { | |
$('.countyname') | |
.addClass('svgError') | |
.html("Your browser does not support " + | |
"the interactive graphics on this page. Interactive " + | |
"graphics have been replaced with a static image."); | |
$('.mapcontainer').append('<img src="images/map.png">'); | |
throw 'SVG not supported'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment