PageSourceSearch

https://mismap.pl/wp-content/themes/domino/js/functions.js?ver=2.0.7

js mismap.pl collected 2026-10-06 13:17:20 UTC 3,141 bytes, 154 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        /**
18         * Activate superfish menu.
19         */
20        $('.sf-menu').superfish({
21            'speed': 'fast',
22            'delay' : 0,
23            'animation': {
24                'height': 'show'
25            }
26        });
27
28
29        /**
30         * Activate jQuery.mmenu.
31         */
32        $("#menu-top-slide").mmenu({
33            "slidingSubmenus": false,
34            "extensions": [
35                "theme-dark",
36                "pageshadow",
37                "border-full"
38            ]
39        });
40
41        $("#menu-main-slide").mmenu({
42            "slidingSubmenus": false,
43            "extensions": [
44                "theme-dark",
45                "pageshadow",
46                "border-full"
47            ]
48        });
49
50
51        /**
52         * Search form in header.
53         */
54        $(".sb-search").sbSearch();
55
56        /* Sticky Sidebar */
57
58        $('#sidebar').theiaStickySidebar({
59            additionalMarginTop: 40
60        });
61
62        $('.related_posts').theiaStickySidebar({
63            additionalMarginTop: 40
64        });
65
66
67
68        /**
69         * FitVids - Responsive Videos in posts
70         */
71        $(".entry-content").fitVids();
72
73
74
75        /**
76         * News ticker.
77         */
78        $('#ticker').ticker();
79
80
81
82    });
83
84    $window.on('load', function() {
85        /**
86         * Activate main slider.
87         */
88        $('#slider').sllider();
89
90    });
91
92
93    $.fn.sllider = function() {
94        return this.each(function () {
95            var $this = $(this);
96
97            var $slides = $this.find('.slide');
98
99            if ($slides.length <= 1) {
100                $slides.addClass('is-selected');
101
102                return;
103            }
104
105            var flky = new Flickity('.slides', {
106                autoPlay: (zoomOptions.slideshow_auto ? parseInt(zoomOptions.slideshow_speed, 10) : false),
107                cellAlign: 'center',
108                contain: true,
109                percentPosition: false,
110                pageDots: true,
111                accessibility: false,
112                wrapAround: true
113            });
114        });
115    };
116
117
118
119    $.fn.ticker = function() {
120        return this.each(function () {
121            var $this = $(this);
122
123            var _scroll = {
124                delay: 1000,
125                easing: 'linear',
126                items: 1,
127                duration: 0.05,
128                timeoutDuration: 0,
129                pauseOnHover: 'immediate'
130            };
131
132            $this.carouFredSel({
133                width: 1000,
134                align: false,
135                items: {
136                    width: 'variable',
137                    height: 35,
138                    visible: 1
139                },
140                scroll: _scroll
141            });
142
143            $this.parent('.caroufredsel_wrapper').css('width', '100%');
144        }) ;
145    };
146
147    $.fn.sbSearch = function() {
148       return this.each(function() {
149           new UISearch( this );
150       });
151    };
152
153
154})(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.