PageSourceSearch

https://colefordtowncouncil.gov.uk/TheParishCouncilThemeV1.1/js/ag…05rKB2FSXS0a18RKYzvAG3Qn0KV-ScXyRvqPN9mvT04

js colefordtowncouncil.gov.uk collected 2026-10-02 17:47:37 UTC 1,309 bytes, 42 lines download raw bytes

1(function($) {
2  "use strict"; // Start of use strict
3
4  // Smooth scrolling using jQuery easing
5  $('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
6    if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
7      var target = $(this.hash);
8      target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
9      if (target.length) {
10        $('html, body').animate({
11          scrollTop: (target.offset().top - 54)
12        }, 1000, "easeInOutExpo");
13        return false;
14      }
15    }
16  });
17
18  // Closes responsive menu when a scroll trigger link is clicked
19  $('.js-scroll-trigger').click(function() {
20    $('.navbar-collapse').collapse('hide');
21  });
22
23  // Activate scrollspy to add active class to navbar items on scroll
24  //$('body').scrollspy({
25  //  target: '#mainNav',
26  //  offset: 56
27  //});
28
29  // Collapse Navbar
30  var navbarCollapse = function() {
31    if ($("#mainNav").offset().top > 100) {
32      //$("#mainNav").addClass("navbar-shrink");
33    } else {
34      //$("#mainNav").removeClass("navbar-shrink");
35    }
36  };
37  // Collapse now if page is not at top
38 // navbarCollapse();
39  // Collapse the navbar when page is scrolled
40  //$(window).scroll(navbarCollapse);
41
42})(jQuery); // End of use strict

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.