84 lines
5.2 KiB
HTML
84 lines
5.2 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>sidebar-v2 example</title>
|
||
|
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||
|
|
||
|
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
|
||
|
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
|
||
|
<!--[if lte IE 8]><link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.ie.css" /><![endif]-->
|
||
|
|
||
|
<link rel="stylesheet" href="../css/leaflet-sidebar.css" />
|
||
|
|
||
|
<style>
|
||
|
body {
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
}
|
||
|
|
||
|
html, body, #map {
|
||
|
height: 100%;
|
||
|
font: 10pt "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||
|
}
|
||
|
|
||
|
.lorem {
|
||
|
font-style: italic;
|
||
|
color: #AAA;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="sidebar" class="sidebar collapsed">
|
||
|
<!-- Nav tabs -->
|
||
|
<ul class="sidebar-tabs" role="tablist">
|
||
|
<li><a href="#home" role="tab"><i class="fa fa-bars"></i></a></li>
|
||
|
<li><a href="#profile" role="tab"><i class="fa fa-user"></i></a></li>
|
||
|
<li><a href="#messages" role="tab"><i class="fa fa-envelope"></i></a></li>
|
||
|
<li><a href="#settings" role="tab"><i class="fa fa-gear"></i></a></li>
|
||
|
</ul>
|
||
|
|
||
|
<!-- Tab panes -->
|
||
|
<div class="sidebar-content active">
|
||
|
<div class="sidebar-pane" id="home">
|
||
|
<h1>sidebar-v2</h1>
|
||
|
|
||
|
<p>A responsive sidebar for mapping libraries like <a href="http://leafletjs.com/">Leaflet</a> or <a href="http://openlayers.org/">OpenLayers</a>.</p>
|
||
|
|
||
|
<p class="lorem">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
|
||
|
|
||
|
<p class="lorem">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
|
||
|
|
||
|
<p class="lorem">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
|
||
|
|
||
|
<p class="lorem">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
|
||
|
</div>
|
||
|
<div class="sidebar-pane" id="profile"><h1>Profile</h1></div>
|
||
|
<div class="sidebar-pane" id="messages"><h1>Messages</h1></div>
|
||
|
<div class="sidebar-pane" id="settings"><h1>Settings</h1></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div id="map" class="sidebar-map"></div>
|
||
|
|
||
|
<a href="https://github.com/Turbo87/sidebar-v2/"><img style="position: fixed; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
|
||
|
|
||
|
<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
|
||
|
<script src="../js/leaflet-sidebar.js"></script>
|
||
|
|
||
|
<script>
|
||
|
var map = L.map('map');
|
||
|
map.setView([51.2, 7], 9);
|
||
|
|
||
|
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||
|
maxZoom: 18,
|
||
|
attribution: 'Map data © OpenStreetMap contributors'
|
||
|
}).addTo(map);
|
||
|
|
||
|
var marker = L.marker([51.2, 7]).addTo(map);
|
||
|
|
||
|
var sidebar = L.control.sidebar('sidebar').addTo(map);
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|