Draft UI changes + remote DB API

This commit is contained in:
2024-07-09 16:44:28 +02:00
parent ff7f3d08ac
commit f6883c3502
3 changed files with 21 additions and 3 deletions

View File

@@ -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

View File

@@ -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');
});
});