Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-16 23:11:05 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-16 23:11:05 -0700
commit9d4f58472d00558e809cd43642259ba109e25037 (patch)
tree7d7e9a63a1e722172f6145116d44397c3b74a5ff /src/index.js
parent021b8d3a9a25b751180781b000696841da83e0b1 (diff)
WIP: Buildings
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 3710843..b90c579 100644
--- a/src/index.js
+++ b/src/index.js
@@ -74,6 +74,7 @@ function load() {
linkEl.setAttribute('rel', 'stylesheet');
linkEl.setAttribute('href', 'http://localhost:8080/assets/css/map.css');
linkEl.setAttribute('type', 'text/css');
+
linkEl.onload = function (e) {
console.log('map.css loaded');
@@ -86,6 +87,7 @@ function load() {
scriptEl.setAttribute('href', 'http://localhost:8080/map.js');
}
};
+
svg.prepend(linkEl);
this.style.opacity = 1;