PageSourceSearch

https://catharinemagelpa.com/wp-content/themes/colorway/js/slider-init.js?ver=7.1.3

js catharinemagelpa.com collected 2026-10-08 04:37:10 UTC 2,089 bytes, 79 lines download raw bytes

1var $ = jQuery;
2$(function () {
3    var Page = (function () {
4        var $navArrows = $('#nav-arrows'),
5                $nav = $('#nav-dots > span'),
6                slitslider = $('#slider').slitslider({
7            onBeforeChange: function (slide, pos) {
8
9                $nav.removeClass('nav-dot-current');
10                $nav.eq(pos).addClass('nav-dot-current');
11
12            }
13        }),
14                init = function () {
15
16                    initEvents();
17
18                },
19                initEvents = function () {
20
21                    // add navigation events
22                    $navArrows.children(':last').on('click', function () {
23
24                        slitslider.next();
25                        return false;
26
27                    });
28
29                    $navArrows.children(':first').on('click', function () {
30
31                        slitslider.previous();
32                        return false;
33
34                    });
35
36                    $nav.each(function (i) {
37
38                        $(this).on('click', function (event) {
39
40                            var $dot = $(this);
41
42                            if (!slitslider.isActive()) {
43
44                                $nav.removeClass('nav-dot-current');
45                                $dot.addClass('nav-dot-current');
46
47                            }
48
49                            slitslider.jump(i + 1);
50                            return false;
51
52                        });
53
54                    });
55
56                };
57
58        return {init: init};
59
60    })();
61
62    Page.init();
63
64    /**
65     * Notes: 
66     * 
67     * example how to add items:
68     */
69
70    /*
71     
72     var $items  = $('<div class="sl-slide sl-slide-color-2" data-orientation="horizontal" data-slice1-rotation="-5" data-slice2-rotation="10" data-slice1-scale="2" data-slice2-scale="1"><div class="sl-slide-inner bg-1"><div class="sl-deco" data-icon="t"></div><h2>some text</h2><blockquote><p>bla bla</p><cite>Margi Clarke</cite></blockquote></div></div>');
73     
74     // call the plugin's add method
75     ss.add($items);
76     
77     */
78
79});

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.