Skip to content

Commit

Permalink
fix: development workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
themustafaomar committed Sep 28, 2023
1 parent 0880493 commit 1468562
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<title>Jsvectormap (Workspace)</title>
<link rel="stylesheet" href="./assets/css/style.css" />
<link rel="stylesheet" href="./dist/css/jsvectormap.css" />
<script src="js/jsvectormap.js"></script>
<script src="./dist/maps/world-merc.js"></script>
<script src="/dist/js/jsvectormap.js"></script>
<script src="./src/maps/world-merc.js"></script>
</head>
<body>
<div class="workspace-wrapper">
Expand Down Expand Up @@ -67,8 +67,9 @@ <h1>Jsvectormap workspace.</h1>
onRegionSelected: function (index, isSelected, selectedRegions) {
console.log(index, isSelected, selectedRegions)
},
onRegionTooltipShow: function (tooltip, index) {
onRegionTooltipShow: function (event, tooltip, index) {
console.log(tooltip, index)
console.log(tooltip);

tooltip.css({ backgroundColor: 'white', color: '#35373e' }).text(
tooltip.text() + ' (Hello World `region`)'
Expand All @@ -77,7 +78,7 @@ <h1>Jsvectormap workspace.</h1>
onMarkerSelected: function (code, isSelected, selectedMarkers) {
console.log(code, isSelected, selectedMarkers)
},
onMarkerTooltipShow: function (tooltip, code) {
onMarkerTooltipShow: function (event, tooltip, code) {
tooltip.text(
tooltip.text() + ' (Hello World (marker))'
)
Expand Down

0 comments on commit 1468562

Please sign in to comment.