PageSourceSearch

https://donavidaalplaneta.com/wp-content/themes/genesis-dvp/js/smoothscroll.js?ver=6.8.10

js donavidaalplaneta.com collected 2026-10-05 05:29:47 UTC 1,599 bytes, 54 lines download raw bytes

1jQuery(document).ready(function($){
2    $(window).scroll(function(){
3        if ($(this).scrollTop() < 200) {
4            $('#smoothup') .fadeOut();
5        } else {
6            $('#smoothup') .fadeIn();
7        }
8    });
9    $('#smoothup').on('click', function(){
10        $('html, body').animate({scrollTop:0}, 'fast');
11        return false;
12        });
13
14
15// Select all links with hashes
16$('a[href*="#"]')
17  // Remove links that don't actually link to anything
18  .not('[href="#"]')
19  .not('[href="#0"]')
20    .not('[href*="#tab-"]')
21  .click(function(event) {
22    // On-page links
23    if (
24      location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') 
25      && 
26      location.hostname == this.hostname
27    ) {
28      // Figure out element to scroll to
29      var target = $(this.hash);
30      target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
31      // Does a scroll target exist?
32      if (target.length) {
33        // Only prevent default if animation is actually gonna happen
34        event.preventDefault();
35        $('html, body').animate({
36          scrollTop: target.offset().top -120
37        }, 1000, function() {
38          // Callback after animation
39          // Must change focus!
40          var $target = $(target);
41          $target.focus();
42          if ($target.is(":focus")) { // Checking if the target was focused
43            return false;
44          } else {
45            $target.attr('tabindex','-1'); // Adding tabindex for elements not focusable
46            $target.focus(); // Set focus again
47          };
48        });
49      }
50    }
51  });
52
53
54});

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.