PageSourceSearch

https://detailed.com/wp-content/themes/damn-beautiful-theme/js/main.js?ver=1.2

js detailed.com collected 2026-09-24 09:02:36 UTC 1,221 bytes, 41 lines download raw bytes

1jQuery(document).ready(function ($) {
2    /**
3     * @desc Active Tab Scroll Function
4     * @date 13 Jun 2023
5     * @author Catalyst
6     */
7    var screenWidth = $(document).width();
8    if (screenWidth < 769) {
9        var sectionOffsetTop = 10;
10    } else {
11        var sectionOffsetTop = 190;
12    }
13    var sections = $('section'), nav = $('nav.pagenav'), nav_height = nav.outerHeight();
14    $(window).on('scroll', function () {
15        var cur_pos = $(this).scrollTop();
16
17        sections.each(function () {
18            var top = $(this).offset().top,
19                    bottom = top + $(this).outerHeight();
20            if (cur_pos >= top - 200 && cur_pos <= bottom) {
21                nav.find('a').removeClass('active');
22                sections.removeClass('active');
23
24                $(this).addClass('active');
25                nav.find('a[href="#' + $(this).attr('id') + '"]').addClass('active');
26            }
27        });
28    });
29
30    nav.find('a').on('click', function () {
31        var $el = $(this)
32                , id = $el.attr('href');
33
34        $('html, body').animate({
35            scrollTop: $(id).offset().top - sectionOffsetTop
36        }, 500);
37
38        return false;
39    });
40
41}); //ready function

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.