PageSourceSearch

https://vetmedux.com/wp-content/themes/vetmedux/js/recursive-elements-v2.js?ver=1764001710

js vetmedux.com collected 2026-10-09 22:41:10 UTC 1,244 bytes, 48 lines download raw bytes

1jQuery(document).ready(function($) {
2
3  // Jump to hash on load
4  if (window.location.hash) {
5    jump_to_element(window.location.hash);
6  }
7
8  // Jump to hash on click
9  $('#page > div a').on('click', function() {
10    let el = $(this);
11    let el_href = el.attr('href');
12
13    if (/#/.test(el_href)) {
14      let jump_to = '#' + el_href.substr(el_href.indexOf('#') + 1);
15      jump_to_element(jump_to);
16    }
17  });
18
19});
20
21function jump_to_element(el) {
22
23  let jump_offset = '150';
24
25  // If logged in
26  if ($('body').hasClass('logged-in')) {
27    // extra amount to account for wp admin bar
28    jump_offset = '190';
29  }
30
31  $('html,body').animate({scrollTop: $(el).offset().top - jump_offset}, 500);
32
33}
34
35function scrollUserUpOnHubspotSubmit(extra_space = 0) {
36  // scroll the user to the top of .fake-column-2-container
37  let form_container_position = $('.hbspt-form').offset().top;
38  let header_bar_height = $('.site-header').outerHeight();
39  let wp_admin_bar_height = $('#wpadminbar').outerHeight();
40
41  if (wp_admin_bar_height == undefined) {
42    wp_admin_bar_height = 0;
43  }
44
45  $([document.documentElement, document.body]).animate({
46    scrollTop: form_container_position - header_bar_height - wp_admin_bar_height - 30 - extra_space
47  }, 500);
48}

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.