PageSourceSearch

https://www.usmcra.org/Portals/_default/skins/mcra/assets/js/scripts.js?cdv=164

js usmcra.org collected 2026-10-04 21:56:56 UTC 2,919 bytes, 86 lines download raw bytes

1$(document).ready(function () {
2
3    var stickyElement = $(".sticky"),
4        stickyClass = "sticky-pin",
5        stickyPos = stickyElement.offset().top, 
6        stickyHeight;
7
8    stickyElement.after('<div class="jumps-prevent"></div>');
9    function jumpsPrevent() {
10        stickyHeight = stickyElement.innerHeight();
11        stickyElement.css({ "margin-bottom": "-" + stickyHeight + "px" });
12        stickyElement.next().css({ "padding-top": +stickyHeight + "px" });
13    };
14    jumpsPrevent(); //Run.
15
16    $(window).resize(function () {
17        jumpsPrevent();
18    });
19
20    function stickerFn() {
21        var winTop = $(this).scrollTop();
22        winTop >= stickyPos ?
23          stickyElement.addClass(stickyClass) :
24          stickyElement.removeClass(stickyClass) 
25    };
26    stickerFn(); //Run.
27
28    $(window).scroll(function () {
29        stickerFn();
30    });
31
32    $(function () {
33        if ($('form').hasClass('showControlBar')) {
34            $('.controlbarfix').addClass('admin');
35        }
36    });
37
38
39    $(".navbar-nav.sm-collapsible .caret").click(function (e) {
40        e.preventDefault()
41    }), $('[data-toggle="tooltip"]').length && $('[data-toggle="tooltip"]').tooltip(), $('<span class="search-toggle-icon"></span>').insertAfter(".search a.SearchButton");
42    var e = $(".search"),
43        c = $(".search-toggle-icon"),
44        n = $(".search .searchInputContainer input"),
45        a = !1;
46    c.click(function () {
47        0 == a ? (e.addClass("search-open"), n.focus(), a = !0) : (e.removeClass("search-open"), n.focusout(), a = !1)
48    }), c.mouseup(function () {
49        return !1
50    }), e.mouseup(function () {
51        return !1
52    }), $(document).mouseup(function () {
53        1 == a && ($(".search-toggle-icon").css("display", "block"), c.click())
54    }), n.keyup(buttonUp), $("a#search-action").click(function () {
55        $("#search-top").toggleClass("active")
56    })
57
58
59
60});
61
62
63
64function buttonUp() {
65    var e = $(".search .searchInputContainer input").val();
66    e = $.trim(e).length, 0 !== e ? ($(".search-toggle-icon").css("display", "none"),
67        $(".search").css("overflow", "visible")) : ($(".search .searchInputContainer input").val(""),
68        $(".search-toggle-icon").css("display", "block"),
69        $(".search").css("overflow", "hidden")),
70        $(".search .searchInputContainer a.dnnSearchBoxClearText").click(function () {
71            $(".search .searchInputContainer a.dnnSearchBoxClearText").hasClass("dnnShow") ? $(this).css("overflow", "visible") : $(".search").css("overflow", "hidden")
72    })
73}
74
75$(function () {
76    $('#dnnNav').on('hide.bs.collapse', function () {
77        $('.navbar-toggler').removeClass('open');
78    })
79    $('#dnnNav').on('show.bs.collapse', function () {
80        $('.navbar-toggler').addClass('open');
81    })
82});
83
84$(document).ready(function () {
85    
86});

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.