isn't it crazy that i got to the end of making this button and then someone said "oh you know the browser back button saves anchor history already right?"

This commit is contained in:
Juicysteak117
2025-10-26 17:25:28 -07:00
parent 67204fbb95
commit 396a50830f
6 changed files with 632 additions and 537 deletions

11
soup.py
View File

@@ -48,8 +48,15 @@ toast = soup.new_tag (
string="Link Copied!"
)
# Prepend header and toc into body
soup.body.insert(0, toast, toggles, header, toc)
# add return to ref button
ref = soup.new_tag (
"div",
id="return",
title="Return to previous position"
)
# prepend bottom with all the silly stuff i add
soup.body.insert(0, toast, ref, toggles, header, toc)
# Add header info tags
# i don't know if there's a better way to do all of these in a batch but like eh w/e