PageSourceSearch

https://flik.co.nz/js/scripts.js

js flik.co.nz collected 2026-10-06 04:52:14 UTC 1,647 bytes, 57 lines download raw bytes

1$(function () {
2
3    // init feather icons
4    feather.replace();
5
6    // init tooltip & popovers
7    $('[data-toggle="tooltip"]').tooltip();
8    $('[data-toggle="popover"]').popover();
9
10    //page scroll
11    $('a.page-scroll').bind('click', function (event) {
12        var $anchor = $(this);
13        $('html, body').stop().animate({
14            scrollTop: $($anchor.attr('href')).offset().top - 50
15        }, 1000);
16        event.preventDefault();
17    });
18
19    //toggle scroll menu
20    $(window).scroll(function () {
21        var scroll = $(window).scrollTop();
22        //adjust menu background
23        if (scroll >= 100) {
24            $('.sticky-navigation').addClass('navbar-shadow');
25        } else {
26            $('.sticky-navigation').removeClass('navbar-shadow');
27        }
28        
29        // adjust scroll to top
30        if (scroll >= 600) {
31            $('.scroll-top').addClass('active');
32        } else {
33            $('.scroll-top').removeClass('active');
34        }
35        return false;
36    });
37
38    // scroll top top
39    $(document).on('click', '.scroll-top', function () {
40        $('html, body').stop().animate({
41            scrollTop: 0
42        }, 1000);
43    });
44
45    /**Theme switcher - DEMO PURPOSE ONLY */
46    $('.switcher-trigger').click(function () {
47        $('.switcher-wrap').toggleClass('active');
48    });
49    $('.color-switcher ul li').click(function () {
50        var color = $(this).attr('data-color');
51        $('#theme-color').attr("href", "css/" + color + ".css");
52        $('.color-switcher ul li').removeClass('active');
53        $(this).addClass('active');
54    });
55
56    // hero gradient cursor tracking removed
57});

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.