60 Commits

Author SHA1 Message Date
Tetrakern
e20976adb5 Fix text extraction utility and TTS 2024-12-21 23:39:42 +01:00
Tetrakern
f6d339b165 Reduce redundancy of Fetch API helpers 2024-12-11 20:02:48 +01:00
Tetrakern
496843bec4 Update Fetch responses and dev tools 2024-12-11 16:44:48 +01:00
Tetrakern
17320899af Reduce redundancy in FcnUtils 2024-12-09 16:34:31 +01:00
Tetrakern
dae49404af Optimize AJAX auth for guests
Only do one check, once. Login will clear the local data anyway.
2024-12-09 16:27:28 +01:00
Tetrakern
a864244ea0 Fix local user data reset 2024-12-09 07:00:22 +01:00
Tetrakern
bae43948c2 Fix AJAX authentication compatibility mode 2024-12-09 06:43:26 +01:00
Tetrakern
f5e0188c1f
Add Stimulus (#65) 2024-12-06 17:38:32 +01:00
Tetrakern
d169331627 Add custom CSS skins feature 2024-10-25 12:08:16 +02:00
Tetrakern
252ecd3715 Update theme login cookie 2024-10-24 17:13:19 +02:00
Tetrakern
6788bfb5d2 Add fictioneer logged-in cookie 2024-10-23 19:27:09 +02:00
Tetrakern
cf8ef67497 Improve fcn_sanitizeHTML() 2024-10-22 18:06:50 +02:00
Tetrakern
6d991dc717 Clean up error messages part 1 2024-10-12 16:37:11 +02:00
Tetrakern
a06b7e56b2 Fix and improve last click toggle script 2024-09-09 13:29:50 +02:00
Tetrakern
d627b65fa5 Close popup menu on navigation hover 2024-08-31 14:05:36 +02:00
Tetrakern
0e51a77ae2 Always output JS errors in console
Helps with debugging and is not secret anyway.
2024-06-26 15:12:25 +02:00
Tetrakern
b24e7b306c Improve popup menu positioning script 2024-06-01 19:20:09 +02:00
Tetrakern
20902e681c Consider horizontal screen collision for popup menu position 2024-05-15 15:07:42 +02:00
Tetrakern
b552d7a6ae Fix general nonce not always being used
Going just by the name attribute can result in the wrong one being queried if there are more than one on the page.
2024-03-29 15:42:41 +01:00
Tetrakern
e4de35c3de Remove wp.i18n JS script and uses
That just included several render-blocking scripts for little benefit.
2024-03-09 15:15:46 +01:00
Tetrakern
6fa94b9f3b Fix and improve SEO 2024-03-09 01:43:26 +01:00
Tetrakern
8bab5329cb Use ** exponentiation operator 2024-03-07 14:43:50 +01:00
Tetrakern
96fca5b2cc Move nonce plausibility check to backend 2024-02-04 03:06:11 +01:00
Tetrakern
6482bb689d Add JS check for nonce plausibility
This does not check whether a nonce is valid, only whether it looks like a valid nonce. Because some cache plugins can break nonces trying to insert them.
2024-02-04 00:44:59 +01:00
Tetrakern
6667b72249 Clean up obsolete JS 2024-02-02 23:11:45 +01:00
Tetrakern
14424669b6 Update handling of aria-checked
And remove last inline onchange call.
2024-01-31 13:25:02 +01:00
Tetrakern
cff3fb7798 Fix sometimes undefined variable in JS
Well, this was missing all the time, I wonder why it started to make problems NOW and only in some cases.
2024-01-24 21:57:37 +01:00
Tetrakern
7301ee4484 Update theme nonce handling 2023-10-27 17:53:17 +02:00
Tetrakern
ede90f92fe Add splitList JS utility 2023-09-21 16:03:39 +02:00
Tetrakern
817459bcde Fix fcn_ariaCheckedUpdate()
So, apparently that never worked in Firefox...
2023-08-31 18:37:20 +02:00
Tetrakern
020b29bec5 Cleanup 2023-08-27 19:54:42 +02:00
Tetrakern
b1e6ffc700 Refactor AJAX user authentication 2023-08-27 12:29:24 +02:00
Tetrakern
d145067b89 Add fcn_parseJSON() JS helper 2023-08-27 12:00:32 +02:00
Tetrakern
c4181c6695 Refactor fingerprint 2023-08-27 00:16:43 +02:00
Tetrakern
662e78bf5b Start using REST API; story comments
At least for everything that cannot use the fast AJAX, which is still superior.
2023-08-21 21:32:52 +02:00
Tetrakern
a28335cf06 Improve AJAX comment error messages 2023-08-06 00:14:10 +02:00
Tetrakern
95e59f2500 Generate HTML templates in JS 2023-07-02 01:04:03 +02:00
Tetrakern
5066aa19e7 Add smooth scrolling to all page anchors 2023-06-17 10:49:18 +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
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
d379d2a9ca Clean up utility.js 2023-06-12 22:54:26 +02:00
Tetrakern
94f2110402 Clean up mobile-menu.js 2023-06-12 21:39:58 +02:00
Tetrakern
919206f3cd Fix last-clicked
lol
2023-06-09 22:10:10 +02:00
Tetrakern
7bfc0c9a32 Extend last-clicked script
Can now also mark a parent element with watch-last-clicked.
2023-06-09 21:50:29 +02:00
Tetrakern
64bb7653fc Use global handler for some click events
Gets around the problem with AJAX content that needs events to be rebound.
2023-06-09 11:30:31 +02:00
Tetrakern
4cd4ddf047 Improve popup menu screen collision detection 2023-06-03 11:38:29 +02:00