demarches-normaliennes/app/assets/javascripts/cgu.js
2017-04-04 16:59:40 +02:00

8 lines
242 B
JavaScript

$(document).on('turbolinks:load', buttons_anchor);
function buttons_anchor(){
$("#cgu_menu_block").on('click', 'a', function(){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top-80}, 500);
});
}