diff options
| author | Jakob L. Kreuze | 2022-08-28 11:42:19 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze | 2022-08-28 11:43:08 -0400 |
| commit | f96c3f71f6c8be30a333fcce69b4d1896953aab2 (patch) | |
| tree | d10f378e226d5c81c6172faa65082852154b79c7 /haunt/static/js/section-folds.js | |
| parent | 6e029ff9edb5ceb55de6ac1fa3c9cb66e13e71db (diff) | |
[i-love-my-pinephone] Final cut + publish
Diffstat (limited to 'haunt/static/js/section-folds.js')
| -rw-r--r-- | haunt/static/js/section-folds.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/haunt/static/js/section-folds.js b/haunt/static/js/section-folds.js index ed6507e..559dd9a 100644 --- a/haunt/static/js/section-folds.js +++ b/haunt/static/js/section-folds.js @@ -40,10 +40,9 @@ function handleFolds() { // The text will be inside of an anchor, which we'll hook onto using an // event listener. let foldAnchor = document.createElement("a"); - foldAnchor.href = "#"; let foldText = document.createElement("p"); foldAnchor.appendChild(foldText); - fold.parentNode.insertBefore(foldAnchor, fold); + fold.parentNode.insertBefore(foldAnchor, fold.nextSibling); // The fold will start off in the "hidden" state. let toggle = false; |