alistair3149
508c96ae9d
refactor(core): merge ToC script into core scripts
2022-05-12 17:18:39 -04:00
alistair3149
e0d5eb9657
feat(core): set toc-enabled through Mustache template
...
Since somewhere around MW 1.37, buildSkinFeatures() no longer have access to OutputPage.
That causes $out->isTOCenabled always return null, which makes ToC
broken for any wikis since 1.37. This should fix the issue for now.
More optimizations on the loading behavior will come soon.
2022-05-12 17:01:01 -04:00
alistair3149
f9500dd304
fix: remove leftover console log
2021-04-21 15:10:16 -04:00
alistair3149
c5a2aaf9ec
refactor: convert skins.citizen.scripts.toc to ES6
2021-04-21 15:07:55 -04:00
alistair3149
3e217def6e
feat: rewrite ToC scrollspy
...
Remove legacy fallbacks and rewrite scrollspy using IntersectionObserver API
2021-04-02 15:42:56 -04:00
alistair3149
57ce5848ca
feat: add passive event listener to scrollspy
2021-03-15 12:42:55 -04:00
alistair3149
6273711f60
feat: improve scrollspy handling
...
Better support for non-latin language
Add throttle function
2021-03-13 22:34:15 -05:00
alistair3149
0746895e9b
fix: incorrect ToC scrollspy highlight
2021-03-08 15:02:20 -05:00
alistair3149
6d0612aafa
refactor: rename function to avoid shadowing
2021-01-05 19:39:15 -05:00
alistair3149
0398f5f9f6
Contain scripts inside functions
2020-08-12 12:59:57 -04:00
github-actions
57cf0cd5c8
Make a dinner reservation - MediaWiki CI
...
I clean up code to MediaWiki standards
2020-07-05 21:07:36 +00:00
alistair3149
9045398201
Add documentation to Citizen scripts
2020-06-16 23:16:45 -04:00
alistair3149
6ba5f41470
Use module name for stylesheets and scripts
2020-06-16 23:03:28 -04:00