Air-Quality-Web/client_src/js/index.mjs

26 lines
749 B
JavaScript
Raw Normal View History

2019-01-13 13:15:11 +00:00
"use strict";
import '../css/index.css';
// import '../../node_modules/leaflet-timedimension/dist/leaflet.timedimension.control.css';
2019-01-17 12:48:09 +00:00
// ----------------------------------------------------------------------------
import MapManager from './MapManager.mjs';
import iso8601 from 'iso8601-js-period';
2019-04-14 20:59:06 +00:00
2019-01-13 13:15:11 +00:00
window.addEventListener("load", function(_event) {
2019-01-20 00:17:54 +00:00
window.map_manager = new MapManager();
window.map_manager.setup();
2019-01-13 13:15:11 +00:00
});
2019-04-14 21:09:33 +00:00
window.nezasa = {
iso8601
};
2019-04-14 21:09:33 +00:00
// This needs to be here rather than in onload, because we need to ensure it's loaded now
console.log("iso8601-js-period namespace: ", window.nezasa);
// Ensure terser doesn't tree-shake iso8601-js-period
console.debug(`iso8601-js-period ${nezasa.iso8601.Period?"is":"is not"} loaded.`);