PageSourceSearch

https://ux.valmont.com/tailwind/components/smoothscroll-jumplink.js

js valmont.com collected 2026-10-01 13:04:36 UTC 904 bytes, 26 lines download raw bytes

1
2/*----Smooth Scroll----*/
3$(document).ready(function () {
4    // Add smooth scrolling to all links
5    $(".jumplink").on('click', function (event) {
6
7        // Make sure this.hash has a value before overriding default behavior
8        if (this.hash !== "") {
9            // Prevent default anchor click behavior
10            event.preventDefault();
11
12            // Store hash
13            var hash = this.hash;
14
15            // Using jQuery's animate() method to add smooth page scroll
16            // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
17            $('html, body').animate({
18                scrollTop: $(hash).offset().top
19            }, 800, function () {
20
21                // Add hash (#) to URL when done scrolling (default click behavior)
22                // window.location.hash = hash;
23            });
24        } // End if
25    });
26});

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.