Kaspar Etter
2020-01-15 03:21:22 -05:00
committed by Eli Barzilay
parent 95f67429c6
commit 98169480bc
2 changed files with 14 additions and 3 deletions
+9
View File
@@ -14,3 +14,12 @@ const footerAnchors = new AnchorJS({
placement: 'right',
});
footerAnchors.remove('.links');
anchors.options = {
placement: 'left',
visible: 'always',
icon: '¶'
};
anchors.options.base = '/2019/1/03/my-post';
anchors.options.titleText = 'Click to directly link to this section.';
+5 -3
View File
@@ -1,4 +1,4 @@
// Type definitions for anchor-js 4.1
// Type definitions for anchor-js 4.2
// Project: https://github.com/bryanbraun/anchorjs
// Definitions by: Brian Surowiec <https://github.com/xt0rted>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -16,10 +16,12 @@ declare namespace anchorjs {
type AnchorVisibility = 'always' | 'hover' | 'touch';
interface AnchorOptions {
arialabel?: string;
ariaLabel?: string;
base?: string;
class?: string;
icons?: string;
icon?: string;
placement?: AnchorPlacement;
titleText?: string;
truncate?: number;
visible?: AnchorVisibility;
}