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
Tetrakern
021c54a2f3
Clean up reminders.js
2023-06-12 21:47:31 +02:00
Tetrakern
94f2110402
Clean up mobile-menu.js
2023-06-12 21:39:58 +02:00
Tetrakern
e7d3c0f923
Fix AJAX comment form events
...
That is why I tend to use inline JS events. Binding everything is such a chore.
2023-06-12 21:25:47 +02:00
Tetrakern
e57221142d
Cleanup lightbox.js
2023-06-12 20:41:27 +02:00
Tetrakern
682ed8b136
Cleaned up follows.js
2023-06-12 20:40:15 +02:00
Tetrakern
90c1f4921d
Clean up comments.js
2023-06-12 20:37:56 +02:00
Tetrakern
a6705035e9
Clean up checkmarks.js
2023-06-12 19:33:48 +02:00
Tetrakern
13d0f2870a
Cleanup chapter.js
2023-06-12 19:08:17 +02:00
Tetrakern
b8e1a97e16
Clean up bookmarks.js
2023-06-12 16:37:03 +02:00
Tetrakern
fa38772bc9
Clean up application.js
2023-06-12 16:12:10 +02:00
Tetrakern
3f8b882068
Prevent double prompt for page number dots
2023-06-12 15:48:20 +02:00
Tetrakern
3af8168dc2
Clean up ajax-comments.js
2023-06-12 15:47:35 +02:00
Tetrakern
81ee31c9fe
Clean up ajax-bookshelf.js
2023-06-12 14:45:30 +02:00
Tetrakern
137afd6ed4
Use session storage for temp page cache
...
Far better for this purpose. Also fixed deferred nonce not being cleared on time.
2023-06-12 11:41:31 +02:00
Tetrakern
3badca4c26
Remove superfluous catch and then
2023-06-12 10:16:30 +02:00
Tetrakern
5b39bbf0af
Reduce bookmarks JS
...
Also use the full link again because the relative one may have been short but did not work with URIs that include a path. Something that should not occur but one never knows.
2023-06-12 10:02:10 +02:00
Tetrakern
b8fefa3471
Do not stop TTS on page load
...
Readers might want to listen and browse, which this made impossible.
2023-06-11 22:20:24 +02:00
Tetrakern
c35ea2a5ad
Refactored mobile menu
...
That. Was. Not. Fun!
2023-06-11 01:17:04 +02:00
Tetrakern
a763bc0eb1
Refactor chapter lists
...
No more sibling or other exotic selectors.
2023-06-10 18:23:04 +02:00
Tetrakern
8cf01ca6a3
Remove sibling selectors from TTS
2023-06-10 03:00:07 +02:00
Tetrakern
6d3deb28fe
Remove las sibling selector from search
2023-06-10 01:11:44 +02:00
Tetrakern
08406b6fb6
Refactor follows/reminder/checkmark on cards
...
And removed the sibling selectors too.
2023-06-09 23:19:18 +02:00