1$(document).ready(function(){ 2 window.onresize = function() { 3 4 resize(); 5 6 } 7 8 if(sessionStorage.getItem("popup_exist") !== null) { 9 $(".box_popup_homepage").css("display","none"); 10 } 11 else { 12 $(".box_popup_homepage").fadeIn(500); 13 } 14 15 $(".bouton-fermer").off().on("click",function(){ 16 sessionStorage.setItem("popup_exist","exist"); 17 $(".box_popup_homepage").fadeOut(500); 18 }); 19 20 $('.search-button').click(function(){ 21 $('.search-popup').addClass('active'); 22 $('.search-popup .searchForm input#tags').focus(); 23 $('html').addClass('search-active'); 24 }); 25 26 $('.search-popup .search-popup-close').click(function(){ 27 $('.search-popup').removeClass('active'); 28 $('.search-popup .searchForm input#tags').blur(); 29 $('html').removeClass('search-active'); 30 }); 31 32 $('.search-popup input#tags').attr('placeholder', 'Rechercher'); 33 34 35 36 37 $('#NewsSlider .NewsMasonry').slick({ 38 accessibility: false, 39 slidesToShow: 3, 40 41 slidesToScroll: 1, 42 autoplay: true, 43 autoplaySpeed: 3500, 44 arrows: false, 45 dots: true, 46 infinit: false, 47 48 speed: 800, 49 responsive: [ 50 { 51 breakpoint: 1200, 52 settings: { 53 slidesToShow: 3 54 } 55 }, 56 { 57 breakpoint: 992, 58 settings: { 59 slidesToShow: 2 60 } 61 }, 62 { 63 breakpoint: 768, 64 settings: { 65 slidesToShow: 1 66 } 67 } 68 ] 69 70 }); 71 72 73 74 $('nav.main-nav .sf-menu').superfish({ 75 cssArrows: true, 76 animation: {opacity:'show'}, 77 animationOut: {opacity:'hide'} 78 }); 79 $('nav.main-nav').sticky(); 80 81 $('.mobile-nav a').click(function(e){ 82 e.preventDefault(); 83 $('body').addClass('show-menu'); 84 }); 85 $('.site-overlay, .menu-wrap .close-button').click(function(e){ 86 e.preventDefault(); 87 $('body').removeClass('show-menu'); 88 }); 89 90 //Menu accordion 91 $(".box_acc").next("div").hide(); 92 $(".box_acc").click(function(){ 93 if($(this).next("div").is(":visible")){ 94 $(".box_acc").removeClass("opendiv"); 95 $(this).next("div").slideUp(); 96 } 97 98 else if($(this).next("div").is(":hidden")){ 99 $(".box_acc").removeClass("opendiv"); 100 $(".box_acc").next("div").slideUp(); 101 $(".box_acc").next("div:visible").slideUp(); 102 $(this).addClass("opendiv"); 103 $(this).next("div").slideDown(); 104 } 105 }); 106 107 108 109 110 $('.bx-slik1 ').slick({ 111 slidesToShow: 4, 112 slidesToScroll: 1, 113 autoplay: true, 114 infinite:false, 115 dots: true, 116 arrows: false, 117 responsive: [ 118 119 { 120 breakpoint: 1000, 121 settings: { 122 slidesToShow: 3 123 } 124 }, 125 { 126 breakpoint: 800, 127 settings: { 128 slidesToShow: 2 129 } 130 }, 131 { 132 breakpoint: 600, 133 settings: { 134 slidesToShow: 1 135 } 136 } 137 ] 138 }); 139 140 141 142 143 $('section.boxes .box').matchHeight(); 144 $('.box1').matchHeight(); 145 $('.box2').matchHeight(); 146 $('.box3').matchHeight(); 147 $('.box4').matchHeight(); 148 $('.box').matchHeight(); 149 $('.home-bx1').matchHeight(); 150 151 152 153 $(".fancybox").fancybox({ 154 'transitionIn' : 'elastic', 155 'transitionOut' : 'elastic', 156 'speedIn' : 600, 157 'speedOut' : 200 158 }); 159 160 161 162 163 $('#Shop #Head').after("<div id='mobile-sidebar'><span><i class='fas fa-bars'></i> Menu Catalogue</span></div>") 164 /* toggle webshop sidebar */ 165 $("#mobile-sidebar").on("click", function(e){ 166 e.preventDefault(); 167 $("#Sidebar").addClass("active"); 168 if ($("#Sidebar").hasClass('active')) { 169 if ($("#Sidebar.active .close-sidebar").length === 0) {
170 $("#Sidebar.active").prepend("<a href='#' class='close-sidebar'><i class='fas fa-times'></i> Fermer</a>"); 171 } 172 173 174 $(".close-sidebar").on("click", function(e){ 175 e.preventDefault(); 176 $("#Sidebar").removeClass("active"); 177 $(this).remove(); 178 }); 179 } 180 }); 181 182 183 184 $('section.section-galerie #galhome .slick-slide a.highslide img').each(function() { 185 var image = $(this); 186 var url = image.attr('src'); 187 var nouveauChemin = url.replace('thumb', 'big'); 188 image.attr('src', nouveauChemin); 189 }); 190 191 $('nav ul ul li a').click(function(){ 192 var id = $(this).attr("href").split("#")[1]; 193 var offset = $('#' +id).offset().top - 100; 194 $('html, body').animate({scrollTop: offset}, 'slow'); 195 return false; 196}); 197 198 $("ul.etabs li a").on("click", function(event) { 199 event.preventDefault(); // Emp che le comportement par d faut du lien 200$(".tab-container div").css("display","none"); 201 var id_tabs = $(this).attr("href"); 202 var $tabContainer = $(".tab-container"); 203 204 $tabContainer.find(".tab-content").hide(); // Masque tous les contenus d'onglets 205 $(id_tabs).show(); // Affiche le contenu de l'onglet s lectionn 206 $tabContainer.show(); // Assurez-vous que le conteneur d'onglets est visible 207 208 // Effectue l'animation de d filement vers le contenu de l'onglet 209 $('html, body').animate({ 210 scrollTop: $(id_tabs).offset().top -42 211 }, 'slow'); 212 }); 213 $(".box_galleries .slider_gallery li a").click(function(){ 214 215 var class_link = $(this).attr('class'); 216 $('.box_gallery').each(function(){ 217 if($(this).attr('id').indexOf(class_link) > -1){ 218 $(this).show(); 219 } else $(this).hide(); 220 }); 221 222 }); 223 224var cpt = 0; 225 $('.box_gallery').each(function(){ 226 227 if(cpt == 0 && window.location.hash == "") { 228 $(this).css("display","block"); 229 } 230 cpt++; 231 232 }); 233 234 var class_link = ""; 235 236 $(".slider_gallery li a").click(function(){ 237 238 class_link = $(this).attr('class'); 239 240 $('.box_gallery').css("display","none"); 241 242 $('#'+class_link).fadeIn(500); 243 244 }); 245 246 AOS.init(); 247 248 $('#Shop div#ShopContent #article-content #CatSubCats').insertAfter('#Shop div#ShopContent #article-content div#CatContent'); 249}); 250 251 252function resize() { 253 var height = $(window).height(); 254 $(".box_popup_homepage").css("height",height); 255}
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.