Base theme for LMMI Journal
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

17 lines
502 B

(function ($, Drupal) {
Drupal.behaviors.mtWaypointsFixedShareLinks = {
attach: function (context, settings) {
var inview = new Waypoint.Inview({
element: $('.node__main-content')[0],
entered: function(direction) {
$('body').removeClass('js-share-links-fixed');
},
exit: function(direction) {
if (direction = "down") {
$('body').addClass('js-share-links-fixed');
}
}
});
}
};
})(jQuery, Drupal);