1// (function ($) { 2// "use strict"; 3jQuery(document).ready(function($){ 4 // offcanvas-js 5 $('.offcanvas-open').click(function() { 6 $('.offcanvas-menu').addClass('active') 7 }); 8 $('.offcanvas-close').click(function() { 9 $('.offcanvas-menu').removeClass('active') 10 }); 11 12 $('.offcanvas-menu a').attr('tabindex', '-1'); 13 14 $('#menuParent li.dropdown').each(function(index){ 15 $(this).find('>a').attr('data-bs-target', '#drop-menu-' + index); 16 $(this).find('>.dropdown-menu-custom').attr('id', 'drop-menu-' + index); 17 }) 18 19 20 $('#iframeMap').on('load', function() { 21 var iframeContent = $(this).contents(); 22 23 // Désactiver le focus par tabulation pour les liens 24 iframeContent.find('a').attr('tabindex', '-1'); 25 26 // Désactiver le focus par tabulation pour les boutons 27 iframeContent.find('button').attr('tabindex', '-1'); 28 }); 29 30 31 // dropdown-menu-js 32 $('.has-megamenu').on('mouseover focusin', function(){ 33 $('.has-megamenu').removeClass("hovered") 34 $(this).toggleClass("hovered"); 35 $('body').addClass('megamenu-opend') 36 var mgh = $(this).find('.megamenu').outerHeight(); 37 $('.megamenu-bg').css('height',mgh); 38 }); 39 $('.has-megamenu').on('mouseleave focusout', function(){ 40 $('.has-megamenu').removeClass("hovered") 41 $('body').removeClass('megamenu-opend') 42 }); 43 $('.has-megamenu').focusout(function(){ 44 //$(this).trigger('mouseleave'); 45 }); 46 $(window).on('load resize',function(){ 47 var mgm = $('.header-top').outerHeight(); 48 $('.megamenu-bg').css('top',mgm) 49 }); 50 51 52 53 // search-box-js 54 $('.search-wrap-inner').click(function(){ 55 $(this).addClass('active'); 56 }); 57 $(document).mouseup(function(e){ 58 var container = $('.search-wrap-inner'); 59 60 // If the target of the click isn't the container 61 if(!container.is(e.target) && container.has(e.target).length === 0){ 62 container.removeClass('active'); 63 } 64 }); 65 66 67 68 // cookies-popup 69 $('.js-cookie-close-button').click(function(){ 70 $('body').addClass('cookie-setting-hide'); 71 }); 72 73 74 75 // owl-carousel for hero slider 76 jQuery('.hero-slider-active').owlCarousel({ 77 loop:true, 78 margin:50, 79 responsiveClass:true, 80 nav:true, 81 items:1, 82 animateOut: 'fadeOut', 83 navText: ['<span class="fas fa-chevron-left fa-2x"></span>','<span class="fas fa-chevron-right fa-2x"></span>'], 84 }); 85 86 87 88///// important-js 89// header 90$(window).on('load resize',function(){ 91var htr1 = $('.header-section').outerHeight(); 92$('main').css('margin-top',htr1); 93}); 94 95// other 96var wind = $(window); 97var sticky = $('.header-section'); 98wind.on('scroll', function() { 99 var scroll = wind.scrollTop(); 100 if (scroll < 5) { 101 sticky.removeClass('sticky'); 102 } else { 103 sticky.addClass('sticky'); 104 } 105}); 106var hLeft = $('hero-section').outerHeight(); 107var sticky = $('.header-section'); 108wind.on('scroll', function() { 109 var scroll = wind.scrollTop(); 110 if (scroll < hLeft) { 111 sticky.removeClass('in-body'); 112 } else { 113 sticky.addClass('in-body'); 114 } 115}); 116 117// BROWSER SCROLL COMPATIBILITY 118$(document).ready(function(){ 119 $("a").on('click', function(event){ 120 121 if (this.hash !== "") { 122 event.preventDefault(); 123 124 var hash = this.hash; 125 126 $('html, body').animate({ 127 scrollTop: $(hash).offset().top 128 }, 800, function(){ 129 window.location.hash = hash; 130 }); 131 } 132 }); 133}); 134 135 136}); 137 138 139 140 141jQuery(document).ready(function($){ 142 143 // scroll up 144 $(function(){ 145 $.scrollUp(); 146 }); 147 148 // nice-select 149 $('.nice-select').niceSelect(); 150 151 // nice-number 152 $('.nice-number').niceNumber(); 153 154 155 156}) 157 158 159 160 161 162 163 164 165 166 167
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.