mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-23 02:27:13 +00:00
Fix jumpy navigation on click.
This commit is contained in:
parent
67152e0eed
commit
7b26bbff4d
3 changed files with 3 additions and 8 deletions
|
@ -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>'
|
||||
|
|
|
@ -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();
|
||||
|
|
2
assets/js/scripts.min.js
vendored
2
assets/js/scripts.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue