PageSourceSearch

https://reprolegalhelpline.org/wp-content/themes/bootscore/assets/js/theme.js?ver=202609172023

js reprolegalhelpline.org collected 2026-10-02 17:49:34 UTC 1,449 bytes, 41 lines download raw bytes

1/*--------------------------------------------------------------
2Theme JS - Bootscore v6.4.0
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  // Deprecated, this code will be removed in v7. CSS viewport units are much better.
36  $('.height-50').css('height', 0.5 * $(window).height());
37  $('.height-75').css('height', 0.75 * $(window).height());
38  $('.height-85').css('height', 0.85 * $(window).height());
39  $('.height-100').css('height', 1.0 * $(window).height());
40
41}); // 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.