Add type attribute to script tag

This commit is contained in:
Ben van Hartingsveldt 2024-12-02 14:16:12 +01:00
parent b689dea488
commit 6636c01620
No known key found for this signature in database
GPG key ID: 261AA214130CE7AB

View file

@ -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){
@ -91,6 +91,10 @@ globe.pointColor(point => POINT_COLOR[point.type]);
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;