initial commit
This commit is contained in:
13
client/client.js
Normal file
13
client/client.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import MhdMapClient from "./MhdMapClient.js";
|
||||
|
||||
const DOMReady = function(callback) {
|
||||
document.readyState === "interactive" || document.readyState === "complete" ? callback() : document.addEventListener("DOMContentLoaded", callback);
|
||||
};
|
||||
|
||||
DOMReady(() => {
|
||||
const client = new MhdMapClient(document.getElementById('app'));
|
||||
client.start();
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user