From a801db7594adfd8a9f9f1606166c476bd6749203 Mon Sep 17 00:00:00 2001 From: Juicysteak117 <20595808+Juicysteak117@users.noreply.github.com> Date: Thu, 16 Oct 2025 21:46:57 -0700 Subject: [PATCH] she soups.... she scores!!! --- soup.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/soup.py b/soup.py index d0a3734..9056160 100644 --- a/soup.py +++ b/soup.py @@ -15,6 +15,21 @@ menu = soup.new_tag( header = soup.new_tag('div', **{'class':'header'}) header.append(menu) +# Create toggle buttons, header, and nest +toggles = soup.new_tag('div', **{'class':'togglebuttons'}) +menu = soup.new_tag( + 'button', + id='theme-toggle', + string='☀', +) +toggles.append(menu) +menu = soup.new_tag( + 'button', + id='font-toggle', + string='Aa', +) +toggles.append(menu) + # Extract nav toc = soup.body.find('div', class_='ltx_page_main').nav.extract() @@ -34,7 +49,7 @@ toast = soup.new_tag ( ) # Prepend header and toc into body -soup.body.insert(0, toast, header, toc) +soup.body.insert(0, toast, 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