PageSourceSearch

https://notchesblog.com/wp-content/themes/compass/js/functions.js?ver=1.1.3

js notchesblog.com collected 2026-09-24 09:32:41 UTC 2,337 bytes, 106 lines download raw bytes

1/**
2 * Theme functions file
3 */
4(function ($) {
5    'use strict';
6
7    var $document = $(document);
8    var $window = $(window);
9
10
11    /**
12    * Document ready (jQuery)
13    */
14    $(function () {
15
16        /**
17         * Activate superfish menu.
18         */
19        $('.sf-menu').superfish({
20            'speed': 'fast',
21            'delay' : 0,
22            'animation': {
23                'height': 'show'
24            }
25        });
26
27        /**
28         * Activate jQuery.mmenu.
29         */
30        $("#menu-main-slide").mmenu({
31            slidingSubmenus: false
32        })
33
34        /**
35         * News ticker.
36         */
37        $('#ticker').ticker();
38
39        /**
40         * FitVids - Responsive Videos in posts
41         */
42        $(".entry-content").fitVids();
43
44
45        /**
46         * Clickable divs.
47         */
48        $('.clickable').on('click', function() {
49            window.location.href = $(this).data('href');
50        });
51
52    });
53
54    $window.on('load', function() {
55        /**
56         * Activate main slider.
57         */
58        $('#slider').sllider();
59    });
60
61
62    $.fn.sllider = function() {
63        return this.each(function () {
64            var $this = $(this);
65
66            var flky = new Flickity('.slides', {
67                autoPlay: (zoomOptions.slideshow_auto ? parseInt(zoomOptions.slideshow_speed, 10) : false),
68                cellAlign: 'left',
69                contain: true,
70                percentPosition: false,
71                //prevNextButtons: false,
72                pageDots: false,
73                accessibility: false
74            });
75        });
76    };
77
78    $.fn.ticker = function() {
79        return this.each(function () {
80            var $this = $(this);
81
82            var _scroll = {
83                delay: 1000,
84                easing: 'linear',
85                items: 1,
86                duration: 0.05,
87                timeoutDuration: 0,
88                pauseOnHover: 'immediate'
89            };
90
91            $this.carouFredSel({
92                width: 1000,
93                align: false,
94                items: {
95                    width: 'variable',
96                    height: 35,
97                    visible: 1
98                },
99                scroll: _scroll
100            });
101
102            $this.parent('.caroufredsel_wrapper').css('width', '100%');
103        }) ;
104    };
105
106})(jQuery);

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.