demarches-normaliennes/app/assets/javascripts/old_design/cgu.js

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);
});
}