PageSourceSearch

https://www.navy.com/themes/custom/navycom/dist/js/mod_accordion_formatter.js?tlijf5

js navy.com collected 2026-09-24 09:12:02 UTC 1,053 bytes, 38 lines download raw bytes

1(function($) {
2  'use strict';
3  $(document).ready(function() {
4    $('.entity-ref-tab-formatter-accordion').each(function(){
5      var options = '';
6      options = $.extend({
7        collapsible: true,
8        active: false,
9        heightStyle: 'content'
10      }, options);
11      $(this).accordion(options);
12    });
13  });
14
15  $(document).ready(function() {
16    var url = new URL(window.location.href);
17    var c = url.searchParams.get("scroll");
18    if (c) {
19
20      var target = $('.field--name-field-sub-comp-accordion-title').filter(function(){
21        return $(this).text().toLowerCase().includes(c.replace('%20', ' '))
22      });
23
24      if (target) {
25        var title = $(target[0]).closest('h3');
26        var accordion = $(target[0]).closest('.entity-ref-tab-formatter-accordion');
27        var index = title.prevAll('h3').length;
28        accordion.accordion('option', 'active', index);
29
30        $('html,body').animate({
31          scrollTop: $(title).offset().top - $('.navbar').height() - 50
32        }, 'slow');
33      }
34    }
35  });
36
37
38})(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.