PageSourceSearch

https://ckan.org/static/js/common.js

js ckan.org collected 2026-09-24 08:23:55 UTC 1,564 bytes, 60 lines download raw bytes

1$(document).ready(function() {
2
3    $('.nav-opener').on('click', function(e) {
4        e.preventDefault();
5        $(this).parent().toggleClass('nav-active');
6        $('body').toggleClass('scroll-none');
7    });
8
9    $('.quotes-slider').slick({
10        infinite: true,
11        arrows: false,
12        dots: true,
13        fade: true,
14        cssEase: 'linear',
15        speed: 300,
16        slidesToShow: 1,
17        slidesToScroll: 1,
18        swipeToSlide: true,
19        centerMode: false,
20    });
21
22    $.fancybox.defaults.closeExisting = true;
23    // Contact Us Thanks Modal
24    $('.contactUsThanksModal').on('click', function() {
25        $.fancybox.open( $('#contactUsThanksModal'), {
26            touch: false
27        });
28        return false;
29    });
30    if ($(window).scrollTop() >= 100) {
31        $('.header').addClass('fixed-header');
32    }
33    else {
34        $('.header').removeClass('fixed-header');
35    }
36});
37
38$(window).on('load resize orientationchange', function() {
39    if ( $(window).width() < 768 ) {
40        $('.feature-list').readmore({
41            speed: 1000,
42            moreLink: '<a href="#" class="btn btn-grey btn-lg-br">Show all features</a>',
43            lessLink: '<a href="#" class="btn btn-grey btn-lg-br">Hide all features</a>',
44            heightMargin: 24
45        });
46    }
47    else{
48        $('.feature-list').readmore('destroy');
49    }
50
51});
52
53$(window).scroll(function(){
54    if ($(window).scrollTop() >= 100) {
55        $('.header').addClass('fixed-header');
56    }
57    else {
58        $('.header').removeClass('fixed-header');
59    }
60});

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.