Draft UI changes + remote DB API
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
import UI from "./ui.js";
|
||||
|
||||
const MAPBOX_TOKEN = 'pk.eyJ1Ijoibmljb3BhIiwiYSI6ImNseWNwZjJjbjFidzcya3BoYTU0bHg4NnkifQ.3036JnCXZTEMt6jVgMzVRw';
|
||||
const BASE_URL = location.href;
|
||||
const API_URL = 'https://testaec.electricmandarine.cloud/gisdb/gis';
|
||||
|
||||
// Global leaflet
|
||||
/**
|
||||
@@ -41,8 +43,6 @@ const optionsFabbricati = {
|
||||
fillOpacity: 0.8
|
||||
};
|
||||
|
||||
const BASE_URL = location.href;
|
||||
const API_URL = 'http://localhost:3002/gis';
|
||||
/**
|
||||
* Capitalize a text string
|
||||
* @todo Move to utils
|
||||
|
||||
@@ -9,4 +9,9 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||
UI.toggleMenu('siti');
|
||||
UI.toggleBurger('navbar-burger');
|
||||
UI.sitesMenu('.menu-list', map, sites);
|
||||
|
||||
// TEMP
|
||||
document.querySelector('.dropdown-trigger').addEventListener('click', function() {
|
||||
document.querySelector('.dropdown').classList.toggle('is-active');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user