Skip to content

Commit

Permalink
Left side bar for help text. Ticket: #17
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersea committed Dec 18, 2013
1 parent 3a5c5b0 commit ab5fa3a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
10 changes: 9 additions & 1 deletion css/bbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ html, body, #map {

#map-ui-proj {
position: absolute;
top: 390px;
top: 420px;
left: 10px;
list-style: none;
margin: 0;
Expand Down Expand Up @@ -218,6 +218,14 @@ html, body, #map {
background-position: -63px -2px;
}

#help a.enabled {
background-position: -342px -2px;
}

#help a {
background-position: -93px -2px;
}

.zeroclipboard-is-hover {
opacity:1 !important;
}
Expand Down
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<ul id="map-ui">
<li id="create-geojson"><a title="Enter coordinates"></a></li>
<li id="geolocation"><a class="active" title="My location"></a></li>
<li id="help"><a title="Help"></a></li>
</ul>
<div id="map"></div>
<div id="rsidebar" >
Expand All @@ -41,6 +42,7 @@
<textarea placeholder="Paste GeoJSON, WKT, ogrinfo extent output or a bbox in the format (xMin,yMin,xMax,yMax)" title="Paste It!"></textarea>
</div>
<div id="lsidebar">
<textarea readonly placeholder="Looking for a little help?" title="Help Me"></textarea>
</div>

<section id="info-box">
Expand Down
11 changes: 11 additions & 0 deletions js/bbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,17 @@ $(document).ready(function() {
$('#create-geojson a').toggleClass('enabled');
});

// handle help button click events
$('#help').click(function(){
lsidebar.toggle();
$('#help a').toggleClass('enabled');
});
// close left sidebar with leaflet's "X"
$('.left a.close').click(function(){
$('#help a').toggleClass('enabled');
});


// toggle #info-box
$('#info-toggle-button').click(function(){
$('#wgslabel, #projlabel').fadeToggle(200);
Expand Down

0 comments on commit ab5fa3a

Please sign in to comment.