PageSourceSearch

https://www.reseau-cler.org/wp-content/themes/cler/assets/js/evts.js?ver=2.1

js reseau-cler.org collected 2026-10-09 04:58:55 UTC 2,231 bytes, 68 lines download raw bytes

1jQuery(function($) {
2
3    if ($("body.page-template-page-evts").length > 0) {
4        evtsFilters();
5
6        // pager
7        $(".tool-pagination a").click( function(e){
8            loadEvts($(this).attr("data-page"), 1);
9            return false;
10        });
11    }
12
13    function evtsFilters(){
14        dataFilter("filter-reseau");
15        dataFilter("filter-lieu");
16        dataFilter("filter-type");
17        dataFilter("filter-thematique");
18
19        $("#filter-reseau ul li a").on('click', function(){
20            $("#filter-lieu").attr('data-value','');
21            $("#filter-type").attr('data-value','');
22            $("#filter-thematique").attr('data-value','');
23        });
24        $("#filter-lieu ul li a").on('click', function(){
25            $("#filter-type").attr('data-value','');
26            $("#filter-thematique").attr('data-value','');
27        });
28        $("#filter-type ul li a").on('click', function(){
29            $("#filter-thematique").attr('data-value','');
30        });
31
32        $("#filter-reseau ul li a, #filter-lieu ul li a, #filter-type ul li a, #filter-thematique ul li a").on('click', function (e) {
33            loadEvts(0, 1);
34            this.blur();
35            return false;
36        });
37    }
38
39    function loadEvts(paged, replace){
40        jQuery('.list').addClass('loader');
41
42        jQuery.post(
43            shortinitajaxurl, {
44                'action': 'action',
45                'reseau': $("#filter-reseau").attr("data-value"),
46                'lieu': $("#filter-lieu").attr("data-value"),
47                'type': $("#filter-type").attr("data-value"),
48                'thematique': $("#filter-thematique").attr("data-value"),
49                'page': 'evts',
50                'paged': paged,
51                'init': replace
52            },
53            function(response){
54                jQuery('.list').removeClass('loader');
55                $(".list").html('');
56                $(response).hide().appendTo(".list").fadeIn(150);
57
58                evtsFilters();
59
60                // pager
61                $(".tool-pagination a").click( function(e){
62                    loadEvts($(this).attr("data-page"), 1);
63                    return false;
64                });
65            }
66        );
67    }
68});

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.