1(function ($, Drupal, drupalSettings, once) { 2 Drupal.behaviors.inPageNav = { 3 attach: function (context, settings) { 4 once('inPageNavInit', ".link--smooth-scroll", context).forEach(function (item) { 5 var adminHeight = parseInt($('body').css('paddingTop')) || 0; 6 var anchorDestination = this.hash; 7 e.preventDefault(); 8 $('html, body').animate({ 9 //scrollTop: $($(this).attr("href")).offset().top 10 scrollTop: $(anchorDestination).offset().top - drupalSettings.corporate_lite.inPageNavigation.inPageNavigationOffset - adminHeight 11 }, 1000); 12 if (history.pushState) { 13 history.pushState(null, null, anchorDestination); 14 } else { 15 location.hash = anchorDestination; 16 } 17 }); 18 19 } 20 }; 21})(jQuery, Drupal, drupalSettings, once);
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.