PageSourceSearch

https://www.galvanizeusa.org/wp-content/themes/galusa-theme/assets/js/global.min.js?ver=1639071538

js galvanizeusa.org collected 2026-10-04 19:11:36 UTC 1,793 bytes, 58 lines download raw bytes

1"use strict";
2
3(function ($) {
4  $(document).ready(function () {
5    $('.info-popover').gpopover();
6
7    if (document.location.hash) {
8      setTimeout(function () {
9        window.scrollTo(window.scrollX, window.scrollY - 50);
10      }, 10);
11    } // Always show controls on videos
12
13
14    $('.wp-block-cover__video-background').attr('controls', true);
15    $('.wp-block-video').hover(hoverVideo, hideVideo);
16
17    function hoverVideo() {
18      $('video', this).get(0).play();
19    }
20
21    function hideVideo() {
22      $('video', this).get(0).pause();
23    } // Select all links with hashes
24
25
26    $('a[href*="#"]') // Remove links that don't actually link to anything
27    .not('[href="#"]').not('[href="#0"]').click(function (event) {
28      // On-page links
29      if (location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') && location.hostname === this.hostname) {
30        // Figure out element to scroll to
31        var target = $(this.hash);
32        target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); // Does a scroll target exist?
33
34        if (target.length) {
35          // Only prevent default if animation is actually gonna happen
36          event.preventDefault();
37          $('html, body').animate({
38            scrollTop: target.offset().top - 50
39          }, 1000, function () {
40            // Callback after animation
41            // Must change focus!
42            var $target = $(target);
43            $target.focus();
44
45            if ($target.is(':focus')) {
46              // Checking if the target was focused
47              return false;
48            }
49
50            $target.attr('tabindex', '-1'); // Adding tabindex for elements not focusable
51
52            $target.focus(); // Set focus again
53          });
54        }
55      }
56    });
57  });
58})(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.