24 Commits

Author SHA1 Message Date
Tetrakern
1500fcab43 Fix mobile menu toggle with bookmarks disabled 2024-12-28 17:16:50 +01:00
Tetrakern
f5e0188c1f
Add Stimulus (#65) 2024-12-06 17:38:32 +01:00
Tetrakern
eb988ac551 Improve chapter index menu 2024-10-18 00:55:58 +02:00
Tetrakern
1a814ac0a8 Remove mobile menu copy/paste shenanigans
Copying the main nav into the mobile nav to reduce the page load might technically make sense, but the trouble vastly outweighs the benefit.
2024-06-12 12:16:52 +02:00
Tetrakern
3c0113b7c2 Fix nav background vanishing in advanced mobile menu 2024-05-28 14:20:29 +02:00
Tetrakern
f86abd070a Refactor mobile menu jump buttons 2024-02-04 14:27:40 +01:00
Tetrakern
64201d9681 Clean up and optimize more JS 3 2024-02-03 16:56:38 +01:00
Tetrakern
8f45c06fe2 Add optional alternative mobile menu style 2024-01-11 14:18:17 +01:00
Tetrakern
818a95e895 Make anchor links less jarring 2023-08-27 15:41:57 +02:00
Tetrakern
cb87988e8f Fix mobile menu buttons 2023-08-27 01:45:57 +02:00
Tetrakern
b355b90ba4 Fix scroll reset when opening mobile menu
This used to work and now it did not.
2023-08-26 16:46:15 +02:00
Tetrakern
b9f40aeddb More control over nav menu rendering
Constant to turn off the Transient and safety checks whether the menu exists.
2023-08-23 22:02:12 +02:00
Tetrakern
49583e2938 Use safer data attribute for menu cloning
Just in case someone adds a filter and changed a bunch of things.
2023-08-23 12:33:04 +02:00
Tetrakern
eb45cb589e Fix mobile menu cloning more
F*ck^2
2023-08-23 01:59:33 +02:00
Tetrakern
49bbc28a17 Fix mobile menu cloning
F*ck.
2023-08-23 01:38:30 +02:00
Tetrakern
a70a80875e Clone main nav into mobile nav
Probably won't save queries, but it does save some microseconds render time! Yay?
2023-08-04 10:21:06 +02:00
Tetrakern
ca5315f183 Add/remove mobile menu content on demand 2023-06-20 18:02:24 +02:00
Tetrakern
c643127f53 Use arrow functions in timeouts 2023-06-14 16:00:01 +02:00
Tetrakern
94f2110402 Clean up mobile-menu.js 2023-06-12 21:39:58 +02:00
Tetrakern
c35ea2a5ad Refactored mobile menu
That. Was. Not. Fun!
2023-06-11 01:17:04 +02:00
Tetrakern
c774810973 Improve handling of chapter lists
In chapters.
2023-06-03 17:17:33 +02:00
Tetrakern
eb1e5412ad Script safety checks for missing targets 2023-01-28 21:29:46 +01:00
Tetrakern
1126c4794a Change event listener syntax for mobile menu close 2023-01-24 04:20:07 +01:00
Tetrakern
9136947e4c Clean history for public release 2023-01-21 01:31:34 +01:00