PageSourceSearch

https://www.peplink.com/_astro/wordpress-collapsible.js

js peplink.com collected 2026-09-24 08:55:37 UTC 1,025 bytes, 28 lines download raw bytes

1/* Generated by tools/wp-migration/sync-wordpress.ts — do not edit manually */
2/* https://www.peplink.com/wp-content/themes/Archive/scripts/collapsible.js?ver=1.0.0 */
3(function ($) {
4  function getUrlParams(id) {
5    return new URLSearchParams(window.location.search).get(id);
6  }
7
8  $(window).on('load', function () {
9    var hasAccordionWithAutoFocus =
10      $('.accordion-can-focus-on-item').length > 0;
11
12    if (hasAccordionWithAutoFocus && getUrlParams('focusedItem')) {
13      var focusedItemIndex = getUrlParams('focusedItem');
14      var $focusedItem = $('.accordion-can-focus-on-item').find(
15        `.accordion-list-item:nth-child(${focusedItemIndex})`
16      );
17      var mainMenuHeight = $('header .main-menu').outerHeight();
18
19      if ($focusedItem.length > 0) {
20        $([document.documentElement, document.body]).animate(
21          { scrollTop: $focusedItem.offset().top - mainMenuHeight },
22          500
23        );
24        $focusedItem.find('input[type="checkbox"]').click();
25      }
26    }
27  });
28})(jQuery);

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.