equal
deleted
inserted
replaced
1 $(function(){ |
1 $(function(){ |
|
2 //masonry |
2 var container = $('.list-projets-3'); |
3 var container = $('.list-projets-3'); |
3 container.masonry({ |
4 container.masonry({ |
4 columnWidth: 465, |
5 columnWidth: 465, |
5 itemSelector: '.item', |
6 itemSelector: '.item', |
6 gutter : 20 |
7 gutter : 20 |
7 }); |
8 }); |
8 |
9 //popin |
9 $('.new-collection').bind('click', function(e){ |
10 $('.new-collection').bind('click', function(e){ |
10 e.preventDefault(); |
11 e.preventDefault(); |
|
12 var target = $(this).attr('href'); |
|
13 $('.popin-wrap').fadeIn(function(){ |
|
14 $(target).show(); |
|
15 }); |
|
16 }); |
|
17 |
|
18 $('.close-popin, .popin-wrap').bind('click', function(e){ |
|
19 e.preventDefault(); |
|
20 e.stopPropagation(); |
|
21 $('.popin-wrap').fadeOut(function(){ |
|
22 $('.popin').hide(); |
|
23 }); |
|
24 }); |
|
25 |
|
26 $('.popin').bind('click', function(e){ |
|
27 e.stopPropagation(); |
11 }); |
28 }); |
12 |
29 |
13 });//ready |
30 });//ready |