with alex: fixed layout, somme typo, gif
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user