PageSourceSearch

https://agafalcon.com/themes/custom/corporateplus/js/custom/in-page-navigation-scroll.js?v=10.1.6

js agafalcon.com collected 2026-10-10 01:29:14 UTC 843 bytes, 22 lines download raw bytes

1(function ($, Drupal, drupalSettings) {
2  Drupal.behaviors.inPageNav = {
3    attach: function (context) {
4      // Use once utility to select elements with 'inPageNavInit'.
5      const $links = $(once('inPageNavInit', '.link--smooth-scroll', context));
6
7      $links.click(function (e) {
8        var adminHeight = parseInt($('body').css('paddingTop')) || 0;
9        var anchorDestination = this.hash;
10        e.preventDefault();
11        $('html, body').animate({
12          scrollTop: $(anchorDestination).offset().top - drupalSettings.corporateplus.inPageNavigation.inPageNavigationOffset - adminHeight
13        }, 1000);
14        if (history.pushState) {
15          history.pushState(null, null, anchorDestination);
16        } else {
17          location.hash = anchorDestination;
18        }
19      });
20    }
21  };
22})(jQuery, Drupal, drupalSettings);

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.