version 3.0 of the theme -- complete overhaul
This commit is contained in:
@@ -4,16 +4,13 @@ $('#mysidebar').height($(".nav").height());
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
//this script says, if the height of the viewport is greater than 600px, then insert affix class, which makes the nav bar float in a fixed
|
||||
//this script says, if the height of the viewport is greater than 800px, then insert affix class, which makes the nav bar float in a fixed
|
||||
// position as your scroll. if you have a lot of nav items, this height may not work for you.
|
||||
{% unless site.floating_nav == "false" %}
|
||||
var h = $(window).height();
|
||||
console.log (h);
|
||||
if (h > 600) {
|
||||
$( "#mysidebar" ).attr("class", "nav affix");
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
if (h > 800) {
|
||||
$( "#mysidebar" ).attr("class", "nav affix");
|
||||
}
|
||||
// activate tooltips. although this is a bootstrap js function, it must be activated this way in your theme.
|
||||
$('[data-toggle="tooltip"]').tooltip({
|
||||
placement : 'top'
|
||||
@@ -53,3 +50,4 @@ $(function() {
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
7
js/lunr.min.js
vendored
Normal file
7
js/lunr.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
50
js/search.min.js
vendored
Normal file
50
js/search.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -5,7 +5,7 @@
|
||||
noBackToTopLinks: false,
|
||||
title: '',
|
||||
minimumHeaders: 3,
|
||||
headers: 'h1, h2, h3, h4, h5, h6',
|
||||
headers: 'h1, h2, h3, h4',
|
||||
listType: 'ol', // values: [ol|ul]
|
||||
showEffect: 'show', // values: [show|slideDown|fadeIn|none]
|
||||
showSpeed: 'slow' // set to 0 to deactivate effect
|
||||
|
||||
Reference in New Issue
Block a user