Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
foodbank/app/root/_nav.kit
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
47 lines (34 sloc)
1.06 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="nav-main"> | |
<!-- Logo --> | |
<div class="logo-area"> | |
<h4 class="logo">Manage NAIP Categories</h4> | |
</div> | |
<!-- Links --> | |
<!-- Sign in/up Buttons --> | |
<!-- <div class="sign-in"> | |
<a ng-click="go('/login')" ng-show="!signedIn" class="waves-effect waves-light btn blue">Sign in</a> | |
<a ng-click="go('/login')" ng-show="signedIn" class="waves-effect waves-light btn">Sign out</a> | |
</div> --> | |
</div> | |
<div class="spacer"></div> | |
<script> | |
$('.profile-btn').sideNav({ | |
menuWidth: 260, // Default is 240 | |
edge: 'right', // Choose the horizontal origin | |
closeOnClick: true, // Closes side-nav on <a> clicks, useful for Angular/Meteor | |
draggable: true // Choose whether you can drag to open on touch screens | |
} | |
); | |
</script> | |
<script> | |
// TODO: make this on a per-page basis | |
$(document).scroll(function() { | |
var nav = $('.nav-main'); | |
var height = $(window).height(); | |
var scroll = $(document).scrollTop() | |
if (scroll < height/2) | |
nav.removeClass('scroll'); | |
else | |
nav.addClass('scroll'); | |
}); | |
</script> |