jqvmap-novulnerability
Version:
jQuery Vector Map Library
36 lines (32 loc) • 1.36 kB
HTML
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>JQVMap - 2016 Election Results County Map</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<link href="../dist/jqvmap.css" media="screen" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="../dist/jquery.vmap.js"></script>
<script type="text/javascript" src="../dist/maps/jquery.vmap.usa.counties.js" charset="utf-8"></script>
<script type="text/javascript" src="./js/jquery.vmap.electioncolors.js"></script>
<script>
jQuery(document).ready(function () {
jQuery('#vmap').vectorMap({
map: 'usa_counties_en',
enableZoom: true,
showTooltip: true,
colors: electionColors,
backgroundColor: '#eee',
borderColor: '#fff',
hoverColor: '#0ff',
onRegionClick: function(event, code, region){
event.preventDefault();
}
});
});
</script>
</head>
<body>
<div id="vmap" style="width: 900px; height: 600px;"></div>
</body>
</html>