1jQuery(window).on('load', function() { 2 jQuery('#status').fadeOut(); 3 jQuery('#preloader').fadeOut('slow'); 4 jQuery('body').css({ 'overflow': 'visible' }); 5}); 6 7$(document).ready(function() { 8 $(".nav-toggle").click(function() { 9 $(this).toggleClass("active"); 10 $(".nav-main").toggleClass("open"); 11 $("body").toggleClass("nav-open"); 12 $("html").toggleClass("scroll"); 13 }); 14}); 15 16$('.testimonials-slider').slick({ 17 dots: false, 18 arrows: true, 19 infinite: true, 20 speed: 500, 21 fade: true, 22 slidesToShow: 1 23}); 24 25 26$(".nav-toggle").click(function() { 27 $([document.documentElement, document.body]).animate({ 28 scrollTop: $(".header").offset().top - 0 29 }, 500); 30}); 31 32 33window.onscroll = function() { myFunction() }; 34 35var header = document.getElementById("header"); 36var sticky = header.offsetTop; 37 38function myFunction() { 39 if (window.pageYOffset > sticky) { 40 header.classList.add("sticky"); 41 } else { 42 header.classList.remove("sticky"); 43 } 44} 45 46 47if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) { 48 $(".intervent_list ul li").click(function(){ 49 //we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event 50 //strange 51 }); 52 $(".partenaires_con ul li").click(function(){ 53 //we just need to attach a click event listener to provoke iPhone/iPod/iPad's hover event 54 //strange 55 }); 56} 57 58 59$('a[href*="#"]').on('click', function(e) { 60 e.preventDefault() 61 62 $('html, body').animate( 63 { 64 scrollTop: $($(this).attr('href')).offset().top, 65 }, 66 500, 67 'linear' 68 ) 69}); 70 71 72if (document.documentElement.clientWidth < 991) { 73 (function ($) { 74 $(document).ready(function () { 75 $('.nav-main ul li.menu-item-has-children > a').after('<span></span>'); 76 77 $('.nav-main ul li').children('ul').toggle(); 78 $('.nav-main ul li span').on('click', function () { 79 $(this).removeAttr('href'); 80 var element = $(this).parent('li'); 81 if (element.hasClass('open')) { 82 element.removeClass('open'); 83 element.find('li').removeClass('open'); 84 element.find('ul').slideUp(200); 85 } 86 else { 87 element.addClass('open'); 88 element.children('ul').slideDown(200); 89 element.siblings('li').children('ul').slideUp(200); 90 element.siblings('li').removeClass('open'); 91 element.siblings('li').find('li').removeClass('open'); 92 element.siblings('li').find('ul').slideUp(200); 93 } 94 }); 95 96 }); 97 })(jQuery); 98} 99 100 101if ($(window).width() < 991) { 102 $('.nav-main .nav-link').click(function(){ 103 $('.nav-toggle').removeClass("active"); 104 $(".nav-main").removeClass("open"); 105 $("body").removeClass("nav-open"); 106 $("html").removeClass("scroll"); 107 }); 108}
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.