responsive.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <title>JQVMap - Europe Map</title>
  6. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  7. <link href="../dist/jqvmap.css" media="screen" rel="stylesheet" type="text/css">
  8. <style>
  9. html, body {
  10. padding: 0;
  11. margin: 0;
  12. width: 100%;
  13. height: 100%;
  14. }
  15. #vmap {
  16. width: 100%;
  17. height: 100%;
  18. background-color: red;
  19. }
  20. </style>
  21. <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
  22. <script type="text/javascript" src="../dist/jquery.vmap.js"></script>
  23. <script type="text/javascript" src="../dist/maps/jquery.vmap.usa.js" charset="utf-8"></script>
  24. <script type="text/javascript">
  25. jQuery(document).ready(function () {
  26. jQuery('#vmap').vectorMap({
  27. map: 'usa_en',
  28. enableZoom: true,
  29. showTooltip: true,
  30. onResize: function (element, width, height) {
  31. console.log('Map Size: ' + width + 'x' + height);
  32. }
  33. });
  34. });
  35. </script>
  36. </head>
  37. <body>
  38. <div id="vmap"></div>
  39. </body>
  40. </html>