Skip to content

Commit

Permalink
Add type attribute to script tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Dec 2, 2024
1 parent b689dea commit 6636c01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<div id="info-nodes-total"></div>
</div>
<div class="version"></div>
<script>
<script type="text/javascript">
const globe = Globe();

window.addEventListener('resize',function(event){
Expand Down Expand Up @@ -91,6 +91,10 @@
globe.pointLabel(point => point.label);
globe.pointRadius(point => POINT_RADIUS[point.type]);

globe.onPointClick(point => {
console.log(point);
});

globe.onZoom((x) => {globe.controls().zoomSpeed = 2;});

var data = null;
Expand Down

0 comments on commit 6636c01

Please sign in to comment.