From b5650cdbf8a5c21c9e42f9a7e5cae55e44fb4ca0 Mon Sep 17 00:00:00 2001 From: Ben van Hartingsveldt Date: Fri, 3 Jan 2025 23:37:53 +0100 Subject: [PATCH] Improve styling --- src/main/resources/globe.css | 5 +++++ src/main/resources/globe.js | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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){