62 Commits

Author SHA1 Message Date
Tetrakern
6b907f5079 Fix checkmarks initialization 2024-12-30 06:11:00 +01:00
Tetrakern
f5e0188c1f
Add Stimulus (#65) 2024-12-06 17:38:32 +01:00
Tetrakern
12ee20cde4 Make quote partial prefix/suffix translatable 2024-11-28 16:25:30 +01:00
Tetrakern
752f8defa0 Add protocol to link copy 2024-11-18 14:31:15 +01:00
Tetrakern
15131f9bf8 Fix current chapter mark in chapter index modal 2024-10-18 16:13:35 +02:00
Tetrakern
e1855d85f1 Refactor chapter index into modal
And then some.
2024-10-18 16:01:48 +02:00
Tetrakern
6249bdd605 Remove chapter-list-data script after setup 2024-10-18 01:18:13 +02:00
Tetrakern
eb988ac551 Improve chapter index menu 2024-10-18 00:55:58 +02:00
Tetrakern
3c01b7bd0f Remove inline storage 2024-10-13 01:49:50 +02:00
Tetrakern
3812b91110 Update chapter progress calculation 2024-08-31 23:54:22 +02:00
Tetrakern
7d462d5fba Prevent paragraph tools from triggering on links, buttons, etc. 2024-08-18 12:31:57 +02:00
Tetrakern
39feb07b98 Do not toggle paragraph tools on empty paragraphs 2024-08-07 16:40:11 +02:00
Tetrakern
29ce069030 Add skip-tools utility CSS class 2024-06-01 19:53:03 +02:00
Tetrakern
ee8815f445 Let paragraph tools ignore popup toggles inside 2024-06-01 19:46:09 +02:00
Tetrakern
c604705afe Add function reference for chapter keyboard navigation 2024-05-11 15:34:14 +02:00
Tetrakern
caa3f37839 Remove uses of hasOwnProperty 2024-05-02 20:35:59 +02:00
Tetrakern
eab325c2e7 Account for different content elements in comment form
Textarea and div, which should be enough.
2024-04-24 19:42:17 +02:00
Tetrakern
b65fb51c3c Prepare scripts for custom comment form selector 2024-04-24 17:20:09 +02:00
Tetrakern
c9f2f0b45e Fix chapter auto-checkmark not working 2024-04-11 00:09:43 +02:00
Tetrakern
d08957a0a2 Add script execution preconditions
In case these scripts are loaded somewhere they are not needed.
2024-03-09 19:19:19 +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
8bab5329cb Use ** exponentiation operator 2024-03-07 14:43:50 +01:00
Tetrakern
f52d1bce07 Add customizer font saturation options 2024-02-25 17:33:12 +01:00
Tetrakern
2c88423757 Prepare scripts and styles for font-saturation-offset 2024-02-25 16:28:38 +01:00
Tetrakern
49478efc77 Add filter to change default chapter formatting 2024-02-16 17:47:14 +01:00
Tetrakern
83e0ca217d Apply new font system 2024-02-07 16:40:14 +01:00
Tetrakern
a591e20a52 Clean up and optimize more JS 2 2024-02-03 13:14:57 +01:00
Tetrakern
2187497301 Put some chapter formatting options into IIFE 2024-01-31 19:45:50 +01:00
Tetrakern
b056fa9c16 Fix undefined element error 2024-01-31 15:13:05 +01:00
Tetrakern
02e3a2e7b1 Refactor chapter formatting toggles 2024-01-31 14:41:09 +01:00
Tetrakern
14424669b6 Update handling of aria-checked
And remove last inline onchange call.
2024-01-31 13:25:02 +01:00
Tetrakern
fae2dda4db Allow multiple chapter index buttons 2024-01-27 18:27:48 +01:00
Tetrakern
6fb6042e2e Make chapter list popup script more generic
Now uses querySelectorAll, so you could have more than one. Currently not the case, though.
2024-01-15 21:20:28 +01:00
Tetrakern
d178ea792e Generalize chapter infobox hide script 2024-01-03 17:55:08 +01:00
Tetrakern
048e705a51 Add observer to comment form
And optimize some other comment things.
2023-08-27 14:01:55 +02:00
Tetrakern
d145067b89 Add fcn_parseJSON() JS helper 2023-08-27 12:00:32 +02:00
Tetrakern
bde81346f8 Use innerText instead of innerHTML
For quotes and suggestions.
2023-07-29 03:02:23 +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
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
abd190c3c8 Remove obsolete code 2023-06-17 00:53:27 +02:00
Tetrakern
3af38421af Add keyboard navigation to chapters 2023-06-16 12:11:44 +02:00
Tetrakern
13d0f2870a Cleanup chapter.js 2023-06-12 19:08:17 +02:00
Tetrakern
c774810973 Improve handling of chapter lists
In chapters.
2023-06-03 17:17:33 +02:00
Tetrakern
e19b2eb99e Optimize chapter list in chapters
Search engines do not track hidden links anyway, so the permalinks were reduced to "/?p=ID" to save bytes. Quite a lot if a story has many chapters.
2023-06-03 15:16:29 +02:00
Tetrakern
cd74d3a208 Add chapter list popup menu to chapters
So you can read chapters while you read chapters.
2023-06-03 14:06:48 +02:00
Tetrakern
7ee5548d36 Click outside closes paragraph tools
I'm 99% sure this function already existed once. I wonder where it went...
2023-06-03 13:54:13 +02:00
Tetrakern
c1a93ad0b8 Change CSS font variable names to --ff-*
Because apparently Jetpack just hogs "--font-base" and unsets it, breaking the theme.
2023-02-28 14:04:57 +01:00