-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
108 lines (74 loc) · 3.03 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html>
<?php
/*
* Author: Luigi Grillo
* File: index.php
* Last update: 10/07/2019
* Todo:
*
*
*/
?>
<head>
<title>iocuMap - luigigrillo.com</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no" />
<link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />
<!-- Fontawesome -->
<script src="https://kit.fontawesome.com/74c7a5d0b5.js"></script>
<script src="https://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ==" crossorigin=""/>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha512-GffPMF3RvMeYyc1LWMHtK8EbPv0iNZ8/oTtHPx9/cc2ILxQ+u905qIwdpULaqDkyBKgOaB57QTMg7ztg8Jm2Og==" crossorigin=""></script>
<link rel="stylesheet" type="text/css" href="css/sidebar.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" href="http://www.luigigrillo.com/maps/libs/leaflet-control-osm-geocoder/Control.OSMGeocoder.css" />
<script src="libs/leaflet-control-osm-geocoder/Control.OSMGeocoder.js"></script>
<script>
function openNav() {
document.getElementById("leftsidenav").style.width = "250px";
document.getElementById("openbtn").style.display="none";
document.getElementById("closebtn").style.display="block";
}
function closeNav() {
document.getElementById("leftsidenav").style.width = "0";
document.getElementById("closebtn").style.display="none";
document.getElementById("openbtn").style.display="block";
}
</script>
</head>
<body>
<div id="header">
<div id="openbtn"> <a href="javascript:void(0)" onclick="openNav()"><i class="fa fa-bars fa-fw" aria-hidden="true"></i></a></div>
<div id="closebtn"> <a href="javascript:void(0)" onclick="closeNav()"><i class="fa fa-close fa-fw" aria-hidden="true"></i></a></div>
</div>
<div id="leftsidenav" class="sidenav">
<button class="accordion">About</button>
<div class="panel"> about about</div>
<button class="accordion">Settings</button>
<div class="panel">settings settings </div>
<button class="accordion">Help</button>
<div class="panel"> help help </div>
<button class="accordion">Contact</button>
<div class="panel">contact contact </div>
</div>
<div id="mapid"> </div>
<div id="footer"> footer </div>
<script src="js/map.js"></script>
<script>
var acc = document.getElementsByClassName("accordion");
var i;
for (i = 0; i < acc.length; i++) {
acc[i].addEventListener("click", function() {
this.classList.toggle("active");
var panel = this.nextElementSibling;
if (panel.style.maxHeight){
panel.style.maxHeight = null;
} else {
panel.style.maxHeight = panel.scrollHeight + "px";
}
});
}
</script>
</body>
</html>