forked from themustafaomar/jsvectormap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a basic_scrollable page to test out the issue
- Loading branch information
1 parent
66e91a6
commit ea678a2
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Jsvectormap (Basic)</title> | ||
<link rel="stylesheet" href="../assets/css/style.css" /> | ||
<link rel="stylesheet" href="../dist/css/jsvectormap.css" /> | ||
<script src="../dist/js/jsvectormap.min.js"></script> | ||
<script src="../dist/maps/world.js"></script> | ||
<style> | ||
.map-wrapper { | ||
border: 1px solid #EEE; | ||
padding: 1rem; | ||
width: 700px; | ||
margin: auto | ||
} | ||
</style> | ||
</head> | ||
<body style="height: 200vh;"> | ||
<br/><br/><br/><br/><br/> | ||
<div id="map" style="width: 750px; height: 400px; margin: auto; border: 1px solid #EEE"></div> | ||
<script> | ||
var map = new jsVectorMap({ | ||
map: 'world', | ||
selector: '#map', | ||
}) | ||
|
||
document.querySelector('#focus').addEventListener('click', () => { | ||
map.setFocus({ region: 'RU', animate: true }) | ||
}) | ||
</script> | ||
</body> | ||
</html> |