PageSourceSearch

https://www.fidelity.com/bin-public/060_www_fidelity_com/js/lc-redesign/lc-toc.js

js fidelity.com collected 2026-09-24 08:59:22 UTC 1,811 bytes, 41 lines download raw bytes

1lcTOC = {
2    lcPopMenu: function (elem, callback) {
3        var lcTitleOld = new Array();
4        for (var i = 0; i < elem.length; ++i) {
5            lcTitleOld.push(elem[i].innerHTML);
6            elem[i].parentNode.replaceChild(document.createElement(elem.lcWrapElem), elem[i]);
7        }
8        lcTOC.lcMenus = document.querySelectorAll(elem.lcWrapElem);
9        for (var i = 0; i < lcTOC.lcMenus.length; ++i) {
10            if(lcTOC.lcMenus[i].nextElementSibling != null) {
11                var lcList = lcTOC.lcMenus[i].nextElementSibling;
12                lcList.parentNode.insertBefore(lcTOC.lcMenus[i], lcList);
13                lcTOC.lcMenus[i].appendChild(lcList);
14                lcTOC.lcMenus[i].setAttribute('title', lcTitleOld[i]);
15                lcTOC.lcMenus[i].setAttribute(lcTOC.lcElemToWrap.lcWrapAnim, lcTOC.lcElemToWrap.animation);
16            }
17        }
18        lcTOC.lcTOCContainer.style.display = "block";
19        callback();
20    },
21    lcActivateLink: function (linkToActivate) {
22        for (var l = 0; l < linkToActivate.length; l++) {
23            if (linkToActivate[l].getAttribute('href') == location.pathname) {
24                linkToActivate[l].parentNode.parentNode.parentNode.setAttribute('expanded', 'true');
25            }
26        }
27    }
28}
29lcTOC.lcTOCContainer = document.querySelector('nav.toc');
30lcTOC.lcElemToWrap = document.querySelectorAll('.toc--header');
31lcTOC.lcLinkToActivate = document.querySelectorAll('.toc--sub-menu-list-item a');
32lcTOC.lcElemToWrap.animation = 'true';
33lcTOC.lcElemToWrap.lcWrapElem = 'pvd-expand-collapse';
34lcTOC.lcElemToWrap.lcWrapTitle = 'title';
35lcTOC.lcElemToWrap.lcWrapAnim = 'animate';
36
37if(lcTOC.lcTOCContainer != null) {
38    lcTOC.lcPopMenu(lcTOC.lcElemToWrap, function () {
39        lcTOC.lcActivateLink(lcTOC.lcLinkToActivate);
40    });
41}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.