mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-14 20:54:16 +01:00
docs: regenerate, include docfx config
This commit is contained in:
parent
6e486d0cea
commit
c59f53db2f
384 changed files with 248388 additions and 1052 deletions
|
|
@ -434,20 +434,29 @@ $(function () {
|
|||
}
|
||||
|
||||
function registerTocEvents() {
|
||||
var tocFilterInput = $('#toc_filter_input');
|
||||
var tocFilterClearButton = $('#toc_filter_clear');
|
||||
|
||||
$('.toc .nav > li > .expand-stub').click(function (e) {
|
||||
$(e.target).parent().toggleClass(expanded);
|
||||
});
|
||||
$('.toc .nav > li > .expand-stub + a:not([href])').click(function (e) {
|
||||
$(e.target).parent().toggleClass(expanded);
|
||||
});
|
||||
$('#toc_filter_input').on('input', function (e) {
|
||||
tocFilterInput.on('input', function (e) {
|
||||
var val = this.value;
|
||||
//Save filter string to local session storage
|
||||
if (typeof(Storage) !== "undefined") {
|
||||
sessionStorage.filterString = val;
|
||||
}
|
||||
if (val === '') {
|
||||
// Clear 'filtered' class
|
||||
$('#toc li').removeClass(filtered).removeClass(hide);
|
||||
tocFilterClearButton.fadeOut();
|
||||
return;
|
||||
}
|
||||
|
||||
tocFilterClearButton.fadeIn();
|
||||
|
||||
// Get leaf nodes
|
||||
$('#toc li>a').filter(function (i, e) {
|
||||
return $(e).siblings().length === 0
|
||||
|
|
@ -488,6 +497,22 @@ $(function () {
|
|||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
// toc filter clear button
|
||||
tocFilterClearButton.hide();
|
||||
tocFilterClearButton.on("click", function(e){
|
||||
tocFilterInput.val("");
|
||||
tocFilterInput.trigger('input');
|
||||
if (typeof(Storage) !== "undefined") {
|
||||
sessionStorage.filterString = "";
|
||||
}
|
||||
});
|
||||
|
||||
//Set toc filter from local session storage on page load
|
||||
if (typeof(Storage) !== "undefined") {
|
||||
tocFilterInput.val(sessionStorage.filterString);
|
||||
tocFilterInput.trigger('input');
|
||||
}
|
||||
}
|
||||
|
||||
function loadToc() {
|
||||
|
|
@ -1136,8 +1161,15 @@ $(function () {
|
|||
}
|
||||
|
||||
$(window).on('hashchange', scrollToCurrent);
|
||||
// Exclude tabbed content case
|
||||
$('a:not([data-tab])').click(delegateAnchors);
|
||||
scrollToCurrent();
|
||||
|
||||
$(window).load(function () {
|
||||
// scroll to the anchor if present, offset by the header
|
||||
scrollToCurrent();
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
// Exclude tabbed content case
|
||||
$('a:not([data-tab])').click(function (e) { delegateAnchors(e); });
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue