Skip to content

Commit b5650cd

Browse files
committed
Improve styling
1 parent f5c7e60 commit b5650cd

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/main/resources/globe.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
html,body,canvas{
2+
height:100%;
3+
width:100%;
4+
}
5+
16
body{
27
background:black;
38
font-family:Arial,sans-serif;

src/main/resources/globe.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
const globe = Globe();
22

3+
var container = null;
4+
35
window.addEventListener('load',function(){
4-
globe(document.getElementById('globe'));
6+
container = document.getElementById('globe');
7+
8+
globe(container);
59
});
610

711
window.addEventListener('resize',function(event){

0 commit comments

Comments
 (0)