mirror of
https://github.com/adulau/brouilleursdeblanc.git
synced 2024-11-23 10:37:10 +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
|
// Simple Jekyll Search options
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('.search-field').simpleJekyllSearch({
|
$('.search-field').simpleJekyllSearch({
|
||||||
|
jsonFile : 'search.json',
|
||||||
searchResults : '.search-results',
|
searchResults : '.search-results',
|
||||||
template : '<li><article><a href="{url}">{title} <span class="entry-date"><time datetime="{date}">{shortdate}</time></span></a></article></li>',
|
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>'
|
noResults: '<p>Nothing found.</p>'
|
||||||
|
|
|
@ -206,13 +206,7 @@ var responsiveNav = (function (window, document) {
|
||||||
addClass(nav, "closed");
|
addClass(nav, "closed");
|
||||||
setAttributes(nav, {"aria-hidden": "true"});
|
setAttributes(nav, {"aria-hidden": "true"});
|
||||||
|
|
||||||
if (opts.animate) {
|
|
||||||
setTimeout(function () {
|
|
||||||
nav.style.position = "absolute";
|
|
||||||
}, opts.transition + 10);
|
|
||||||
} else {
|
|
||||||
nav.style.position = "absolute";
|
|
||||||
}
|
|
||||||
|
|
||||||
navOpen = false;
|
navOpen = false;
|
||||||
opts.close();
|
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