PageSourceSearch

https://ethiopiaid.ca/js/nav.js

js ethiopiaid.ca collected 2026-10-03 23:34:07 UTC 833 bytes, 23 lines download raw bytes

1// jQuery for page scrolling feature - requires jQuery Easing plugin
2
3$(function() {
4    //Smooth Scroll
5    $('body').on('click', 'a.page-scroll', function(e){
6        e.preventDefault();
7        var target = this.hash;
8        var $target = $(target);
9        $('html, body').stop().animate({
10            'scrollTop': $target.offset().top - 300  // 0 offset for fixed header
11        }, 900, 'easeInOutExpo');
12    });
13
14    // Force absolute anchors in cms html content.
15    var pathname = window.location.href.split('#')[0];
16    $('.content_html a[href^="#"], .content_app-CmsLeaderboxes a[href^="#"]').each(function() {
17        if (!$(this).hasClass('page-scroll')) {
18            var link = $(this).attr('href');
19            $(this).attr('href', pathname + link);
20            $(this).addClass('page-scroll');
21        }
22    });
23});

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.