diff --git a/src/main/resources/globe.css b/src/main/resources/globe.css index 31b9f68..41a1668 100644 --- a/src/main/resources/globe.css +++ b/src/main/resources/globe.css @@ -1,3 +1,8 @@ +html,body,canvas{ + height:100%; + width:100%; +} + body{ background:black; font-family:Arial,sans-serif; diff --git a/src/main/resources/globe.js b/src/main/resources/globe.js index 99eb263..0cca6ee 100644 --- a/src/main/resources/globe.js +++ b/src/main/resources/globe.js @@ -1,7 +1,11 @@ const globe = Globe(); +var container = null; + window.addEventListener('load',function(){ - globe(document.getElementById('globe')); + container = document.getElementById('globe'); + + globe(container); }); window.addEventListener('resize',function(event){