POGOserver/api/js/init.js
Cronick 3b65a69f74 Update
- Moved the web-api to the master branch
- Rewrote parts of the web-api to support ES6
- Added local webserver to the web-api
- Added command to start the local webserver ("npm run api")
2016-09-27 01:39:46 +02:00

17 lines
435 B
JavaScript

((() => {
function loadScriptDefered(src) {
let js = null;
js = document.createElement("script");
js.type = "text/javascript";
js.src = src;
js.async = false;
document.body.appendChild(js);
};
loadScriptDefered(`http://maps.google.com/maps/api/js?key=${CFG.GMAPS.API_KEY}`);
loadScriptDefered("/api/js/gmaps.js");
loadScriptDefered("/api/js/ajax.js");
loadScriptDefered("/api/js/main.js");
}))();