Add type attribute to script tag
This commit is contained in:
parent
b689dea488
commit
6636c01620
1 changed files with 5 additions and 1 deletions
|
@ -41,7 +41,7 @@
|
||||||
<div id="info-nodes-total"></div>
|
<div id="info-nodes-total"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="version"></div>
|
<div class="version"></div>
|
||||||
<script>
|
<script type="text/javascript">
|
||||||
const globe = Globe();
|
const globe = Globe();
|
||||||
|
|
||||||
window.addEventListener('resize',function(event){
|
window.addEventListener('resize',function(event){
|
||||||
|
@ -91,6 +91,10 @@ globe.pointColor(point => POINT_COLOR[point.type]);
|
||||||
globe.pointLabel(point => point.label);
|
globe.pointLabel(point => point.label);
|
||||||
globe.pointRadius(point => POINT_RADIUS[point.type]);
|
globe.pointRadius(point => POINT_RADIUS[point.type]);
|
||||||
|
|
||||||
|
globe.onPointClick(point => {
|
||||||
|
console.log(point);
|
||||||
|
});
|
||||||
|
|
||||||
globe.onZoom((x) => {globe.controls().zoomSpeed = 2;});
|
globe.onZoom((x) => {globe.controls().zoomSpeed = 2;});
|
||||||
|
|
||||||
var data = null;
|
var data = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue