recup commit dev

This commit is contained in:
2021-06-11 16:24:49 +02:00
parent b6730fa8d2
commit 81285b7135
23 changed files with 599 additions and 379 deletions

View File

@@ -193,7 +193,48 @@ function ajaxformulaire() {
}
function open_pack() {
var $pack = $(".nos_pack .pack .__thumb");
var nbrDiv = $pack.length;
var widtWind = $( window ).width();
if(widtWind <= 530){
var count = 1;
} else if (widtWind <= 1024) {
var count = 2;
} else if (widtWind <= 1200) {
var count = 3;
} else {
var count = 4;
}
$pack.on('click',function(e) {
var href = $(this).find('a').attr('href') ;
if ( href == '#') {
e.preventDefault();
}
var idThis = $(this).parent('.pack').attr('id');
var $more = $('.__more#' + idThis);
$('.__more').removeClass('visible');
$('.triangle').removeClass('visible');
var i = count;
$more.addClass('visible');
$(this).find('.triangle').addClass('visible')
})
var $close = $('.__more .close');
$close.on('click' , function(e) {
console.log('clsick');
$(this).parents('.__more').removeClass('visible');
$('.triangle').removeClass('visible');
})
}
jQuery(document).ready(function(){
tarteaucitron.init({
@@ -229,4 +270,9 @@ jQuery(document).ready(function(){
filteritem();
map();
burger();
if ($('section').is("#nos-packs")) {
open_pack();
}
});