ruscomap/public/index.html

65 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""
/>
<link rel="icon" type="image/png" sizes="16x16" href="../img/trashw.png">
<script
src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin=""
></script>
<link rel="stylesheet" href="/css/map.css" />
<title>RuscoMap</title>
</head>
<body>
<button id="addMarkerBtn">BottoneInserimento</button>
<div id="markerFormContainer">
<form id="markerForm" enctype="multipart/form-data">
<div id="noticeCoordsPicker" style="display: none;">
<text>Clicca o premi sulla mappa per selezionare la posizione dell'oggetto</text>
<input id="formInputCoordY" name="lat" type="hidden" />
<input id="formInputCoordX" name="long" type="hidden" />
</div>
<div id="remainingForm" style="display: none;">
<label>Nome</label>
<br>
<input name="name" required type="text" />
<br><br>
<label>Descrizione</label>
<br>
<textarea name="description" required></textarea>
<br><br>
<div class="file-upload">
<input name="image" required type="file" id="file-input" class="file-input" accept="image/x-png,image/jpeg,image/jpg"/>
<label for="file-input" class="file-label">Scegli File</label>
<br><br>
<span class="file-chosen"> </span>
</div>
<!-- <input
name="image"
required
type="file"
accept="image/x-png,image/jpeg,image/jpg"
/> -->
<br>
<button>Aggiungi Marker</button>
</div>
</form>
</div>
<div id="map">
<script>
document.getElementById("addMarkerBtn").innerHTML = '<img src="../img/marker-icon18.png" alt="Button Image" />';
</script>
</div>
</body>
<footer>
<script type="module" type="text/javascript" src="/js/map.js"></script>
</footer>
</html>