PageSourceSearch

https://www.fedoralinux.or.kr/vews/257bb80210/js/squarepress-custom.js

js fedoralinux.or.kr collected 2026-10-02 20:09:49 UTC 2,800 bytes, 113 lines download raw bytes

1/**
2 * SquareOne Custom JS
3 *
4 * @package SquarePress
5 *
6 * Distributed under the MIT license - http://opensource.org/licenses/MIT
7 */
8
9jQuery(function ($) {
10
11    $('#sq-bx-slider').owlCarousel({
12        autoplay: true,
13        items: 1,
14        loop: true,
15        nav: true,
16        dots: false,
17        autoplayTimeout: 7000,
18        animateOut: 'fadeOut',
19        navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>']
20    });
21
22    $('.sq-testimonial-slider').owlCarousel({
23        autoplay: true,
24        items: 1,
25        loop: true,
26        autoplayTimeout: 7000,
27        nav: false,
28        dots: true
29    });
30
31    $(".sq_client_logo_slider").owlCarousel({
32        autoplay: true,
33        items: 5,
34        loop: true,
35        nav: false,
36        dots: false,
37        autoplayTimeout: 7000,
38        responsive: {
39            0: {
40                items: 2,
41            },
42            768: {
43                items: 3,
44            },
45            979: {
46                items: 4,
47            },
48            1200: {
49                items: 5,
50            }
51        }
52    });
53
54    $(".sq-tab-pane:first").show();
55    $(".sq-tab li:first").addClass('sq-active');
56
57    $(".sq-tab li a").click(function () {
58        var tab = $(this).attr('href');
59        $(".sq-tab li").removeClass('sq-active');
60        $(this).parent('li').addClass('sq-active');
61        $(".sq-tab-pane").hide();
62        $(tab).show();
63        return false;
64    });
65
66    $('.sq-menu > ul').superfish({
67        delay: 500,
68        animation: {opacity: 'show', height: 'show'},
69        speed: 'fast'
70    });
71
72    $('.sq-toggle-nav').click(function () {
73        $('#sq-site-navigation').slideToggle();
74        squarepressKeyboardLoop($('.sq-main-navigation'));
75        return false;
76    });
77
78    var squarepressKeyboardLoop = function (elem) {
79
80        var tabbable = elem.find('select, input, textarea, button, a').filter(':visible');
81
82        var firstTabbable = tabbable.first();
83        var lastTabbable = tabbable.last();
84        /*set focus on first input*/
85        firstTabbable.focus();
86
87        /*redirect last tab to first input*/
88        lastTabbable.on('keydown', function (e) {
89            if ((e.which === 9 && !e.shiftKey)) {
90                e.preventDefault();
91                firstTabbable.focus();
92            }
93        });
94
95        /*redirect first shift+tab to last input*/
96        firstTabbable.on('keydown', function (e) {
97            if ((e.which === 9 && e.shiftKey)) {
98                e.preventDefault();
99                lastTabbable.focus();
100            }
101        });
102
103        /* allow escape key to close insiders div */
104        elem.on('keyup', function (e) {
105            if (e.keyCode === 27) {
106                elem.hide();
107            }
108            ;
109        });
110    };
111
112});
113

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.