Skip to content

Commit

Permalink
Adds a basic_scrollable page to test out the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kajgiesbersflavour committed Sep 22, 2021
1 parent 66e91a6 commit ea678a2
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions samples/basic_scrollablepage.html
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>

0 comments on commit ea678a2

Please sign in to comment.