PageSourceSearch

https://www.sequoiasoft.com/wp-content/themes/sequoiasoft/tpl/js/scripts-tech.js?ver=1.0

js sequoiasoft.com collected 2026-10-08 20:28:57 UTC 3,858 bytes, 130 lines download raw bytes

1(function($) {
2
3    $(function() {
4        /*================== GENERAL ==========================*/
5
6        /*--- javascript strict mode ---*/
7        "use strict";
8        defaultActiviteMetier();
9
10        var valeurs = [];
11        //On recupere tous les elements cochés
12        $('input:checked[name=filter-metier]').each(function() {
13            valeurs.push(this.id);
14        });
15
16
17        //Alimentation automatique du champ caché url par defaut
18        $('#form-url').val(document.URL);
19        
20       /*================== AJAX ==========================*/
21       
22       $('#body').on('click', '.cta-back-temoignage', function(event) {
23
24            event.preventDefault();
25            history.back(1);
26        });
27        
28        
29        /*================== AJAX ==========================*/
30
31        $('#body').on('click', '.menu-ajax .cta-title-nav-content', function(event) {
32
33            event.preventDefault();
34
35            $('.menu-ajax .item-nav-content').removeClass('active');
36            $(this).closest('.item-nav-content').addClass('active');
37
38            var hRef = $(this).attr('href');
39
40            $('.loader-ajax').show();
41            $('.content-ajax').hide();
42
43            if (hRef) {
44                //$("#wrap-ajax ul").fadeOut();
45                $(".content-ajax").load(hRef + " .wrap-content-ajax", function(response, status, xhr) {
46                    $('.loader-ajax').hide();
47                    $('.content-ajax').show();
48                    $.fn.updateResponsive();
49                    $.fn.updateInfscr();
50                    window.history.pushState({path:hRef},'',hRef);
51               
52                });
53            }
54            return false;
55        });
56
57
58
59        $('#body').on('click', '.form-filter .choice .input-checkbox-metier', function(event) {
60            $('#activity-bloc').attr('style', 'display:block');
61            var valeurs = [];
62            var nbMetier = 0;
63            //On recupere tous les elements cochés
64            $('input:checked[name=filter-metier]').each(function() {
65                valeurs.push(this.id);
66                nbMetier++;
67            });
68
69            if (nbMetier == 0) {
70                defaultActiviteMetier();
71            } else {
72                $.ajax({
73                    type: "POST",
74                    url: ajaxurl,
75                    dataType: "json",
76                    data: {
77                        'filter-metier': valeurs,
78                        'action': 'update_liste_filter'
79                    },
80                    success: function(sHtml) {
81                        if(sHtml != ''){
82                            $('#filter-ajax').html(sHtml);
83                            $.fn.updateForm();
84                        }else{
85                            $('#activity-bloc').attr('style', 'display:none');
86                        }
87                        
88                    }
89                });
90            }
91
92        });
93        
94 /*       
95        $('#body').on('click', '.form-download .input-submit', function(event) {
96            
97            var test = $(this).parent('.field #new-register-entreprise').val();
98            alert(test);
99        });
100*/
101
102    });
103
104
105
106    function defaultActiviteMetier()
107    {
108        // Ajout par defaut de toute les activites si aucun metier coche
109        var nbMetier = 0;
110        $('input:checked[name=filter-metier]').each(function() {
111            nbMetier++;
112        });
113        if (nbMetier == 0) {
114            $.ajax({
115                type: "POST",
116                url: ajaxurl,
117                dataType: "json",
118                data: {
119                    'action': 'update_liste_filter_default'
120                },
121                success: function(sHtml) {
122                    $('#filter-ajax').html(sHtml);
123					$.fn.updateForm();
124                }
125            });
126        }
127    }
128
129
130})(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.