Fix jumpy navigation on click.

This commit is contained in:
Michael Rose 2013-09-11 16:08:29 -04:00
parent 67152e0eed
commit 7b26bbff4d
3 changed files with 3 additions and 8 deletions

View file

@ -31,6 +31,7 @@ $(function() {
// Simple Jekyll Search options
$(document).ready(function() {
$('.search-field').simpleJekyllSearch({
jsonFile : 'search.json',
searchResults : '.search-results',
template : '<li><article><a href="{url}">{title} <span class="entry-date"><time datetime="{date}">{shortdate}</time></span></a></article></li>',
noResults: '<p>Nothing found.</p>'

View file

@ -206,13 +206,7 @@ var responsiveNav = (function (window, document) {
addClass(nav, "closed");
setAttributes(nav, {"aria-hidden": "true"});
if (opts.animate) {
setTimeout(function () {
nav.style.position = "absolute";
}, opts.transition + 10);
} else {
nav.style.position = "absolute";
}
navOpen = false;
opts.close();

File diff suppressed because one or more lines are too long