mediawiki-skins-Vector/resources/skins.vector.es6
Nicholas Ray 17433b63fc Add hash fragment support to table of contents
Per T325086, the TOC should expand and activate the section that corresponds to
the window's hash fragment.

Additional changes:

* Moves logic  that runs on page load to determine the
intersection from section observer to main.js, since the hash fragment can
take precedence over the scroll position (e.g. when scrolled all the way to the
bottom).

* Make section observer's pause() cancel any pending intersection calculations
so that it doesn't interfere with other async logic.

* Moves onHeadingClick and onToggleClick logic to activate and expand a section
to tableOfContents.js to facilitate unit testing this behavior with clicks and
hash fragment changes.

Bug: T325086
Change-Id: I8a2cf0e6a96467fae97608450b321c181155e424
2023-03-09 00:33:37 -07:00
..
images Move limitedWidthToggle.js and features.js to skins.vector.es6 module 2022-12-07 16:45:52 -07:00
.eslintrc.json Limit WVUI search to ES6 browsers 2022-02-09 22:10:11 +00:00
AB.js Sticky header AB test bucketing for 2 treatment buckets 2022-08-08 21:14:02 +00:00
config.json Make beginning bold on scroll 2022-03-25 01:13:42 +00:00
deferUntilFrame.js Fix TOC section activation on link click bug 2022-02-08 14:45:16 -07:00
features.js Additional FIXME cleanup relating to moving feature classes from body 2023-02-08 10:49:13 -06:00
limitedWidthToggle.js Fire a simluated window resize event when toggling limited width 2023-01-31 10:08:10 -06:00
limitedWidthToggle.less Moves feature classes from BODY element to HTML element 2023-01-24 18:22:13 -06:00
main.js Add hash fragment support to table of contents 2023-03-09 00:33:37 -07:00
pinnableElement.js Add setFocusToToggleButton function to pinnableElement.js 2023-02-01 14:31:53 -06:00
scrollObserver.js Cleanup: Remove unused TOC scroll hooks code 2023-02-22 16:00:33 +00:00
searchToggle.js Search: Use Codex and Vue 3 instead of WVUI and Vue 2. 2022-07-18 12:54:47 -07:00
sectionObserver.js Add hash fragment support to table of contents 2023-03-09 00:33:37 -07:00
stickyHeader.js Fix selector for add topic button 2023-03-06 22:50:11 +00:00
stickyHeaderAB.js Sticky header edit button A/B test bucketing (updated) 2022-05-31 15:58:35 -07:00
tableOfContents.js Add hash fragment support to table of contents 2023-03-09 00:33:37 -07:00
tableOfContentsConfig.json [ToC] Show new/modified sections after publishing an edit (new floating ToC) 2022-08-15 20:02:49 +00:00