Skip to content

Commit 50ce59b

Browse files
refactor: remove unused JS state variables (sidebarOpen, currentFontSize)
1 parent 2f4732c commit 50ce59b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

index.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21662,10 +21662,6 @@ <h2>Download Other Formats</h2>
2166221662
</button>
2166321663

2166421664
<script>
21665-
// State management
21666-
let sidebarOpen = window.innerWidth > 1024;
21667-
let currentFontSize = 'medium';
21668-
2166921665
// Initialize
2167021666
document.addEventListener('DOMContentLoaded', function() {
2167121667
initializeApp();
@@ -21740,7 +21736,6 @@ <h2>Download Other Formats</h2>
2174021736

2174121737
sidebar.classList.toggle('open');
2174221738
mainContent.classList.toggle('sidebar-open');
21743-
sidebarOpen = sidebar.classList.contains('open');
2174421739
}
2174521740

2174621741
// Reading progress
@@ -21793,7 +21788,6 @@ <h2>Download Other Formats</h2>
2179321788
const body = document.body;
2179421789
body.classList.remove('font-small', 'font-medium', 'font-large');
2179521790
body.classList.add('font-' + size);
21796-
currentFontSize = size;
2179721791

2179821792
// Update button states
2179921793
document.querySelectorAll('.font-size-btn').forEach(btn => {

0 commit comments

Comments
 (0)