Skip to content

Instantly share code, notes, and snippets.

@zross
Last active December 17, 2015 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zross/5542940 to your computer and use it in GitHub Desktop.
Save zross/5542940 to your computer and use it in GitHub Desktop.
JavaScript: Modernizr-SVG
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