with alex: fixed layout, somme typo, gif

This commit is contained in:
Bachir Soussi Chiadmi
2016-02-17 12:41:12 +01:00
parent 333ee13a91
commit 34a6f5e1a8
103 changed files with 244 additions and 210 deletions
+12 -2
View File
@@ -1,5 +1,17 @@
jQuery(document).ready(function($) {
//window scrolls check
$(window).scroll(function() {
var topOfWindow = $(window).scrollTop();
console.log('topOfWindow',topOfWindow);
if (topOfWindow > 100) {
$("#top-bar").addClass("reduced");
}
else {
$("#top-bar").removeClass("reduced");
}
});
// init categories content images behaviour
if($('body').is('.categories')){
var $diapo = $('<div id="diaporama"></div>');
@@ -21,8 +33,6 @@ jQuery(document).ready(function($) {
$diapo.children('.projet-img').first().addClass('visible');
}
// init Masonry
var $grid = $('.grid').masonry({
itemSelector: '.grid-block'