PageSourceSearch

https://wfd.de/wp-content/themes/neve-child-master/template-parts/blocks/slider/slider.js?ver=1.0.0

js wfd.de collected 2026-10-02 09:58:48 UTC 1,803 bytes, 70 lines download raw bytes

1(function($){
2
3    /**
4     * initializeBlock
5     *
6     * Adds custom JavaScript to the block HTML.
7     *
8     * @date    15/4/19
9     * @since   1.0.0
10     *
11     * @param   object $block The block jQuery element.
12     * @param   object attributes The block attributes (only available when editing).
13     * @return  void
14     */
15    var initializeBlock = function( $block ) {
16       $block.find('.slides').slick({
17      // $('.slides').slick({
18             dots: true,
19            // //infinite: true,
20            arrows: true,
21            // speed: 300,
22            slidesToShow: 1,
23            slidesToScroll: 1,
24            // // fade: true,
25             cssEase: 'linear',
26            centerMode: true,
27            // variableWidth: true,
28             adaptiveHeight: false,
29 		        // focusOnSelect: true
30            responsive: [
31            {
32              breakpoint: 960,
33              settings: {
34                arrows: false,
35                dots: true,
36                infinite: true
37              }
38            }
39          ]
40        });
41    }
42
43    // Initialize each block on page load (front end).
44    $(document).ready(function(){
45        $('.slider').each(function(){
46            initializeBlock( $(this) );
47        });
48    });
49
50    // $(document).ready(function(){
51    //   $('.slides').slick({
52    //     slidesToShow: 1,
53    //     slidesToScroll: 1,
54    //     arrows: false,
55    //     fade: true,
56    //     dots: true,
57    //     arrows:true,
58    //     centerMode: true,
59    //     // variableWidth: true,
60    //     adaptiveHeight: true,
61	  //     focusOnSelect: true
62    //   });
63    // });
64
65    // Initialize dynamic block preview (editor).
66    if( window.acf ) {
67        window.acf.addAction( 'render_block_preview/type=slider', initializeBlock );
68    }
69
70})(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.