PageSourceSearch

https://liguecancer31.fr/wp-content/themes/hookipa-theme/assets/js/main.js?ver=1.0

js liguecancer31.fr collected 2026-10-05 23:23:08 UTC 6,960 bytes, 285 lines download raw bytes

1jQuery(document).ready(function($){
2    
3    var $enteteSlider = $('.entete-slider');
4
5    $enteteSlider.owlCarousel({
6        loop:true,
7        autoplay:true,
8        autoplayTimeout:5000,
9        smartSpeed: 2000,
10        responsiveClass:true,
11        responsive:{
12            0:{
13                items:1
14            }
15        }
16    });
17
18    
19    var $partenairesSlider = $('.partenaires-slider');
20    $partenairesSlider.owlCarousel({
21        loop:true,
22        autoplay:true,
23        autoplayTimeout:2000,
24        responsiveClass:true,
25        responsive:{
26            0:{
27                items:2,
28                 margin: 20
29            },
30            420:{
31                items:3,
32                 margin: 20
33            },
34            720:{
35                items: 3,
36                 margin: 20
37            },
38            1024:{
39                items:4,
40                margin: 20
41            }
42        }
43    });
44    
45    var $partenairesSliderNo = $('.partenaires-sliderNO');
46    $partenairesSliderNo.owlCarousel({
47        loop:false,
48        autoplay:false,
49        autoplayTimeout:2000,
50        responsiveClass:true,
51        responsive:{
52            0:{
53                items:2,
54                 margin: 20
55            },
56            420:{
57                items:3,
58                 margin: 20
59            },
60            720:{
61                items: 3,
62                 margin: 20
63            },
64            1024:{
65                items:4,
66                margin: 20
67            }
68        }
69    });
70    
71        
72    $('.nav-left').on('click', function(){
73        $(this).parent().siblings('.partenaires-slider').trigger('prev.owl.carousel');        
74   });
75   
76   $('.nav-right').on('click', function(){
77        $(this).parent().siblings('.partenaires-slider').trigger('next.owl.carousel');        
78   });
79    
80    
81    
82    
83
84    $('.collapsibleFlex').on('click', function(){
85        $(this).next().slideToggle(300);
86        $('.contentCollapseFlex').not($(this).next()).slideUp(300);
87        $(this).toggleClass('active');
88        $('.collapsibleFlex').not($(this)).removeClass('active');
89    })
90    $('.collapsibleFlex').first().addClass('active');
91
92    /*
93    // When the user scrolls the page, execute myFunction
94    window.onscroll = function() {myFunction()};
95
96    
97    // Get the header
98    var header = document.getElementById("menuSticky");
99    var sticky = header.offsetTop;
100    // Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
101    function myFunction() {
102        if (window.pageYOffset > sticky) {
103            header.classList.add("sticky");
104        } else {
105            header.classList.remove("sticky");
106        }
107    }
108    */
109    $('.btn-menu').on('click', function(){
110        $('#mainPage').toggleClass('overlay');
111        $('.menu-mobile').toggleClass('active');
112        $(this).find('.menu-icon').toggleClass('is-opened');
113     });
114    
115    
116    $('.menu-desktop .menu-item-has-children > a').on('click', function(e){
117        $(this).parent().find('.sub-menu').first().toggleClass('active');
118     });
119
120     $('.menu-mobile .menu-item-has-children > a').on('click', function(e){
121         e.preventDefault();
122        $(this).parent().find('.sub-menu').first().toggleClass('active');
123     });
124
125    
126     $('.menu-mobile .sub-menu').prepend('<li><span class="back">Retour</span></li>');
127
128     $('.menu-mobile .back').on('click', function(e){
129         $menuUl = $(this).parents('ul');  
130         $menuUl.removeClass('active');
131     });
132     
133     
134     $(document).on('click', function (e) {
135         if ($(e.target).closest(".menu-mobile, .btn-menu").length === 0) {
136             $('.menu-mobile').removeClass('active');
137             $('.menu-icon').removeClass('is-opened');
138         }
139     });
140
141     if (window.location.hash) {
142        var $target = $('body').find(window.location.hash);
143        if ($target.hasClass('collapse')) {
144            //var $targetAccordion = $target.find('.collapse');
145            $target.collapse('toggle');
146        }
147    }
148
149    /*
150    $('.menu-item-has-children').on('click', function(){
151        $(this).find('.sub-menu').toggle('slow');   
152     });
153    */
154
155    /*
156   
157    
158    $('.go-up').click(function(e) {
159        e.preventDefault;
160        $('html,body').animate({scrollTop: 0}, 'slow');
161    });
162    
163    */
164   
165         wow = new WOW({
166            boxClass:     'wow',      // default
167            animateClass: 'animate__animated', // default
168            offset:       0,          // default
169            mobile:       false,       // default
170            live:         true        // default
171            }
172        )
173        
174        wow.init();
175
176    /*
177    
178    $('.btn-menu').on('click', function(){
179       $('.menu-mobile').toggleClass('active');
180        $(this).find('.menu-icon').toggleClass('is-opened');
181    });
182    
183    
184    $(document).on('click', function (e) {
185        if ($(e.target).closest(".menu-mobile, .btn-menu").length === 0) {
186            $('.menu-mobile').removeClass('active');
187            $('.menu-icon').removeClass('is-opened');
188        }
189    });
190        
191    var $actuSlider = $('.actu-slider');
192
193    $actuSlider.owlCarousel({
194        loop:false,
195        autoplay:false,
196        autoplayTimeout:4000,
197        responsiveClass:true,
198        responsive:{
199            0:{
200                items:1,
201                stagePadding: 50,
202                margin: 20,
203            },
204            720:{
205                items: 2
206            },
207            1280:{
208               items:3 
209            }
210            
211        }
212    });
213    
214    
215    var $reviewSlider = $('.commentlist');
216
217    $reviewSlider.owlCarousel({
218        loop:false,
219        autoplay:false,
220        autoplayTimeout:4000,
221        responsiveClass:true,
222        responsive:{
223            0:{
224                items:1,
225                stagePadding: 50,
226                margin: 20,
227            },
228            720:{
229                items: 2
230            },
231            1280:{
232               items:3,
233                margin: 20,
234            }
235            
236        }
237    });
238    
239    
240    $('.review-left').on('click', function(){
241         $reviewSlider.trigger('prev.owl.carousel');        
242    });
243    
244    $('.review-right').on('click', function(){
245         $reviewSlider.trigger('next.owl.carousel');        
246    });
247    
248    
249    
250    
251    var $catSlider = $('.slide-cat .list-categorie');
252
253    $catSlider.owlCarousel({
254        loop:false,
255        autoplay:false,
256        autoplayTimeout:4000,
257        responsiveClass:true,
258        responsive:{
259            0:{
260                items:1,
261                stagePadding: 50,
262                margin: 20,
263            },
264            580:{
265                items: 2,
266                stagePadding: 50,
267                 margin: 30
268            },
269            1024:{
270               items:3 ,
271                margin: 30
272            }
273            
274        }
275    });
276    
277    
278    
279    */
280   
281
282});
283
284/* FIN JQUERY */
285

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.