Template:Team:Macquarie Australia/TopNavBar

From 2014.igem.org

(Difference between revisions)
Line 61: Line 61:
$('html, body').animate({ scrollTop: target.offset().top-100 }, 1000);
$('html, body').animate({ scrollTop: target.offset().top-100 }, 1000);
return false;
return false;
 +
});
 +
 +
$('.mfp-gallery').magnificPopup({
 +
delegate: 'a',
 +
type: 'image',
 +
tLoading: 'Loading image #%curr%...',
 +
mainClass: 'mfp-img-mobile',
 +
gallery: {
 +
          enabled: true,
 +
          navigateByImgClick: true,
 +
          preload: [0,1] // Will preload 0 - before current, and 1 after the current image
 +
},
 +
image: {
 +
          tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
 +
          titleSrc: function(item) {
 +
          return item.el.attr('title') + '<small>by Marsel Van Oosten</small>';
 +
}
 +
}
});
});
});
});

Revision as of 14:40, 15 October 2014