154 Commits

Author SHA1 Message Date
Tetrakern
c341c3ca64 Optimize lightbox 2023-07-01 16:45:58 +02:00
Tetrakern
f5c3023b1e Small code cleanup 2023-07-01 15:53:17 +02:00
Tetrakern
3d7860a885 Improve chapter arrow key nav 2023-06-28 10:55:34 +02:00
Tetrakern
087bcd8fb7 Improve tag guard clause for chapter arrow key nav 2023-06-28 10:54:05 +02:00
Tetrakern
da15355338 Add scroll to keyboard chapter navigation 2023-06-28 02:04:09 +02:00
Tetrakern
3398762ce8 Reenable keyboard chapter navigation 2023-06-27 22:04:31 +02:00
Tetrakern
bf487b3df4 Fix search input hint visibility on iOS 2023-06-26 12:36:28 +02:00
Tetrakern
3136b0ac1c Fix search track blur bug
It was impossible to click on a suggestion because the track was cleared before the track could be registered, resetting the suggestions.
2023-06-26 11:26:45 +02:00
Tetrakern
78981f1470 Fixed image reveal button in story comments 2023-06-21 20:12:55 +02:00
Tetrakern
ca5315f183 Add/remove mobile menu content on demand 2023-06-20 18:02:24 +02:00
Tetrakern
d4b3fcc89e Optimize page jump script
Hopefully lol
2023-06-20 01:45:06 +02:00
Tetrakern
43c707109a Fix page number jump for pg query var
Having to use so many is sure an annoyance. Yes, it it necessary.
2023-06-19 23:38:34 +02:00
Tetrakern
df0601c797 Optimize commend inline edit
Use template instead of putting the whole form into each comment.
2023-06-19 03:42:36 +02:00
Tetrakern
a17903aa70 Disable arrow navigation for now
This is currently too broad and would, for example, also trigger if you use arrows keys to move the cursor in the comment textarea.
2023-06-18 22:06:33 +02:00
Tetrakern
77063e043f Replace all admin inline onclick handlers 2023-06-18 04:10:39 +02:00
Tetrakern
41909556e5 Replace all frontend inline onclick handlers 2023-06-18 03:28:44 +02:00
Tetrakern
500ef9450e Replace inline onclick sharing modal link copy 2023-06-18 00:44:31 +02:00
Tetrakern
8985f55155 Fix story comments load button 2023-06-18 00:44:05 +02:00
Tetrakern
794f87dfd4 Replace inline onclick bookshelf handlers 2023-06-18 00:35:53 +02:00
Tetrakern
ff08034e2d Replace inline onclick comment page handler 2023-06-17 23:49:38 +02:00
Tetrakern
09ca5ebfe5 Replace inline onclick obfuscation handler 2023-06-17 23:33:08 +02:00
Tetrakern
40c65a89a5 Replace inline onclick logout handler 2023-06-17 23:21:02 +02:00
Tetrakern
a614c1cf8d Replace inline onclick to reveal comment images 2023-06-17 22:12:06 +02:00
Tetrakern
2e6bd2c7eb Replace inline onclick to get story comments 2023-06-17 20:51:55 +02:00
Tetrakern
2c1854aaed Make story comment paragraph links work 2023-06-17 18:56:51 +02:00
Tetrakern
5066aa19e7 Add smooth scrolling to all page anchors 2023-06-17 10:49:18 +02:00
Tetrakern
abd190c3c8 Remove obsolete code 2023-06-17 00:53:27 +02:00
Tetrakern
4d7a9ce4d6 Use delegate click handler for BBCodes
Sometimes I wonder why I previously did things the way I did. But then I remember that I build all of that myself in crunch mode without getting payed.
2023-06-17 00:36:58 +02:00
Tetrakern
4153f90dbd Track *.rAF events separately
TBH this probably did not interfere due to there only being two such custom events registered that never occur simultaneously, but I rather have this properly just in case. Also, "running" was a bit generic for a global variable name.
2023-06-16 20:32:12 +02:00
Tetrakern
e59e619a3b Fix and improve removal of last-clicked class 2023-06-16 14:36:14 +02:00
Tetrakern
3af38421af Add keyboard navigation to chapters 2023-06-16 12:11:44 +02:00
Tetrakern
b34bb3b8ef Reduce tts.js 2023-06-15 22:59:59 +02:00
Tetrakern
d9ec7f57dd Add constant to customize TTS regex
This should make it possible to use languages with different characters. Maybe.
2023-06-15 14:18:52 +02:00
Tetrakern
ceb04b583a Improved TTS sentence split
Well, tests have all worked well but this is still a bit uncertain. Also, not sure whether Chrome can now handle more than 300 characters at once.
2023-06-15 13:49:29 +02:00
Tetrakern
2ee0d87c6c Improved scroll-to utility and use 2023-06-15 13:21:24 +02:00
Tetrakern
4e857dfe79 Remove deprecated property
Why did I even use that?
2023-06-15 13:11:15 +02:00
Tetrakern
6a3393f403 Reduce collision script
Well, somewhat.
2023-06-15 13:08:29 +02:00
Tetrakern
c282e9a1d5 Improve "last clicked" precision
Probably.
2023-06-14 21:47:37 +02:00
Tetrakern
c439ec6f40 Increase consent banner delay
Apparently, 1 second was not enough.
2023-06-14 16:10:41 +02:00
Tetrakern
c643127f53 Use arrow functions in timeouts 2023-06-14 16:00:01 +02:00
Tetrakern
f87cc38817 Add delay to consent banner
Avoid impacting web vitals.
2023-06-14 15:58:37 +02:00
Tetrakern
6cc22dbb7c Fix edit/delete comment buttons 2023-06-13 01:14:17 +02:00
Tetrakern
d379d2a9ca Clean up utility.js 2023-06-12 22:54:26 +02:00
Tetrakern
0abfbba062 Clean up user.js 2023-06-12 22:47:16 +02:00
Tetrakern
e19d24c555 Clean up user-profile.js 2023-06-12 22:45:42 +02:00
Tetrakern
7dcb1d5f99 Clean up tts.js 2023-06-12 22:41:24 +02:00
Tetrakern
8469ab6f94 Clean up, fix, and improve suggestion.js
Modal toggle did not work. Oh well~
2023-06-12 22:35:39 +02:00
Tetrakern
986eedda09 Clean up story.js 2023-06-12 22:10:28 +02:00
Tetrakern
c54e98b1e7 Back to local storage
Session storage just cannot be properly cleared site-wide, which is actually worse in terms of security if you log out and leave another tab open.
2023-06-12 22:08:30 +02:00
Tetrakern
e194f09547 Change web storage type and add note
Follows, Reminders, and Checkmarks may be out of sync for a minute in another tab or window if recently loaded since we cannot clear the session storage there. This is an extremely minor issue since it will fix itself after the cache times out.
2023-06-12 21:49:39 +02:00