mirror of
https://github.com/maierfelix/POGOserver.git
synced 2026-03-22 09:54:17 -05:00
- 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")
17 lines
435 B
JavaScript
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");
|
|
|
|
}))(); |