Draft UI changes + remote DB API
This commit is contained in:
parent
ff7f3d08ac
commit
f6883c3502
15
index.html
15
index.html
@ -50,9 +50,22 @@
|
|||||||
</p>
|
</p>
|
||||||
<ul class="menu-list">
|
<ul class="menu-list">
|
||||||
<li>
|
<li>
|
||||||
<a class="button" title="Vai al sito Villa di Gradola" id="gradola">
|
<a class="is-block button" title="Vai al sito Villa di Gradola" id="gradola">
|
||||||
Villa di Gradola
|
Villa di Gradola
|
||||||
|
<span class="dropdown-trigger icon is-small">
|
||||||
|
<i class="fas fa-angle-down ml-2" aria-hidden="true"></i>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
<div class="dropdown ml-2">
|
||||||
|
<div class="dropdown-menu" id="dropdown-menu" role="menu">
|
||||||
|
<div class="dropdown-content">
|
||||||
|
<a class="dropdown-item" data-sheet="gradola">Scheda del sito</a>
|
||||||
|
<a class="dropdown-item" data-docs="gradola">Documentazione</a>
|
||||||
|
<a class="dropdown-item" data-surveys="gradola">Elaborazioni CNR</a>
|
||||||
|
<a class="dropdown-item" data-photos="gradola">Fotografie</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<a class="button" title="Vai al sito Villa di Damecuta" id="damecuta">
|
<a class="button" title="Vai al sito Villa di Damecuta" id="damecuta">
|
||||||
Villa di Damecuta
|
Villa di Damecuta
|
||||||
<a class="button" title="Vai al sito Grotta di Matermania" id="matermania">
|
<a class="button" title="Vai al sito Grotta di Matermania" id="matermania">
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
import UI from "./ui.js";
|
import UI from "./ui.js";
|
||||||
|
|
||||||
const MAPBOX_TOKEN = 'pk.eyJ1Ijoibmljb3BhIiwiYSI6ImNseWNwZjJjbjFidzcya3BoYTU0bHg4NnkifQ.3036JnCXZTEMt6jVgMzVRw';
|
const MAPBOX_TOKEN = 'pk.eyJ1Ijoibmljb3BhIiwiYSI6ImNseWNwZjJjbjFidzcya3BoYTU0bHg4NnkifQ.3036JnCXZTEMt6jVgMzVRw';
|
||||||
|
const BASE_URL = location.href;
|
||||||
|
const API_URL = 'https://testaec.electricmandarine.cloud/gisdb/gis';
|
||||||
|
|
||||||
// Global leaflet
|
// Global leaflet
|
||||||
/**
|
/**
|
||||||
@ -41,8 +43,6 @@ const optionsFabbricati = {
|
|||||||
fillOpacity: 0.8
|
fillOpacity: 0.8
|
||||||
};
|
};
|
||||||
|
|
||||||
const BASE_URL = location.href;
|
|
||||||
const API_URL = 'http://localhost:3002/gis';
|
|
||||||
/**
|
/**
|
||||||
* Capitalize a text string
|
* Capitalize a text string
|
||||||
* @todo Move to utils
|
* @todo Move to utils
|
||||||
|
@ -9,4 +9,9 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||||||
UI.toggleMenu('siti');
|
UI.toggleMenu('siti');
|
||||||
UI.toggleBurger('navbar-burger');
|
UI.toggleBurger('navbar-burger');
|
||||||
UI.sitesMenu('.menu-list', map, sites);
|
UI.sitesMenu('.menu-list', map, sites);
|
||||||
|
|
||||||
|
// TEMP
|
||||||
|
document.querySelector('.dropdown-trigger').addEventListener('click', function() {
|
||||||
|
document.querySelector('.dropdown').classList.toggle('is-active');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user