From f96c3f71f6c8be30a333fcce69b4d1896953aab2 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sun, 28 Aug 2022 11:42:19 -0400 Subject: [i-love-my-pinephone] Final cut + publish --- haunt/static/js/section-folds.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'haunt/static/js') 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; -- cgit v1.3