PageSourceSearch

https://unccdyouthcaucus.org/wp-content/themes/unccd-theme/assets/js/theme.js?ver=202501261642

js unccdyouthcaucus.org collected 2026-10-01 23:58:09 UTC 1,344 bytes, 40 lines download raw bytes

1/*--------------------------------------------------------------
2Theme JS
3--------------------------------------------------------------*/
4
5jQuery(function ($) {
6  // Close offcanvas on click a, keep .dropdown-menu open (see https://github.com/bootscore/bootscore/discussions/347)
7  $('.offcanvas a:not(.dropdown-toggle, .remove_from_cart_button)').on('click', function () {
8    $('.offcanvas').offcanvas('hide');
9  });
10
11  // Searchform focus
12  $('#collapse-search').on('shown.bs.collapse', function () {
13    $('.top-nav-search input:first-of-type').trigger('focus');
14  });
15
16  // Close collapse if click outside searchform
17  $(document).on('click', function (event) {
18    if ($(event.target).closest('#collapse-search').length === 0) {
19      $('#collapse-search').collapse('hide');
20    }
21  });
22
23  // Scroll to top Button
24  $(window).on('scroll', function () {
25    var scroll = $(window).scrollTop();
26
27    if (scroll >= 500) {
28      $('.top-button').addClass('visible');
29    } else {
30      $('.top-button').removeClass('visible');
31    }
32  });
33
34  // div height, add class to your content
35  $('.height-50').css('height', 0.5 * $(window).height());
36  $('.height-75').css('height', 0.75 * $(window).height());
37  $('.height-85').css('height', 0.85 * $(window).height());
38  $('.height-100').css('height', 1.0 * $(window).height());
39
40}); // jQuery End

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.