Skip to content

Commit

Permalink
Add demo for disabled top bar
Browse files Browse the repository at this point in the history
  • Loading branch information
benitolopez committed Dec 8, 2017
1 parent 775de8e commit 1de5b2b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,21 @@ <h3>Demo</h3>
</pre>
</div>
</div>

<div class="demo__item">
<div class="demo__input">
<input type="text" id="demo16" value="">
</div>
<p class="demo__description">Don't show the top bar</p>
<div class="demo__config">
<pre>
var input = document.getElementById('input-id');
var datepicker = new HotelDatepicker(input, {
showTopbar: false
});
</pre>
</div>
</div>
</div>

<footer class="site__footer">
Expand Down Expand Up @@ -483,6 +498,12 @@ <h3>Demo</h3>
destroyButton.textContent = "Destroy";
}
}

// ------------------- DEMO 16 ------------------- //

var demo16 = new HotelDatepicker(document.getElementById('demo16'), {
showTopbar: false
});
})();
</script>
</body>
Expand Down

0 comments on commit 1de5b2b

Please sign in to comment.