Hide unstable items by default, provide checkbox for toggling
This commit is contained in:
@@ -52,4 +52,13 @@ $(function () {
|
||||
|
||||
$(window).on('resize', _onResize);
|
||||
_onResize();
|
||||
|
||||
// show/hide unstable items
|
||||
var unstable = $('.unstable');
|
||||
var stabilityToggle = $('#stability-toggle');
|
||||
stabilityToggle.change(function() {
|
||||
unstable.toggle(!this.checked);
|
||||
return false;
|
||||
});
|
||||
unstable.toggle(!stabilityToggle[0].checked);
|
||||
});
|
||||
@@ -372,3 +372,12 @@ footer {
|
||||
.main .readme table ul li {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.unstable {
|
||||
display: none;
|
||||
}
|
||||
#stability {
|
||||
color: white;
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
right: 8em;
|
||||
}
|
||||
|
||||
@@ -18,8 +18,11 @@
|
||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<div class="container">
|
||||
<a class="brand" href="/"><img src="../resources/logo.png"> OpenLayers 3</a>
|
||||
<a class="brand" href="/"><img src="../resources/logo.png" width="40"> OpenLayers 3</a>
|
||||
<a class="brand" href="index.html">API Documentation</a>
|
||||
<label id="stability">
|
||||
<input type="checkbox" id="stability-toggle" checked> Stable Only
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user