PageSourceSearch

https://usadf.gov/themes/custom/usadf/js/general.js?tgserb

js usadf.gov collected 2026-10-02 06:17:45 UTC 1,999 bytes, 64 lines download raw bytes

1(function ($) {
2  var height = $("div.banner-img").outerHeight() + 10;
3
4  function morelink() {
5    $(".story-more").on("click", function () {
6      location.assign($(this).attr("href"));
7    });
8  }
9
10  $(window).scroll(function () {
11    if ($(".form-msg-popup").length) {
12      $(".form-msg-popup").css("bottom", $("#footer").outerHeight());
13      var t = $(window).scrollTop();
14      if (t > height) {
15        $("body").addClass("anm-popup");
16      }
17
18      var top_of_element = jQuery("footer").offset().top;
19      var bottom_of_element =
20        jQuery("footer").offset().top + jQuery("footer").outerHeight();
21      var bottom_of_screen =
22        jQuery(window).scrollTop() + jQuery(window).innerHeight();
23      var top_of_screen = jQuery(window).scrollTop();
24
25      if (
26        bottom_of_screen > top_of_element &&
27        top_of_screen < bottom_of_element
28      ) {
29        $("body").addClass("stat-popup");
30      } else {
31        $("body").removeClass("stat-popup");
32      }
33    }
34  });
35
36  $(window).on("load", function () {
37    morelink();
38    //for removing target attribute
39    jQuery(".map-wrap span.country-name a").removeAttr("target");
40    //changing submit button position in subscribe and contact page
41    if ($(".webform-submission-subscribe-form").length > 0) {
42      $(
43        ".webform-submission-subscribe-form .captcha.js-form-wrapper"
44      ).insertBefore(".webform-submission-subscribe-form .form-actions");
45    }
46    if ($(".webform-submission-contact-form").length > 0) {
47      $(
48        ".webform-submission-contact-form .captcha.js-form-wrapper"
49      ).insertBefore(".webform-submission-contact-form .form-actions");
50    }
51
52    // custom scroll
53    if ($(".webform-confirmation-modal .messages__wrapper").length) {
54      $(
55        ".webform-confirmation-modal .messages__wrapper .webform-confirmation-modal--content"
56      ).mCustomScrollbar({
57        scrollButtons: {
58          enable: true,
59        },
60        theme: "dark-thin",
61      });
62    }
63  });
64})(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.