Skip to content

Commit

Permalink
[#118543823] Adds sidenav on mobile display
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Gichuri committed Apr 29, 2016
1 parent eef450d commit a614a2f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
<nav>
<div class="nav-wrapper #ff4081 pink darken-4">
<a id="font" href="#" class="brand-logo">RegisterAPP</a>
<a href="#" data-activates="nav-side" class="button-collapse"><i class="material-icons">menu</i></a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a id="get-started">GET STARTED</a></li>
<li><a class="get-started">GET STARTED</a></li>
</ul>
<ul id="nav-side" class="side-nav">
<li><a id="get-started">GET STARTED</a></li>
<li><a class="get-started">GET STARTED</a></li>
</ul>
</div>
</nav>
Expand Down
10 changes: 8 additions & 2 deletions public/js/script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
$(function () {

$(".button-collapse").sideNav();

// GET function
$(document).on('click', '#get-button', function() {
$.ajax({
Expand Down Expand Up @@ -65,9 +68,12 @@ $(function () {
});

// GET STARTED button function
$('#get-started').on('click', function() {
$('.get-started').on('click', function() {
$('#o').fadeOut();
$('#p').show();
$('#get-started').text('');
$('.get-started').text('');
$('#nav-side').hide();
$('#sidenav-overlay').hide();
$('.button-collapse').hide();
});
});

0 comments on commit a614a2f

Please sign in to comment.